Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Blocks.Logical.conf.json Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Logical,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Blocks_Logical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo): time 0.01112/0.01112, allocations: 106 kB / 15.06 MB, free: 5.555 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo): time 0.001138/0.001138, allocations: 166.4 kB / 15.93 MB, free: 5.527 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo): time 1.636/1.636, allocations: 170.9 MB / 187.5 MB, free: 0.8555 MB / 154.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo): time 0.2547/0.2547, allocations: 38.09 MB / 265.1 MB, free: 3.953 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004583/0.0004585, allocations: 12 kB / 323.6 MB, free: 29.64 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09748/0.09798, allocations: 48.71 MB / 372.3 MB, free: 12.86 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Logical): time 0.004514/0.1026, allocations: 1.788 MB / 374.1 MB, free: 11.05 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.00271/0.1053, allocations: 0.807 MB / 374.9 MB, free: 10.24 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001941/0.1055, allocations: 4 kB / 374.9 MB, free: 10.24 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001207/0.1057, allocations: 27.7 kB / 374.9 MB, free: 10.21 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002203/0.1059, allocations: 23.84 kB / 374.9 MB, free: 10.19 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001424/0.1074, allocations: 227.5 kB / 375.2 MB, free: 9.965 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005441/0.1079, allocations: 208.6 kB / 375.4 MB, free: 9.762 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004933/0.1084, allocations: 141.7 kB / 375.5 MB, free: 9.621 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003989/0.1089, allocations: 119.5 kB / 375.6 MB, free: 9.504 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003246/0.1092, allocations: 143.3 kB / 375.8 MB, free: 9.363 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 8.003e-05/0.1093, allocations: 12 kB / 375.8 MB, free: 9.352 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003995/0.1097, allocations: 91.86 kB / 375.9 MB, free: 9.262 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001519/0.1099, allocations: 59.75 kB / 375.9 MB, free: 9.203 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001657/0.1101, allocations: 85.52 kB / 376 MB, free: 9.113 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007203/0.1108, allocations: 303.6 kB / 376.3 MB, free: 8.816 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.1109, allocations: 0 / 376.3 MB, free: 8.816 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.304e-06/0.1109, allocations: 0 / 376.3 MB, free: 8.816 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.589e-05/0.1109, allocations: 0 / 376.3 MB, free: 8.816 MB / 282.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.003087/0.114, allocations: 0.7712 MB / 377.1 MB, free: 7.973 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.602e-05/0.1141, allocations: 12.03 kB / 377.1 MB, free: 7.961 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002047/0.1143, allocations: 78.47 kB / 377.2 MB, free: 7.875 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001924/0.1145, allocations: 43.53 kB / 377.2 MB, free: 7.832 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003099/0.1149, allocations: 222.4 kB / 377.4 MB, free: 7.574 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.113e-05/0.115, allocations: 33 kB / 377.4 MB, free: 7.543 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001532/0.1151, allocations: 40 kB / 377.5 MB, free: 7.504 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001903/0.1171, allocations: 374.4 kB / 377.8 MB, free: 7.133 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.467e-05/0.1171, allocations: 0 / 377.8 MB, free: 7.133 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.327e-05/0.1172, allocations: 16 kB / 377.9 MB, free: 7.117 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.297e-05/0.1173, allocations: 8 kB / 377.9 MB, free: 7.109 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001903/0.1192, allocations: 323.7 kB / 378.2 MB, free: 6.789 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003656/0.1229, allocations: 0.9537 MB / 379.1 MB, free: 5.781 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002506/0.1254, allocations: 446.9 kB / 379.6 MB, free: 5.34 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.55e-05/0.1255, allocations: 4.328 kB / 379.6 MB, free: 5.336 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001424/0.127, allocations: 357.1 kB / 379.9 MB, free: 4.965 MB / 282.7 MB Notification: Performance of pre-optimization done (n=48): time 5.24e-06/0.127, allocations: 0 / 379.9 MB, free: 4.965 MB / 282.7 MB Notification: Performance of matching and sorting (n=48): time 0.003615/0.1306, allocations: 0.8341 MB / 380.8 MB, free: 4.074 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000183/0.1309, allocations: 170.6 kB / 380.9 MB, free: 3.871 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004565/0.1313, allocations: 227.7 kB / 381.2 MB, free: 3.641 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001208/0.1315, allocations: 49.7 kB / 381.2 MB, free: 3.586 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002268/0.1317, allocations: 176.7 kB / 381.4 MB, free: 3.41 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002022/0.1319, allocations: 106.6 kB / 381.5 MB, free: 3.305 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.719e-05/0.132, allocations: 12 kB / 381.5 MB, free: 3.293 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.000219/0.1322, allocations: 346.8 kB / 381.8 MB, free: 2.945 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009612/0.1332, allocations: 165 kB / 382 MB, free: 2.781 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009378/0.1342, allocations: 172.9 kB / 382.2 MB, free: 2.617 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000918/0.1351, allocations: 249 kB / 382.4 MB, free: 2.348 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.421e-06/0.1352, allocations: 3.938 kB / 382.4 MB, free: 2.344 MB / 282.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.002368/0.1375, allocations: 0.5639 MB / 383 MB, free: 1.746 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001272/0.1377, allocations: 118.8 kB / 383.1 MB, free: 1.605 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.04e-05/0.1377, allocations: 0 / 383.1 MB, free: 1.605 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.425e-05/0.1377, allocations: 4 kB / 383.1 MB, free: 1.602 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005073/0.1383, allocations: 51.83 kB / 383.1 MB, free: 1.551 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.642e-05/0.1383, allocations: 4 kB / 383.1 MB, free: 1.547 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008295/0.1391, allocations: 91.5 kB / 383.2 MB, free: 1.457 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001027/0.1393, allocations: 16 kB / 383.2 MB, free: 1.441 MB / 282.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,xor.y,nor.y,nand.y,$PRE.pre1.u,pre1.u,pre1.y,$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.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.0007315/0.14, allocations: 241.1 kB / 383.5 MB, free: 1.184 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000136/0.1402, allocations: 31.72 kB / 383.5 MB, free: 1.152 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001703/0.1404, allocations: 39.3 kB / 383.6 MB, free: 1.113 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.195e-05/0.1404, allocations: 7.938 kB / 383.6 MB, free: 1.105 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.388e-06/0.1404, allocations: 0 / 383.6 MB, free: 1.105 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.428e-06/0.1405, allocations: 0 / 383.6 MB, free: 1.105 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003453/0.1439, allocations: 1.048 MB / 384.6 MB, free: 15.98 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.962e-06/0.144, allocations: 0 / 384.6 MB, free: 15.98 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003438/0.1443, allocations: 35.86 kB / 384.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.476e-06/0.1444, allocations: 4 kB / 384.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.604e-05/0.1445, allocations: 11.98 kB / 384.7 MB, free: 15.94 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.588e-06/0.1445, allocations: 4 kB / 384.7 MB, free: 15.93 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.33e-06/0.1445, allocations: 7.953 kB / 384.7 MB, free: 15.93 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002625/0.1471, allocations: 0.6551 MB / 385.3 MB, free: 15.24 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003236/0.1475, allocations: 140.7 kB / 385.5 MB, free: 15.09 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001392/0.1477, allocations: 12 kB / 385.5 MB, free: 15.07 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009079/0.1486, allocations: 71.94 kB / 385.5 MB, free: 15 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003772/0.149, allocations: 63.89 kB / 385.6 MB, free: 14.94 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001026/0.1491, allocations: 23.94 kB / 385.6 MB, free: 14.92 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002499/0.1494, allocations: 141.3 kB / 385.8 MB, free: 14.78 MB / 298.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.1494, allocations: 0 / 385.8 MB, free: 14.78 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0009529/0.1503, allocations: 127.7 kB / 385.9 MB, free: 14.66 MB / 298.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,xor.y,nor.y,nand.y,pre1.u,pre1.y,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.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.00329/0.1537, allocations: 1.262 MB / 387.2 MB, free: 13.35 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002333/0.156, allocations: 0.6521 MB / 387.8 MB, free: 12.65 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.23e-06/0.1561, allocations: 0 / 387.8 MB, free: 12.65 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00132/0.1574, allocations: 379.1 kB / 388.2 MB, free: 12.25 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004608/0.1579, allocations: 23.72 kB / 388.2 MB, free: 12.23 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007152/0.1651, allocations: 1.958 MB / 390.2 MB, free: 10.23 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006166/0.1658, allocations: 0.7998 MB / 391 MB, free: 9.406 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0003047/0.1661, allocations: 26.95 kB / 391 MB, free: 9.375 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003874/0.1665, allocations: 119.4 kB / 391.1 MB, free: 9.258 MB / 298.7 MB Notification: Performance of SimCode: time 1.232e-06/0.1665, allocations: 0 / 391.1 MB, free: 9.258 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03704/0.2036, allocations: 6.468 MB / 397.6 MB, free: 2.871 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002298/0.2039, allocations: 154.9 kB / 397.7 MB, free: 2.637 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.87/3.074, allocations: 4.062 kB / 397.7 MB, free: 2.633 MB / 298.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.Blocks.Logical_res.mat does not exist to compare? outputFormat=mat