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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.16/2.16, allocations: 235.1 MB / 243 MB, free: 9.578 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.87e-05/1.875e-05, allocations: 4 kB / 303.2 MB, free: 13.29 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2728/0.2728, allocations: 54.86 MB / 358 MB, free: 14.96 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1303/0.4031, allocations: 84.2 MB / 442.2 MB, free: 10.64 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002002/0.4034, allocations: 59.97 kB / 442.3 MB, free: 10.58 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02435/0.4277, allocations: 5.891 MB / 448.2 MB, free: 4.672 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.118e-06/0.4278, allocations: 0 / 448.2 MB, free: 4.672 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.932e-05/0.4278, allocations: 8 kB / 448.2 MB, free: 4.664 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.001472/0.4293, allocations: 0.7457 MB / 448.9 MB, free: 3.848 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.91e-05/0.4294, allocations: 12.03 kB / 449 MB, free: 3.836 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000125/0.4295, allocations: 51.47 kB / 449 MB, free: 3.785 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002228/0.4297, allocations: 195.7 kB / 449.2 MB, free: 3.551 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.527e-05/0.4298, allocations: 19.94 kB / 449.2 MB, free: 3.531 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.773e-05/0.4299, allocations: 24 kB / 449.2 MB, free: 3.508 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006385/0.4305, allocations: 233.5 kB / 449.5 MB, free: 3.277 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007727/0.4313, allocations: 325.4 kB / 449.8 MB, free: 2.949 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.461e-05/0.4314, allocations: 0 / 449.8 MB, free: 2.949 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.564e-05/0.4314, allocations: 15.94 kB / 449.8 MB, free: 2.934 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.226e-05/0.4315, allocations: 11.94 kB / 449.8 MB, free: 2.922 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002218/0.4337, allocations: 0.866 MB / 450.7 MB, free: 2.016 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001097/0.4348, allocations: 399.2 kB / 451.1 MB, free: 1.613 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003421/0.4352, allocations: 141.2 kB / 451.2 MB, free: 1.473 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.373e-05/0.4352, allocations: 4.328 kB / 451.2 MB, free: 1.469 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005936/0.4358, allocations: 303.4 kB / 451.5 MB, free: 1.148 MB / 378.7 MB Notification: Performance of pre-optimization done (n=48): time 4.67e-06/0.4359, allocations: 0 / 451.5 MB, free: 1.148 MB / 378.7 MB Notification: Performance of matching and sorting (n=48): time 0.001/0.4369, allocations: 377.1 kB / 451.9 MB, free: 0.7734 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000148/0.437, allocations: 196.3 kB / 452.1 MB, free: 0.5391 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002578/0.4373, allocations: 198.8 kB / 452.3 MB, free: 348 kB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.718e-05/0.4374, allocations: 33.7 kB / 452.3 MB, free: 308 kB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001927/0.4376, allocations: 235.2 kB / 452.5 MB, free: 72 kB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000154/0.4378, allocations: 98.94 kB / 452.6 MB, free: 15.97 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.898e-05/0.4378, allocations: 4 kB / 452.6 MB, free: 15.96 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001846/0.438, allocations: 334.8 kB / 452.9 MB, free: 15.63 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003347/0.4384, allocations: 129.1 kB / 453.1 MB, free: 15.5 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003761/0.4387, allocations: 162.8 kB / 453.2 MB, free: 15.34 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003416/0.4391, allocations: 98.14 kB / 453.3 MB, free: 15.24 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.4391, allocations: 0 / 453.3 MB, free: 15.24 MB / 394.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001198/0.4403, allocations: 427.4 kB / 453.7 MB, free: 14.82 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001063/0.4405, allocations: 114.8 kB / 453.9 MB, free: 14.68 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.938e-06/0.4405, allocations: 3.984 kB / 453.9 MB, free: 14.68 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001668/0.4407, allocations: 28.86 kB / 453.9 MB, free: 14.65 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002333/0.4409, allocations: 39.91 kB / 453.9 MB, free: 14.61 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001743/0.4427, allocations: 1.396 MB / 455.3 MB, free: 13.1 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004703/0.4432, allocations: 67.88 kB / 455.4 MB, free: 13.03 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.671e-05/0.4433, allocations: 16 kB / 455.4 MB, free: 13.02 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 () * 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.0002804/0.4435, allocations: 201.5 kB / 455.6 MB, free: 12.8 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.455e-05/0.4436, allocations: 27.72 kB / 455.6 MB, free: 12.77 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.206e-05/0.4438, allocations: 31.39 kB / 455.7 MB, free: 12.74 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.085e-06/0.4438, allocations: 8 kB / 455.7 MB, free: 12.73 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.061e-06/0.4438, allocations: 7.938 kB / 455.7 MB, free: 12.73 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.848e-06/0.4438, allocations: 4 kB / 455.7 MB, free: 12.72 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001543/0.4454, allocations: 0.8112 MB / 456.5 MB, free: 11.87 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.298e-06/0.4454, allocations: 0 / 456.5 MB, free: 11.87 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002068/0.4456, allocations: 35.92 kB / 456.5 MB, free: 11.83 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.376e-06/0.4456, allocations: 0 / 456.5 MB, free: 11.83 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.983e-05/0.4457, allocations: 11.98 kB / 456.5 MB, free: 11.82 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.894e-06/0.4457, allocations: 4 kB / 456.5 MB, free: 11.82 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.693e-06/0.4457, allocations: 0 / 456.5 MB, free: 11.82 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001021/0.4467, allocations: 0.4997 MB / 457 MB, free: 11.3 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.469e-05/0.4469, allocations: 96.83 kB / 457.1 MB, free: 11.19 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.26e-05/0.447, allocations: 12 kB / 457.1 MB, free: 11.18 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004913/0.4475, allocations: 71.92 kB / 457.2 MB, free: 11.11 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002095/0.4477, allocations: 67.67 kB / 457.3 MB, free: 11.04 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.84e-05/0.4478, allocations: 19.98 kB / 457.3 MB, free: 11.02 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001554/0.4479, allocations: 129.2 kB / 457.4 MB, free: 10.89 MB / 394.7 MB Notification: Performance of sort global known variables: time 9e-07/0.4479, allocations: 7.938 kB / 457.4 MB, free: 10.89 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0006551/0.4486, allocations: 107.8 kB / 457.5 MB, free: 10.78 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) * 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.0003549/0.449, allocations: 170.3 kB / 457.7 MB, free: 10.6 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001169/0.4502, allocations: 0.6646 MB / 458.4 MB, free: 9.875 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.107e-06/0.4502, allocations: 0 / 458.4 MB, free: 9.875 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005372/0.4507, allocations: 323.1 kB / 458.7 MB, free: 9.535 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000279/0.451, allocations: 22.47 kB / 458.7 MB, free: 9.516 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001205/0.4523, allocations: 483.2 kB / 459.2 MB, free: 9.016 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000538/0.4528, allocations: 0.8007 MB / 460 MB, free: 8.191 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001623/0.453, allocations: 39.42 kB / 460 MB, free: 8.152 MB / 394.7 MB Notification: Performance of SimCode: time 1.816e-06/0.453, allocations: 0 / 460 MB, free: 8.152 MB / 394.7 MB Notification: Performance of Templates: time 0.01053/0.4635, allocations: 5.073 MB / 465.1 MB, free: 3.086 MB / 394.7 MB