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.89/1.89, allocations: 209.3 MB / 224.8 MB, free: 196 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004427/0.000443, allocations: 8 kB / 282.6 MB, free: 9.594 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2811/0.2816, allocations: 48.7 MB / 331.3 MB, free: 6.492 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1162/0.3978, allocations: 78.56 MB / 409.8 MB, free: 15.86 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002487/0.3981, allocations: 67.97 kB / 409.9 MB, free: 15.8 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02484/0.423, allocations: 5.926 MB / 415.8 MB, free: 9.859 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.521e-06/0.423, allocations: 4 kB / 415.8 MB, free: 9.855 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.891e-05/0.4231, allocations: 8 kB / 415.8 MB, free: 9.848 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.001541/0.4246, allocations: 0.7698 MB / 416.6 MB, free: 9.004 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.014e-05/0.4247, allocations: 12.03 kB / 416.6 MB, free: 8.992 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001262/0.4248, allocations: 47.53 kB / 416.7 MB, free: 8.945 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002194/0.425, allocations: 210.3 kB / 416.9 MB, free: 8.699 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.44e-05/0.4251, allocations: 33 kB / 416.9 MB, free: 8.668 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.553e-05/0.4252, allocations: 40 kB / 416.9 MB, free: 8.629 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001007/0.4262, allocations: 370.4 kB / 417.3 MB, free: 8.262 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.729e-05/0.4263, allocations: 4 kB / 417.3 MB, free: 8.258 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.6e-05/0.4263, allocations: 19.94 kB / 417.3 MB, free: 8.238 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.858e-05/0.4264, allocations: 12 kB / 417.3 MB, free: 8.227 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001003/0.4274, allocations: 315.8 kB / 417.6 MB, free: 7.914 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002284/0.4297, allocations: 0.9462 MB / 418.6 MB, free: 6.914 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001422/0.4311, allocations: 458.1 kB / 419 MB, free: 6.457 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.413e-05/0.4312, allocations: 8.328 kB / 419 MB, free: 6.449 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008229/0.432, allocations: 341.3 kB / 419.4 MB, free: 6.094 MB / 346.7 MB Notification: Performance of pre-optimization done (n=48): time 4.017e-06/0.432, allocations: 0 / 419.4 MB, free: 6.094 MB / 346.7 MB Notification: Performance of matching and sorting (n=48): time 0.002114/0.4342, allocations: 0.8457 MB / 420.2 MB, free: 5.191 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001371/0.4343, allocations: 170.6 kB / 420.4 MB, free: 4.988 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002841/0.4346, allocations: 210.2 kB / 420.6 MB, free: 4.777 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.665e-05/0.4347, allocations: 45.7 kB / 420.6 MB, free: 4.727 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001805/0.4349, allocations: 227.2 kB / 420.9 MB, free: 4.504 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001419/0.4351, allocations: 106.8 kB / 421 MB, free: 4.398 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.516e-05/0.4351, allocations: 12 kB / 421 MB, free: 4.387 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001865/0.4353, allocations: 338.8 kB / 421.3 MB, free: 4.047 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005395/0.4359, allocations: 165 kB / 421.5 MB, free: 3.887 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005257/0.4364, allocations: 173 kB / 421.6 MB, free: 3.719 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005387/0.437, allocations: 249 kB / 421.9 MB, free: 3.453 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.493e-06/0.437, allocations: 0 / 421.9 MB, free: 3.453 MB / 346.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001386/0.4384, allocations: 0.564 MB / 422.4 MB, free: 2.855 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001048/0.4385, allocations: 114.8 kB / 422.6 MB, free: 2.719 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.433e-06/0.4385, allocations: 7.984 kB / 422.6 MB, free: 2.711 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.944e-05/0.4386, allocations: 4 kB / 422.6 MB, free: 2.707 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002894/0.4389, allocations: 51.78 kB / 422.6 MB, free: 2.656 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.555e-05/0.4389, allocations: 4 kB / 422.6 MB, free: 2.652 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003788/0.4393, allocations: 67.89 kB / 422.7 MB, free: 2.586 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.749e-05/0.4394, allocations: 19.98 kB / 422.7 MB, free: 2.566 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.0003759/0.4397, allocations: 241.1 kB / 422.9 MB, free: 2.309 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.232e-05/0.4398, allocations: 35.61 kB / 423 MB, free: 2.273 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.447e-05/0.44, allocations: 39.3 kB / 423 MB, free: 2.234 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.142e-05/0.44, allocations: 4 kB / 423 MB, free: 2.23 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.788e-06/0.44, allocations: 11.88 kB / 423 MB, free: 2.219 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.376e-06/0.44, allocations: 3.984 kB / 423 MB, free: 2.215 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002108/0.4421, allocations: 1.021 MB / 424.1 MB, free: 1.125 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.719e-06/0.4422, allocations: 7.984 kB / 424.1 MB, free: 1.117 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001858/0.4424, allocations: 31.92 kB / 424.1 MB, free: 1.086 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.678e-06/0.4424, allocations: 4 kB / 424.1 MB, free: 1.082 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.978e-05/0.4424, allocations: 11.98 kB / 424.1 MB, free: 1.07 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.578e-06/0.4425, allocations: 4 kB / 424.1 MB, free: 1.066 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.05e-06/0.4425, allocations: 0 / 424.1 MB, free: 1.066 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001528/0.444, allocations: 0.6591 MB / 424.8 MB, free: 388 kB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002231/0.4443, allocations: 140.6 kB / 424.9 MB, free: 228 kB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.98e-05/0.4444, allocations: 20 kB / 424.9 MB, free: 208 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004442/0.4448, allocations: 67.94 kB / 425 MB, free: 140 kB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002009/0.445, allocations: 67.89 kB / 425.1 MB, free: 72 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.591e-05/0.4451, allocations: 15.98 kB / 425.1 MB, free: 56 kB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001965/0.4453, allocations: 141.3 kB / 425.2 MB, free: 15.92 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.66e-07/0.4453, allocations: 0 / 425.2 MB, free: 15.92 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005855/0.4459, allocations: 115.9 kB / 425.3 MB, free: 15.8 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.000341/0.4463, allocations: 173.7 kB / 425.5 MB, free: 15.62 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001427/0.4477, allocations: 0.6558 MB / 426.2 MB, free: 14.92 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.129e-06/0.4477, allocations: 0 / 426.2 MB, free: 14.92 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007582/0.4485, allocations: 372 kB / 426.5 MB, free: 14.53 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002864/0.4488, allocations: 31.52 kB / 426.5 MB, free: 14.5 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0016/0.4504, allocations: 0.7551 MB / 427.3 MB, free: 13.71 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005291/0.451, allocations: 0.7959 MB / 428.1 MB, free: 12.89 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001626/0.4512, allocations: 31.42 kB / 428.1 MB, free: 12.86 MB / 362.7 MB Notification: Performance of SimCode: time 1.978e-06/0.4512, allocations: 0 / 428.1 MB, free: 12.86 MB / 362.7 MB Notification: Performance of Templates: time 0.009131/0.4603, allocations: 4.411 MB / 432.5 MB, free: 8.457 MB / 362.7 MB