Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.874/1.874, allocations: 209.3 MB / 222.4 MB, free: 7.723 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.908e-05/2.923e-05, allocations: 4 kB / 277.8 MB, free: 15.32 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08719/0.08725, allocations: 48.7 MB / 326.5 MB, free: 14.53 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.337/0.4243, allocations: 78.47 MB / 405 MB, free: 9.543 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001734/0.4245, allocations: 60.72 kB / 405.1 MB, free: 9.535 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0215/0.446, allocations: 5.911 MB / 411 MB, free: 7.039 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.821e-06/0.446, allocations: 0 / 411 MB, free: 7.039 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.475e-05/0.4461, allocations: 7.656 kB / 411 MB, free: 7.039 MB / 314.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.001152/0.4472, allocations: 0.7514 MB / 411.7 MB, free: 6.406 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.652e-05/0.4473, allocations: 11.69 kB / 411.7 MB, free: 6.406 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001038/0.4474, allocations: 42.75 kB / 411.8 MB, free: 6.387 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001286/0.4475, allocations: 213.7 kB / 412 MB, free: 6.156 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.009e-05/0.4476, allocations: 33.81 kB / 412 MB, free: 6.156 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.164e-05/0.4477, allocations: 44.38 kB / 412.1 MB, free: 6.152 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006855/0.4484, allocations: 329.8 kB / 412.4 MB, free: 6.066 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.541e-05/0.4484, allocations: 0 / 412.4 MB, free: 6.066 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.982e-05/0.4485, allocations: 14.66 kB / 412.4 MB, free: 6.066 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.034e-05/0.4485, allocations: 11.53 kB / 412.4 MB, free: 6.066 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005745/0.4491, allocations: 250 kB / 412.7 MB, free: 5.922 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001928/0.451, allocations: 0.9501 MB / 413.6 MB, free: 5.109 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001011/0.4521, allocations: 409.1 kB / 414 MB, free: 4.812 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003085/0.4524, allocations: 166.8 kB / 414.2 MB, free: 4.707 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.32e-05/0.4524, allocations: 4.328 kB / 414.2 MB, free: 4.703 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005016/0.453, allocations: 310.6 kB / 414.5 MB, free: 4.441 MB / 314.7 MB Notification: Performance of pre-optimization done (n=48): time 4.027e-06/0.453, allocations: 0 / 414.5 MB, free: 4.441 MB / 314.7 MB Notification: Performance of matching and sorting (n=48): time 0.0009244/0.4539, allocations: 456.4 kB / 414.9 MB, free: 4.062 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.83e-05/0.454, allocations: 172.7 kB / 415.1 MB, free: 3.863 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002034/0.4542, allocations: 207 kB / 415.3 MB, free: 3.688 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.832e-05/0.4543, allocations: 43.08 kB / 415.3 MB, free: 3.648 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001012/0.4544, allocations: 238.4 kB / 415.6 MB, free: 3.449 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.895e-05/0.4545, allocations: 110 kB / 415.7 MB, free: 3.367 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.364e-05/0.4546, allocations: 10.62 kB / 415.7 MB, free: 3.363 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.611e-05/0.4546, allocations: 336.9 kB / 416 MB, free: 3.035 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000318/0.455, allocations: 134.4 kB / 416.1 MB, free: 2.953 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003135/0.4553, allocations: 145.5 kB / 416.3 MB, free: 2.867 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002858/0.4556, allocations: 217.7 kB / 416.5 MB, free: 2.66 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.083e-06/0.4556, allocations: 4 kB / 416.5 MB, free: 2.656 MB / 314.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.00109/0.4567, allocations: 0.543 MB / 417 MB, free: 2.18 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.413e-05/0.4568, allocations: 114.4 kB / 417.2 MB, free: 2.047 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.534e-06/0.4568, allocations: 7.984 kB / 417.2 MB, free: 2.039 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001578/0.457, allocations: 30.41 kB / 417.2 MB, free: 2.016 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002187/0.4572, allocations: 51.48 kB / 417.2 MB, free: 1.969 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001207/0.4584, allocations: 1.438 MB / 418.7 MB, free: 476 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003993/0.4589, allocations: 66.86 kB / 418.8 MB, free: 416 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.709e-05/0.4589, allocations: 15.38 kB / 418.8 MB, free: 404 kB / 314.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (60): * Single equations (assignments): 55 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0001932/0.4591, allocations: 220.4 kB / 419 MB, free: 184 kB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.321e-05/0.4592, allocations: 39.58 kB / 419 MB, free: 144 kB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.816e-05/0.4593, allocations: 34.72 kB / 419.1 MB, free: 136 kB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.363e-06/0.4593, allocations: 4 kB / 419.1 MB, free: 132 kB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.96e-06/0.4594, allocations: 0 / 419.1 MB, free: 132 kB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.189e-06/0.4594, allocations: 3.984 kB / 419.1 MB, free: 128 kB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001633/0.461, allocations: 0.9638 MB / 420 MB, free: 15.29 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.704e-06/0.461, allocations: 4 kB / 420 MB, free: 15.29 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002081/0.4613, allocations: 34.72 kB / 420.1 MB, free: 15.25 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.55e-06/0.4613, allocations: 3.938 kB / 420.1 MB, free: 15.25 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.163e-05/0.4613, allocations: 13.75 kB / 420.1 MB, free: 15.24 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.912e-06/0.4614, allocations: 3.984 kB / 420.1 MB, free: 15.24 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.827e-06/0.4614, allocations: 0 / 420.1 MB, free: 15.24 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001088/0.4625, allocations: 0.5967 MB / 420.7 MB, free: 14.72 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002308/0.4627, allocations: 136.5 kB / 420.8 MB, free: 14.58 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.74e-05/0.4628, allocations: 18.42 kB / 420.8 MB, free: 14.57 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004558/0.4633, allocations: 70.12 kB / 420.9 MB, free: 14.51 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002069/0.4635, allocations: 59.08 kB / 421 MB, free: 14.46 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.504e-05/0.4636, allocations: 15.5 kB / 421 MB, free: 14.45 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001698/0.4638, allocations: 143.7 kB / 421.1 MB, free: 14.33 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.7e-07/0.4638, allocations: 0 / 421.1 MB, free: 14.33 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006686/0.4645, allocations: 121.8 kB / 421.2 MB, free: 14.22 MB / 330.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) * 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.0003306/0.4648, allocations: 169.3 kB / 421.4 MB, free: 14.06 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001184/0.466, allocations: 0.6995 MB / 422.1 MB, free: 13.42 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.529e-06/0.466, allocations: 0 / 422.1 MB, free: 13.42 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005436/0.4666, allocations: 337 kB / 422.4 MB, free: 13.14 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002859/0.4669, allocations: 26.84 kB / 422.5 MB, free: 13.12 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001193/0.4681, allocations: 0.5047 MB / 423 MB, free: 12.67 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005102/0.4686, allocations: 0.7998 MB / 423.8 MB, free: 11.85 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001551/0.4688, allocations: 31.3 kB / 423.8 MB, free: 11.82 MB / 330.7 MB Notification: Performance of SimCode: time 1.638e-06/0.4688, allocations: 0 / 423.8 MB, free: 11.82 MB / 330.7 MB Notification: Performance of Templates: time 0.01021/0.479, allocations: 5.031 MB / 428.8 MB, free: 6.836 MB / 330.7 MB