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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.933/1.933, allocations: 209.4 MB / 217.3 MB, free: 4.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.101e-05/2.101e-05, allocations: 4 kB / 271.3 MB, free: 14.14 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2579/0.2579, allocations: 48.69 MB / 320 MB, free: 14.4 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1152/0.3732, allocations: 77.81 MB / 397.8 MB, free: 2.645 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001763/0.3734, allocations: 63.97 kB / 397.9 MB, free: 2.582 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0239/0.3973, allocations: 5.858 MB / 403.7 MB, free: 12.71 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.845e-06/0.3973, allocations: 0 / 403.7 MB, free: 12.71 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.562e-05/0.3974, allocations: 8 kB / 403.7 MB, free: 12.7 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.001391/0.3988, allocations: 0.7496 MB / 404.5 MB, free: 11.88 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.952e-05/0.3988, allocations: 15.95 kB / 404.5 MB, free: 11.86 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001163/0.3989, allocations: 43.53 kB / 404.6 MB, free: 11.82 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002241/0.3992, allocations: 206.6 kB / 404.8 MB, free: 11.58 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.126e-05/0.3992, allocations: 12 kB / 404.8 MB, free: 11.57 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.454e-05/0.3993, allocations: 35.88 kB / 404.8 MB, free: 11.53 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006191/0.4, allocations: 229.5 kB / 405 MB, free: 11.31 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006683/0.4007, allocations: 274.1 kB / 405.3 MB, free: 11.04 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.563e-05/0.4007, allocations: 3.984 kB / 405.3 MB, free: 11.03 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.48e-05/0.4007, allocations: 12 kB / 405.3 MB, free: 11.02 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.094e-05/0.4008, allocations: 8 kB / 405.3 MB, free: 11.01 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002101/0.4029, allocations: 0.8738 MB / 406.2 MB, free: 10.1 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00105/0.4039, allocations: 393.6 kB / 406.6 MB, free: 9.703 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003169/0.4043, allocations: 141.2 kB / 406.7 MB, free: 9.562 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.709e-05/0.4043, allocations: 4.328 kB / 406.7 MB, free: 9.559 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005656/0.4049, allocations: 299.4 kB / 407 MB, free: 9.246 MB / 346.7 MB Notification: Performance of pre-optimization done (n=48): time 6.164e-06/0.4049, allocations: 0 / 407 MB, free: 9.246 MB / 346.7 MB Notification: Performance of matching and sorting (n=48): time 0.0009243/0.4059, allocations: 384.8 kB / 407.4 MB, free: 8.859 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001212/0.406, allocations: 170.6 kB / 407.5 MB, free: 8.656 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002336/0.4063, allocations: 186 kB / 407.7 MB, free: 8.469 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.835e-05/0.4063, allocations: 37.7 kB / 407.8 MB, free: 8.426 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001699/0.4065, allocations: 231.2 kB / 408 MB, free: 8.199 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000132/0.4067, allocations: 98.67 kB / 408.1 MB, free: 8.102 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.751e-05/0.4067, allocations: 4 kB / 408.1 MB, free: 8.098 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000173/0.4069, allocations: 338.8 kB / 408.4 MB, free: 7.758 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000336/0.4072, allocations: 125.1 kB / 408.5 MB, free: 7.637 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000326/0.4076, allocations: 131.9 kB / 408.7 MB, free: 7.508 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003224/0.4079, allocations: 102.1 kB / 408.8 MB, free: 7.41 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.285e-06/0.4079, allocations: 0 / 408.8 MB, free: 7.41 MB / 346.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001145/0.4091, allocations: 411.7 kB / 409.2 MB, free: 6.996 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.514e-05/0.4092, allocations: 118.7 kB / 409.3 MB, free: 6.855 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.944e-06/0.4092, allocations: 8 kB / 409.3 MB, free: 6.848 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001555/0.4094, allocations: 32.84 kB / 409.3 MB, free: 6.812 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000219/0.4096, allocations: 35.91 kB / 409.4 MB, free: 6.777 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001656/0.4113, allocations: 1.388 MB / 410.8 MB, free: 5.273 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003871/0.4117, allocations: 60.06 kB / 410.8 MB, free: 5.215 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.193e-05/0.4118, allocations: 16 kB / 410.8 MB, free: 5.199 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 () * 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.0002574/0.4121, allocations: 218 kB / 411 MB, free: 4.969 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.422e-05/0.4122, allocations: 35.61 kB / 411.1 MB, free: 4.934 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.794e-05/0.4123, allocations: 35.36 kB / 411.1 MB, free: 4.898 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.915e-06/0.4123, allocations: 4 kB / 411.1 MB, free: 4.895 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.082e-06/0.4123, allocations: 0 / 411.1 MB, free: 4.895 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.435e-06/0.4123, allocations: 7.984 kB / 411.1 MB, free: 4.887 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001459/0.4138, allocations: 0.7957 MB / 411.9 MB, free: 4.047 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.546e-06/0.4138, allocations: 0 / 411.9 MB, free: 4.047 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001968/0.414, allocations: 35.91 kB / 412 MB, free: 4.012 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.618e-06/0.414, allocations: 8 kB / 412 MB, free: 4.004 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.54e-05/0.4141, allocations: 11.89 kB / 412 MB, free: 3.992 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.959e-06/0.4141, allocations: 0 / 412 MB, free: 3.992 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.616e-06/0.4141, allocations: 7.938 kB / 412 MB, free: 3.984 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009912/0.4151, allocations: 0.4957 MB / 412.5 MB, free: 3.473 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002111/0.4154, allocations: 136.7 kB / 412.6 MB, free: 3.32 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.969e-05/0.4155, allocations: 12 kB / 412.6 MB, free: 3.309 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004426/0.4159, allocations: 63.89 kB / 412.7 MB, free: 3.246 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001922/0.4161, allocations: 63.89 kB / 412.7 MB, free: 3.184 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.913e-05/0.4162, allocations: 23.98 kB / 412.8 MB, free: 3.16 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001501/0.4164, allocations: 135.7 kB / 412.9 MB, free: 3.027 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.93e-07/0.4164, allocations: 3.938 kB / 412.9 MB, free: 3.023 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006307/0.417, allocations: 103.9 kB / 413 MB, free: 2.922 MB / 346.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.0003177/0.4173, allocations: 167.2 kB / 413.2 MB, free: 2.746 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001087/0.4184, allocations: 0.6646 MB / 413.8 MB, free: 2.023 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.49e-06/0.4185, allocations: 4 kB / 413.8 MB, free: 2.02 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005291/0.419, allocations: 323.1 kB / 414.2 MB, free: 1.68 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002545/0.4193, allocations: 15.78 kB / 414.2 MB, free: 1.664 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001138/0.4204, allocations: 489.5 kB / 414.7 MB, free: 1.156 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005047/0.421, allocations: 0.7959 MB / 415.4 MB, free: 344 kB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000146/0.4211, allocations: 31.42 kB / 415.5 MB, free: 312 kB / 346.7 MB Notification: Performance of SimCode: time 1.541e-06/0.4211, allocations: 0 / 415.5 MB, free: 312 kB / 346.7 MB Notification: Performance of Templates: time 0.01001/0.4312, allocations: 5.031 MB / 420.5 MB, free: 11.29 MB / 362.7 MB