Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Blocks.Logical.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.Blocks.Logical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|change1.u|edge1.u|fallingEdge.not_u|hysteresis.y|onOffController.y|pre1.u|rSFlipFlop.pre.u|table1.index|table1.nextTime|table1.y|table2.index|table2.nextTime|table2.y|timer.entryTime|triggeredTrapezoid.T|triggeredTrapezoid.endValue|triggeredTrapezoid.rate|triggeredTrapezoid.y|zeroCrossing.disable|zeroCrossing.enable|zeroCrossing.u_pos",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Blocks.Logical") Notification: Performance of loadModel(ModelicaTest): time 2.29/2.29, allocations: 234.9 MB / 251.1 MB, free: 9.695 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004335/0.0004336, allocations: 12 kB / 314.9 MB, free: 9.75 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3721/0.3726, allocations: 54.86 MB / 369.8 MB, free: 12.79 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1534/0.5261, allocations: 84.94 MB / 454.7 MB, free: 7.727 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002312/0.5264, allocations: 63.98 kB / 454.8 MB, free: 7.664 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02911/0.5555, allocations: 5.957 MB / 460.8 MB, free: 1.688 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.264e-06/0.5555, allocations: 0 / 460.8 MB, free: 1.688 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.858e-05/0.5556, allocations: 8 kB / 460.8 MB, free: 1.68 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 92 * Number of variables: 92 Notification: Performance of Generate backend data structure: time 0.002022/0.5576, allocations: 0.7758 MB / 461.5 MB, free: 0.8281 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.745e-05/0.5577, allocations: 8.031 kB / 461.5 MB, free: 0.8203 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001703/0.5579, allocations: 47.48 kB / 461.6 MB, free: 0.7734 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001982/0.5581, allocations: 207.6 kB / 461.8 MB, free: 0.5273 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.174e-05/0.5581, allocations: 33 kB / 461.8 MB, free: 0.4961 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001053/0.5583, allocations: 47.98 kB / 461.9 MB, free: 460 kB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001302/0.5596, allocations: 418 kB / 462.3 MB, free: 28 kB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.063e-05/0.5596, allocations: 4 kB / 462.3 MB, free: 24 kB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.01e-05/0.5597, allocations: 19.98 kB / 462.3 MB, free: 4 kB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.704e-05/0.5597, allocations: 19.94 kB / 462.3 MB, free: 15.98 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001268/0.561, allocations: 315.8 kB / 462.6 MB, free: 15.68 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002863/0.5639, allocations: 0.9424 MB / 463.6 MB, free: 14.68 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001917/0.5659, allocations: 447.4 kB / 464 MB, free: 14.23 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.214e-05/0.5659, allocations: 4.328 kB / 464 MB, free: 14.23 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001014/0.567, allocations: 353.3 kB / 464.4 MB, free: 13.86 MB / 394.7 MB Notification: Performance of pre-optimization done (n=48): time 3.477e-06/0.567, allocations: 0 / 464.4 MB, free: 13.86 MB / 394.7 MB Notification: Performance of matching and sorting (n=48): time 0.002613/0.5696, allocations: 0.8495 MB / 465.2 MB, free: 12.96 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001354/0.5698, allocations: 196.3 kB / 465.4 MB, free: 12.72 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003447/0.5701, allocations: 219.6 kB / 465.6 MB, free: 12.49 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001002/0.5703, allocations: 45.7 kB / 465.7 MB, free: 12.44 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001768/0.5704, allocations: 231.2 kB / 465.9 MB, free: 12.21 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001528/0.5706, allocations: 110.6 kB / 466 MB, free: 12.11 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.5e-05/0.5707, allocations: 15.98 kB / 466 MB, free: 12.09 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001415/0.5708, allocations: 330.8 kB / 466.3 MB, free: 11.76 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000684/0.5715, allocations: 165 kB / 466.5 MB, free: 11.6 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007227/0.5723, allocations: 219.7 kB / 466.7 MB, free: 11.38 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006607/0.5729, allocations: 245 kB / 466.9 MB, free: 11.12 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.028e-06/0.573, allocations: 4 kB / 467 MB, free: 11.11 MB / 394.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001692/0.5747, allocations: 0.5641 MB / 467.5 MB, free: 10.52 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.782e-05/0.5748, allocations: 118.8 kB / 467.6 MB, free: 10.38 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.137e-05/0.5748, allocations: 3.953 kB / 467.6 MB, free: 10.38 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.418e-05/0.5748, allocations: 8 kB / 467.6 MB, free: 10.37 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003871/0.5752, allocations: 43.91 kB / 467.7 MB, free: 10.32 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.349e-05/0.5753, allocations: 4 kB / 467.7 MB, free: 10.32 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000596/0.5759, allocations: 79.78 kB / 467.8 MB, free: 10.24 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.019e-05/0.576, allocations: 16 kB / 467.8 MB, free: 10.23 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 60 ($whenCondition2,$whenCondition1,$whenCondition3,$whenCondition4,$PRE.table1.y,table1.y,$PRE.table1.nextTime,table1.nextTime,$PRE.table1.index,table1.index,$PRE.table2.y,table2.y,$PRE.table2.nextTime,table2.nextTime,$PRE.table2.index,table2.index,and1.y,nor.u1,nand.u1,$PRE.pre1.u,pre1.u,$PRE.edge1.u,edge1.u,edge1.y,fallingEdge.y,$PRE.fallingEdge.not_u,fallingEdge.not_u,$PRE.change1.u,change1.u,change1.y,greaterEqualThreshold.y,lessThreshold.y,lessEqualThreshold.y,greater.y,greaterEqual.y,less.y,lessEqual.y,zeroCrossing.y,$PRE.zeroCrossing.enable,zeroCrossing.enable,$PRE.zeroCrossing.disable,zeroCrossing.disable,$PRE.zeroCrossing.u_pos,zeroCrossing.u_pos,logicalSwitch.u1,logicalSwitch.u2,logicalSwitch.y,$PRE.hysteresis.y,hysteresis.y,$PRE.onOffController.y,onOffController.y,triggeredTrapezoid.endValue,triggeredTrapezoid.rate,triggeredTrapezoid.T,$PRE.timer.entryTime,timer.entryTime,rSFlipFlop.Q,rSFlipFlop.QI,$PRE.rSFlipFlop.pre.u,rSFlipFlop.pre.u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (62): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004178/0.5764, allocations: 245.1 kB / 468 MB, free: 9.965 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.736e-05/0.5765, allocations: 31.62 kB / 468.1 MB, free: 9.934 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000114/0.5766, allocations: 35.31 kB / 468.1 MB, free: 9.898 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.041e-05/0.5766, allocations: 7.953 kB / 468.1 MB, free: 9.891 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.163e-05/0.5767, allocations: 0 / 468.1 MB, free: 9.891 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.874e-06/0.5767, allocations: 11.92 kB / 468.1 MB, free: 9.879 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002535/0.5792, allocations: 1.021 MB / 469.1 MB, free: 8.793 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.187e-06/0.5793, allocations: 11.98 kB / 469.1 MB, free: 8.781 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002647/0.5795, allocations: 31.91 kB / 469.2 MB, free: 8.75 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.177e-05/0.5796, allocations: 7.953 kB / 469.2 MB, free: 8.742 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.569e-05/0.5796, allocations: 15.98 kB / 469.2 MB, free: 8.727 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.695e-06/0.5797, allocations: 4 kB / 469.2 MB, free: 8.723 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.953e-06/0.5797, allocations: 0 / 469.2 MB, free: 8.723 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001892/0.5816, allocations: 0.6513 MB / 469.9 MB, free: 8.039 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.412e-05/0.5817, allocations: 104.8 kB / 470 MB, free: 7.918 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001142/0.5818, allocations: 23.94 kB / 470 MB, free: 7.895 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006713/0.5825, allocations: 75.94 kB / 470.1 MB, free: 7.82 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002536/0.5828, allocations: 63.89 kB / 470.1 MB, free: 7.758 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.59e-05/0.5828, allocations: 19.98 kB / 470.1 MB, free: 7.738 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001968/0.5831, allocations: 148.7 kB / 470.3 MB, free: 7.594 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.5831, allocations: 0 / 470.3 MB, free: 7.594 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0006207/0.5837, allocations: 115.9 kB / 470.4 MB, free: 7.48 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 43 ($whenCondition2,$whenCondition1,$whenCondition3,$whenCondition4,table1.y,table1.nextTime,table1.index,table2.y,table2.nextTime,table2.index,and1.y,nor.u1,nand.u1,pre1.u,edge1.u,edge1.y,fallingEdge.y,fallingEdge.not_u,change1.u,change1.y,greaterEqualThreshold.y,lessThreshold.y,lessEqualThreshold.y,greater.y,greaterEqual.y,less.y,lessEqual.y,zeroCrossing.y,zeroCrossing.enable,zeroCrossing.disable,zeroCrossing.u_pos,logicalSwitch.u1,logicalSwitch.u2,logicalSwitch.y,hysteresis.y,onOffController.y,triggeredTrapezoid.endValue,triggeredTrapezoid.rate,triggeredTrapezoid.T,timer.entryTime,rSFlipFlop.Q,rSFlipFlop.QI,rSFlipFlop.pre.u) * Number of discrete states: 19 (table1.y,table1.nextTime,table1.index,$whenCondition4,table2.y,table2.nextTime,table2.index,$whenCondition3,pre1.u,edge1.u,fallingEdge.not_u,change1.u,zeroCrossing.u_pos,zeroCrossing.enable,zeroCrossing.disable,hysteresis.y,onOffController.y,rSFlipFlop.pre.u,triggeredTrapezoid.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003978/0.5841, allocations: 180.3 kB / 470.6 MB, free: 7.297 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001798/0.5859, allocations: 0.6532 MB / 471.2 MB, free: 6.594 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.456e-06/0.5859, allocations: 0 / 471.2 MB, free: 6.594 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009369/0.5869, allocations: 378.6 kB / 471.6 MB, free: 6.199 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00032/0.5872, allocations: 23.86 kB / 471.6 MB, free: 6.176 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001818/0.5891, allocations: 0.7536 MB / 472.4 MB, free: 5.391 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004691/0.5896, allocations: 0.8005 MB / 473.2 MB, free: 4.562 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002103/0.5898, allocations: 35.36 kB / 473.2 MB, free: 4.527 MB / 394.7 MB Notification: Performance of SimCode: time 1.193e-06/0.5898, allocations: 0 / 473.2 MB, free: 4.527 MB / 394.7 MB Notification: Performance of Templates: time 0.01141/0.6012, allocations: 4.453 MB / 477.7 MB, free: 88 kB / 394.7 MB