Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Blocks.Logical.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/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.1_cpp_ModelicaTest.Blocks.Logical") Notification: Performance of loadModel(ModelicaTest): time 1.864/1.864, allocations: 209.2 MB / 225.4 MB, free: 0.5391 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004176/0.0004177, allocations: 8 kB / 283.1 MB, free: 9.707 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3697/0.3701, allocations: 48.71 MB / 331.8 MB, free: 6.488 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1577/0.5279, allocations: 78.54 MB / 410.3 MB, free: 15.89 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002763/0.5282, allocations: 75.97 kB / 410.4 MB, free: 15.82 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02859/0.5569, allocations: 5.93 MB / 416.3 MB, free: 9.871 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.5569, allocations: 0 / 416.3 MB, free: 9.871 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.831e-05/0.5569, allocations: 8 kB / 416.4 MB, free: 9.863 MB / 346.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.001975/0.5589, allocations: 0.7758 MB / 417.1 MB, free: 9.02 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.512e-05/0.559, allocations: 12.03 kB / 417.1 MB, free: 9.008 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001377/0.5591, allocations: 43.53 kB / 417.2 MB, free: 8.965 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002233/0.5594, allocations: 210.3 kB / 417.4 MB, free: 8.719 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.5e-05/0.5595, allocations: 37 kB / 417.4 MB, free: 8.684 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.97e-05/0.5596, allocations: 40 kB / 417.5 MB, free: 8.645 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001238/0.5608, allocations: 374.4 kB / 417.8 MB, free: 8.273 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.761e-05/0.5608, allocations: 0 / 417.8 MB, free: 8.273 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.83e-05/0.5609, allocations: 16 kB / 417.8 MB, free: 8.258 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.017e-05/0.5609, allocations: 8 kB / 417.9 MB, free: 8.25 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001279/0.5622, allocations: 327.7 kB / 418.2 MB, free: 7.926 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002953/0.5652, allocations: 0.9501 MB / 419.1 MB, free: 6.922 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001955/0.5672, allocations: 451.4 kB / 419.6 MB, free: 6.469 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.798e-05/0.5673, allocations: 4.328 kB / 419.6 MB, free: 6.465 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001022/0.5683, allocations: 353.2 kB / 419.9 MB, free: 6.098 MB / 346.7 MB Notification: Performance of pre-optimization done (n=48): time 3.596e-06/0.5683, allocations: 3.938 kB / 419.9 MB, free: 6.094 MB / 346.7 MB Notification: Performance of matching and sorting (n=48): time 0.002651/0.571, allocations: 0.834 MB / 420.7 MB, free: 5.203 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001285/0.5711, allocations: 170.6 kB / 420.9 MB, free: 5 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003257/0.5715, allocations: 227 kB / 421.1 MB, free: 4.77 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.328e-05/0.5716, allocations: 45.7 kB / 421.2 MB, free: 4.719 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001874/0.5718, allocations: 235.2 kB / 421.4 MB, free: 4.484 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001488/0.5719, allocations: 102.8 kB / 421.5 MB, free: 4.383 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.857e-05/0.572, allocations: 12 kB / 421.5 MB, free: 4.371 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001707/0.5722, allocations: 334.8 kB / 421.9 MB, free: 4.035 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006916/0.5729, allocations: 165 kB / 422 MB, free: 3.875 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006913/0.5736, allocations: 180.9 kB / 422.2 MB, free: 3.699 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007307/0.5743, allocations: 249 kB / 422.4 MB, free: 3.434 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.379e-06/0.5743, allocations: 4 kB / 422.4 MB, free: 3.43 MB / 346.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001691/0.576, allocations: 0.5639 MB / 423 MB, free: 2.832 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001096/0.5762, allocations: 119.4 kB / 423.1 MB, free: 2.691 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.768e-06/0.5762, allocations: 4 kB / 423.1 MB, free: 2.688 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.246e-05/0.5762, allocations: 0 / 423.1 MB, free: 2.688 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004022/0.5766, allocations: 43.91 kB / 423.2 MB, free: 2.645 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.397e-05/0.5767, allocations: 7.938 kB / 423.2 MB, free: 2.637 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005678/0.5772, allocations: 67.89 kB / 423.2 MB, free: 2.57 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.821e-05/0.5773, allocations: 23.98 kB / 423.3 MB, free: 2.547 MB / 346.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.0004158/0.5778, allocations: 245.1 kB / 423.5 MB, free: 2.285 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.55e-05/0.5779, allocations: 35.62 kB / 423.5 MB, free: 2.25 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001224/0.578, allocations: 43.23 kB / 423.6 MB, free: 2.207 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.547e-06/0.578, allocations: 4 kB / 423.6 MB, free: 2.203 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.246e-06/0.578, allocations: 0 / 423.6 MB, free: 2.203 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.996e-06/0.5781, allocations: 3.984 kB / 423.6 MB, free: 2.199 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002615/0.5807, allocations: 1.036 MB / 424.6 MB, free: 1.094 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.509e-06/0.5807, allocations: 0 / 424.6 MB, free: 1.094 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002582/0.581, allocations: 31.92 kB / 424.7 MB, free: 1.062 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.781e-06/0.581, allocations: 0 / 424.7 MB, free: 1.062 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.593e-05/0.5811, allocations: 15.98 kB / 424.7 MB, free: 1.047 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.098e-06/0.5811, allocations: 0 / 424.7 MB, free: 1.047 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.5811, allocations: 0 / 424.7 MB, free: 1.047 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001878/0.583, allocations: 0.663 MB / 425.3 MB, free: 364 kB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000224/0.5832, allocations: 144.6 kB / 425.5 MB, free: 200 kB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001109/0.5833, allocations: 16 kB / 425.5 MB, free: 184 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006579/0.584, allocations: 67.94 kB / 425.6 MB, free: 116 kB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002604/0.5843, allocations: 67.89 kB / 425.6 MB, free: 48 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.127e-05/0.5844, allocations: 15.98 kB / 425.6 MB, free: 32 kB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002321/0.5846, allocations: 137.3 kB / 425.8 MB, free: 15.9 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.5846, allocations: 0 / 425.8 MB, free: 15.9 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000644/0.5853, allocations: 119.9 kB / 425.9 MB, free: 15.78 MB / 362.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.0004234/0.5857, allocations: 181.7 kB / 426.1 MB, free: 15.59 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001809/0.5875, allocations: 0.6558 MB / 426.7 MB, free: 14.89 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.5876, allocations: 0 / 426.7 MB, free: 14.89 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009613/0.5885, allocations: 372 kB / 427.1 MB, free: 14.5 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000328/0.5889, allocations: 19.94 kB / 427.1 MB, free: 14.48 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001904/0.5908, allocations: 0.759 MB / 427.9 MB, free: 13.7 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005155/0.5913, allocations: 0.7959 MB / 428.7 MB, free: 12.88 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001992/0.5916, allocations: 31.42 kB / 428.7 MB, free: 12.84 MB / 362.7 MB Notification: Performance of SimCode: time 1.253e-06/0.5916, allocations: 0 / 428.7 MB, free: 12.84 MB / 362.7 MB Notification: Performance of Templates: time 0.01132/0.6029, allocations: 4.406 MB / 433.1 MB, free: 8.445 MB / 362.7 MB