Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|sample2.y|hold1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|sample2.y|hold1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00156/0.00156, allocations: 103.2 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00176/0.00176, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.527/1.527, allocations: 227.4 MB / 246.3 MB, free: 9.062 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001524/0.001524, allocations: 66.61 kB / 306.3 MB, free: 0.793 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1578/0.1593, allocations: 50.53 MB / 356.8 MB, free: 14.27 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2): time 0.003871/0.1633, allocations: 1.663 MB / 358.5 MB, free: 12.59 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005766/0.1639, allocations: 171.5 kB / 358.6 MB, free: 12.42 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000132/0.1641, allocations: 0 / 358.6 MB, free: 12.42 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 7.138e-05/0.1642, allocations: 3.938 kB / 358.6 MB, free: 12.42 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001782/0.1644, allocations: 11.92 kB / 358.6 MB, free: 12.41 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003514/0.1647, allocations: 47.91 kB / 358.7 MB, free: 12.36 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001379/0.1649, allocations: 55.84 kB / 358.7 MB, free: 12.3 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001521/0.165, allocations: 32.2 kB / 358.8 MB, free: 12.27 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.385e-05/0.1651, allocations: 23.91 kB / 358.8 MB, free: 12.25 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.284e-05/0.1652, allocations: 35.78 kB / 358.8 MB, free: 12.21 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.799e-05/0.1652, allocations: 8 kB / 358.8 MB, free: 12.2 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.702e-05/0.1652, allocations: 4 kB / 358.8 MB, free: 12.2 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.378e-05/0.1653, allocations: 19.92 kB / 358.9 MB, free: 12.18 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.493e-05/0.1654, allocations: 27.81 kB / 358.9 MB, free: 12.15 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00018/0.1655, allocations: 67.7 kB / 359 MB, free: 12.09 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.1656, allocations: 4 kB / 359 MB, free: 12.08 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.1656, allocations: 0 / 359 MB, free: 12.08 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.641e-06/0.1656, allocations: 0 / 359 MB, free: 12.08 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.000623/0.1662, allocations: 391.3 kB / 359.3 MB, free: 11.65 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.773e-05/0.1663, allocations: 8.031 kB / 359.4 MB, free: 11.64 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.109e-05/0.1664, allocations: 16.84 kB / 359.4 MB, free: 11.62 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003071/0.1667, allocations: 206.7 kB / 359.6 MB, free: 11.39 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.973e-05/0.1667, allocations: 8.375 kB / 359.6 MB, free: 11.38 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.249e-05/0.1667, allocations: 8.375 kB / 359.6 MB, free: 11.37 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000514/0.1673, allocations: 181.9 kB / 359.8 MB, free: 11.18 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.265e-05/0.1673, allocations: 4.188 kB / 359.8 MB, free: 11.17 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.67e-05/0.1673, allocations: 3.938 kB / 359.8 MB, free: 11.17 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.161e-06/0.1673, allocations: 0 / 359.8 MB, free: 11.17 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000123/0.1674, allocations: 39.92 kB / 359.8 MB, free: 11.13 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006135/0.1681, allocations: 373.8 kB / 360.2 MB, free: 10.71 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001983/0.1683, allocations: 111.8 kB / 360.3 MB, free: 10.57 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001322/0.1684, allocations: 74.61 kB / 360.4 MB, free: 10.49 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.222e-05/0.1685, allocations: 0 / 360.4 MB, free: 10.49 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.615e-05/0.1685, allocations: 42.56 kB / 360.4 MB, free: 10.44 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.272e-06/0.1685, allocations: 0 / 360.4 MB, free: 10.44 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004425/0.169, allocations: 129.4 kB / 360.5 MB, free: 10.3 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001086/0.1691, allocations: 110.8 kB / 360.6 MB, free: 10.17 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001625/0.1693, allocations: 145 kB / 360.8 MB, free: 10.02 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.175e-05/0.1693, allocations: 29.7 kB / 360.8 MB, free: 9.988 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.192e-05/0.1694, allocations: 88.41 kB / 360.9 MB, free: 9.895 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.23e-05/0.1694, allocations: 8 kB / 360.9 MB, free: 9.887 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.444e-05/0.1695, allocations: 37.61 kB / 360.9 MB, free: 9.844 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001577/0.1697, allocations: 318.8 kB / 361.3 MB, free: 9.523 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.392e-05/0.1697, allocations: 15.98 kB / 361.3 MB, free: 9.508 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.907e-05/0.1698, allocations: 81.44 kB / 361.3 MB, free: 9.395 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001893/0.17, allocations: 113.2 kB / 361.5 MB, free: 9.25 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.726e-06/0.17, allocations: 0 / 361.5 MB, free: 9.25 MB / 302.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002123/0.1703, allocations: 117.4 kB / 361.6 MB, free: 9.129 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.102e-05/0.1703, allocations: 8 kB / 361.6 MB, free: 9.121 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.004e-05/0.1703, allocations: 4 kB / 361.6 MB, free: 9.117 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.772e-05/0.1703, allocations: 3.984 kB / 361.6 MB, free: 9.113 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.66e-05/0.1704, allocations: 7.938 kB / 361.6 MB, free: 9.105 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.275e-05/0.1704, allocations: 8.328 kB / 361.6 MB, free: 9.098 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.502e-05/0.1705, allocations: 15.94 kB / 361.6 MB, free: 9.082 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.35e-05/0.1705, allocations: 8 kB / 361.6 MB, free: 9.074 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 12 (step.y,xor1.y,xor1.u2,xor1.u1,xor.y,xor.u2,xor.u1,integerConstant.y,sample2.y,hold1.y,hold1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000121/0.1706, allocations: 133.7 kB / 361.8 MB, free: 8.934 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001497/0.1708, allocations: 81.91 kB / 361.8 MB, free: 8.848 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.583e-05/0.1708, allocations: 16.72 kB / 361.9 MB, free: 8.832 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.327e-06/0.1708, allocations: 0 / 361.9 MB, free: 8.832 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.1708, allocations: 96 / 361.9 MB, free: 8.832 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.1709, allocations: 7.938 kB / 361.9 MB, free: 8.824 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002858/0.1712, allocations: 197.4 kB / 362.1 MB, free: 8.582 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.1712, allocations: 0 / 362.1 MB, free: 8.582 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.803e-05/0.1712, allocations: 4 kB / 362.1 MB, free: 8.578 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.1712, allocations: 0 / 362.1 MB, free: 8.578 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.516e-05/0.1712, allocations: 8 kB / 362.1 MB, free: 8.57 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.93e-06/0.1712, allocations: 7.984 kB / 362.1 MB, free: 8.562 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.1712, allocations: 0 / 362.1 MB, free: 8.562 MB / 302.1 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:332:7-332:48:writable] Error: Internal error BackendDAETransform.analyseStrongComponentBlock failed (Purely discrete algebraic loops cannot be solved by iterative processes. Try to break them open using the delay() operator.) xor.u2 sample2.y hold1.y hold1.u xor1.y xor1.u2 xor.y xor.y = not (xor.u1 and xor.u2 or not xor.u1 and not xor.u2) xor1.u2 = xor.y xor1.y = not (xor1.u1 and xor1.u2 or not xor1.u1 and not xor1.u2) hold1.u = xor1.y hold1.y = $getPart(hold1.u) sample2.y = $getPart(hold1.y) xor.u2 = sample2.y [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:342:7-342:48:writable] Error: Internal error BackendDAETransform.analyseStrongComponentBlock failed variables: xor.u2 sample2.y hold1.y hold1.u xor1.y xor1.u2 xor.y equations: xor.y = not (xor.u1 and xor.u2 or not xor.u1 and not xor.u2) xor1.u2 = xor.y xor1.y = not (xor1.u1 and xor1.u2 or not xor1.u1 and not xor1.u2) hold1.u = xor1.y hold1.y = $getPart(hold1.u) sample2.y = $getPart(hold1.y) xor.u2 = sample2.y [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:346:7-346:90:writable] Error: Internal error function analyseStrongComponentBlock failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:196:5-196:89:writable] Error: Internal error function analyseStrongComponentScalar failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:107:7-107:113:writable] Error: Internal error function strongComponentsScalar failed (sorting strong components) [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:7947:5-7947:89:writable] Error: Internal error Transformation module sort components failed Warning: The optimization module detectJacobianSparsePattern failed. This module will be skipped and the transformation process continued. Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005406/0.1718, allocations: 344.3 kB / 362.4 MB, free: 8.203 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.144e-05/0.1719, allocations: 97 kB / 362.5 MB, free: 8.09 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.212e-05/0.1719, allocations: 4 kB / 362.5 MB, free: 8.086 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001006/0.172, allocations: 4 kB / 362.5 MB, free: 8.082 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.399e-05/0.1721, allocations: 3.984 kB / 362.5 MB, free: 8.078 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.082e-05/0.1721, allocations: 8 kB / 362.5 MB, free: 8.07 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.485e-05/0.1722, allocations: 103.3 kB / 362.6 MB, free: 7.969 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.1722, allocations: 0 / 362.6 MB, free: 7.969 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003388/0.1725, allocations: 12 kB / 362.6 MB, free: 7.957 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 12 (step.y,hold1.y,sample1.y,hold1.u,sample2.y,integerConstant.y,xor.u1,xor.u2,xor.y,xor1.u1,xor1.u2,xor1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000172/0.1727, allocations: 107.2 kB / 362.7 MB, free: 7.84 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001973/0.1729, allocations: 68.17 kB / 362.8 MB, free: 7.773 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.1729, allocations: 0 / 362.8 MB, free: 7.773 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.39e-05/0.173, allocations: 11.98 kB / 362.8 MB, free: 7.762 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005501/0.1735, allocations: 51.89 kB / 362.9 MB, free: 7.711 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005162/0.1741, allocations: 241.8 kB / 363.1 MB, free: 7.441 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004105/0.1745, allocations: 0.7083 MB / 363.8 MB, free: 6.707 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.448e-05/0.1746, allocations: 448 / 363.8 MB, free: 6.703 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.353e-05/0.1746, allocations: 15.44 kB / 363.8 MB, free: 6.691 MB / 302.1 MB Notification: Performance of SimCode: time 2.205e-06/0.1746, allocations: 0 / 363.8 MB, free: 6.691 MB / 302.1 MB Notification: Performance of Templates: time 0.004243/0.1789, allocations: 0.7172 MB / 364.5 MB, free: 5.98 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/Sample2/Sample2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches