Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.128/2.128, allocations: 234.9 MB / 250.5 MB, free: 9.594 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004272/0.0004273, allocations: 12 kB / 314.4 MB, free: 9.609 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2873/0.2878, allocations: 54.85 MB / 369.3 MB, free: 12.77 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1263/0.4141, allocations: 84.94 MB / 454.2 MB, free: 7.703 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002139/0.4143, allocations: 63.97 kB / 454.3 MB, free: 7.641 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0245/0.4389, allocations: 5.961 MB / 460.2 MB, free: 1.656 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.362e-06/0.4389, allocations: 0 / 460.2 MB, free: 1.656 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.477e-05/0.4389, allocations: 8 kB / 460.2 MB, free: 1.648 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.0015/0.4404, allocations: 0.7737 MB / 461 MB, free: 0.8008 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.759e-05/0.4405, allocations: 8.031 kB / 461 MB, free: 0.793 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001278/0.4406, allocations: 47.48 kB / 461.1 MB, free: 0.7461 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002274/0.4409, allocations: 207.6 kB / 461.3 MB, free: 0.5 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.183e-05/0.441, allocations: 37 kB / 461.3 MB, free: 476 kB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.042e-05/0.4411, allocations: 44 kB / 461.3 MB, free: 432 kB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001062/0.4421, allocations: 416.2 kB / 461.7 MB, free: 4 kB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.519e-05/0.4422, allocations: 3.938 kB / 461.8 MB, free: 0 / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.861e-05/0.4423, allocations: 24.03 kB / 461.8 MB, free: 15.97 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.59e-05/0.4423, allocations: 11.95 kB / 461.8 MB, free: 15.96 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009952/0.4433, allocations: 319.8 kB / 462.1 MB, free: 15.65 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002287/0.4456, allocations: 0.9462 MB / 463 MB, free: 14.66 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001372/0.447, allocations: 443.5 kB / 463.5 MB, free: 14.21 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.062e-05/0.4471, allocations: 8.328 kB / 463.5 MB, free: 14.2 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000828/0.4479, allocations: 349.3 kB / 463.8 MB, free: 13.84 MB / 394.7 MB Notification: Performance of pre-optimization done (n=48): time 4.085e-06/0.448, allocations: 0 / 463.8 MB, free: 13.84 MB / 394.7 MB Notification: Performance of matching and sorting (n=48): time 0.002131/0.4501, allocations: 0.8418 MB / 464.7 MB, free: 12.94 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001515/0.4503, allocations: 204.3 kB / 464.9 MB, free: 12.7 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002782/0.4506, allocations: 198.8 kB / 465.1 MB, free: 12.49 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 8.21e-05/0.4507, allocations: 49.69 kB / 465.1 MB, free: 12.44 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001816/0.4509, allocations: 231.2 kB / 465.3 MB, free: 12.21 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001431/0.451, allocations: 110.6 kB / 465.4 MB, free: 12.1 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.694e-05/0.4511, allocations: 12 kB / 465.5 MB, free: 12.09 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001695/0.4512, allocations: 330.8 kB / 465.8 MB, free: 11.75 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005305/0.4518, allocations: 165 kB / 465.9 MB, free: 11.59 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005766/0.4524, allocations: 215.8 kB / 466.2 MB, free: 11.38 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005594/0.453, allocations: 245 kB / 466.4 MB, free: 11.12 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.365e-06/0.453, allocations: 0 / 466.4 MB, free: 11.12 MB / 394.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001419/0.4544, allocations: 0.5641 MB / 467 MB, free: 10.52 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.901e-05/0.4545, allocations: 118.8 kB / 467.1 MB, free: 10.38 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.021e-05/0.4546, allocations: 4 kB / 467.1 MB, free: 10.38 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.305e-05/0.4546, allocations: 7.891 kB / 467.1 MB, free: 10.37 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002909/0.4549, allocations: 47.91 kB / 467.1 MB, free: 10.32 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.968e-06/0.4549, allocations: 0 / 467.1 MB, free: 10.32 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003974/0.4553, allocations: 83.72 kB / 467.2 MB, free: 10.24 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.608e-05/0.4554, allocations: 19.98 kB / 467.2 MB, free: 10.22 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.0003856/0.4558, allocations: 246.6 kB / 467.5 MB, free: 9.961 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.532e-05/0.4559, allocations: 31.62 kB / 467.5 MB, free: 9.93 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.002e-05/0.456, allocations: 43.3 kB / 467.5 MB, free: 9.891 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.382e-06/0.456, allocations: 7.953 kB / 467.6 MB, free: 9.883 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.042e-06/0.456, allocations: 0 / 467.6 MB, free: 9.883 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.227e-06/0.4561, allocations: 0 / 467.6 MB, free: 9.883 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002128/0.4582, allocations: 1.033 MB / 468.6 MB, free: 8.785 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.558e-06/0.4582, allocations: 0 / 468.6 MB, free: 8.785 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001914/0.4584, allocations: 31.97 kB / 468.6 MB, free: 8.754 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.758e-06/0.4584, allocations: 3.938 kB / 468.6 MB, free: 8.75 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.549e-05/0.4585, allocations: 19.94 kB / 468.6 MB, free: 8.73 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.363e-06/0.4585, allocations: 0 / 468.6 MB, free: 8.73 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.4585, allocations: 0 / 468.6 MB, free: 8.73 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001507/0.4601, allocations: 0.6591 MB / 469.3 MB, free: 8.039 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.428e-05/0.4602, allocations: 104.8 kB / 469.4 MB, free: 7.918 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.346e-05/0.4603, allocations: 19.98 kB / 469.4 MB, free: 7.898 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004559/0.4607, allocations: 71.89 kB / 469.5 MB, free: 7.828 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002197/0.461, allocations: 63.89 kB / 469.6 MB, free: 7.766 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.709e-05/0.461, allocations: 19.98 kB / 469.6 MB, free: 7.746 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001742/0.4612, allocations: 145.1 kB / 469.7 MB, free: 7.605 MB / 394.7 MB Notification: Performance of sort global known variables: time 7.05e-07/0.4612, allocations: 0 / 469.7 MB, free: 7.605 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0005921/0.4618, allocations: 119.9 kB / 469.8 MB, free: 7.488 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.0003455/0.4622, allocations: 179.7 kB / 470 MB, free: 7.305 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001421/0.4636, allocations: 0.657 MB / 470.7 MB, free: 6.598 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.726e-06/0.4637, allocations: 3.938 kB / 470.7 MB, free: 6.594 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007601/0.4644, allocations: 378.6 kB / 471 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.0002883/0.4647, allocations: 22.36 kB / 471.1 MB, free: 6.18 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001632/0.4664, allocations: 0.7537 MB / 471.8 MB, free: 5.391 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005154/0.4669, allocations: 0.8004 MB / 472.6 MB, free: 4.562 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001643/0.4671, allocations: 31.42 kB / 472.6 MB, free: 4.531 MB / 394.7 MB Notification: Performance of SimCode: time 2.019e-06/0.4671, allocations: 0 / 472.6 MB, free: 4.531 MB / 394.7 MB Notification: Performance of Templates: time 0.009148/0.4763, allocations: 4.444 MB / 477.1 MB, free: 92 kB / 394.7 MB