Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Blocks.Logical.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Logical,fileNamePrefix="ModelicaTest_3_2_2_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.2/package.mo): time 0.01113/0.01114, allocations: 106.3 kB / 15.06 MB, free: 5.551 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo): time 0.00117/0.00117, allocations: 178.2 kB / 15.95 MB, free: 5.516 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo): time 2.073/2.073, allocations: 194.6 MB / 211.3 MB, free: 11.01 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo): time 0.2991/0.2991, allocations: 40.04 MB / 296.5 MB, free: 6.293 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004787/0.0004789, allocations: 16 kB / 361.1 MB, free: 9.547 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1197/0.1202, allocations: 54.87 MB / 416 MB, free: 2.578 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Logical): time 0.003845/0.1241, allocations: 1.796 MB / 417.8 MB, free: 0.7578 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002237/0.1264, allocations: 0.8156 MB / 418.6 MB, free: 15.94 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000228/0.1267, allocations: 4 kB / 418.6 MB, free: 15.93 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001027/0.1268, allocations: 23.72 kB / 418.6 MB, free: 15.91 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001827/0.127, allocations: 23.89 kB / 418.7 MB, free: 15.89 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001192/0.1282, allocations: 227.5 kB / 418.9 MB, free: 15.66 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004129/0.1286, allocations: 212.6 kB / 419.1 MB, free: 15.46 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003785/0.129, allocations: 145.3 kB / 419.2 MB, free: 15.32 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002705/0.1293, allocations: 119.5 kB / 419.4 MB, free: 15.2 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002327/0.1295, allocations: 139.3 kB / 419.5 MB, free: 15.06 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 5.684e-05/0.1296, allocations: 16 kB / 419.5 MB, free: 15.05 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002889/0.1299, allocations: 91.86 kB / 419.6 MB, free: 14.96 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001207/0.1301, allocations: 67.69 kB / 419.7 MB, free: 14.89 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001182/0.1302, allocations: 85.5 kB / 419.7 MB, free: 14.8 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005528/0.1308, allocations: 303.5 kB / 420 MB, free: 14.5 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.876e-06/0.1308, allocations: 0 / 420 MB, free: 14.5 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.024e-06/0.1308, allocations: 0 / 420 MB, free: 14.5 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.253e-06/0.1308, allocations: 0 / 420 MB, free: 14.5 MB / 362.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.002084/0.1329, allocations: 0.7712 MB / 420.8 MB, free: 13.66 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.023e-05/0.133, allocations: 8.031 kB / 420.8 MB, free: 13.65 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001352/0.1331, allocations: 78.52 kB / 420.9 MB, free: 13.57 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001277/0.1332, allocations: 47.53 kB / 420.9 MB, free: 13.52 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002488/0.1335, allocations: 223.3 kB / 421.2 MB, free: 13.26 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.217e-05/0.1336, allocations: 32.95 kB / 421.2 MB, free: 13.23 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001128/0.1337, allocations: 55.98 kB / 421.3 MB, free: 13.17 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001371/0.1351, allocations: 414.1 kB / 421.7 MB, free: 12.75 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.054e-05/0.1352, allocations: 0 / 421.7 MB, free: 12.75 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.556e-05/0.1352, allocations: 20 kB / 421.7 MB, free: 12.73 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.817e-05/0.1353, allocations: 8 kB / 421.7 MB, free: 12.73 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00125/0.1365, allocations: 311.8 kB / 422 MB, free: 12.42 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002842/0.1394, allocations: 0.9576 MB / 422.9 MB, free: 11.41 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001879/0.1413, allocations: 451.4 kB / 423.4 MB, free: 10.96 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.581e-05/0.1414, allocations: 4.328 kB / 423.4 MB, free: 10.96 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001034/0.1425, allocations: 345.2 kB / 423.7 MB, free: 10.6 MB / 362.7 MB Notification: Performance of pre-optimization done (n=48): time 4.438e-06/0.1425, allocations: 0 / 423.7 MB, free: 10.6 MB / 362.7 MB Notification: Performance of matching and sorting (n=48): time 0.002611/0.1451, allocations: 0.8302 MB / 424.6 MB, free: 9.715 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001391/0.1453, allocations: 204.3 kB / 424.8 MB, free: 9.473 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003088/0.1456, allocations: 223.5 kB / 425 MB, free: 9.242 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.205e-05/0.1457, allocations: 45.7 kB / 425 MB, free: 9.191 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001668/0.1459, allocations: 176.8 kB / 425.2 MB, free: 9.016 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001509/0.146, allocations: 114.5 kB / 425.3 MB, free: 8.902 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.173e-05/0.1461, allocations: 12 kB / 425.3 MB, free: 8.891 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001742/0.1463, allocations: 342.8 kB / 425.7 MB, free: 8.547 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006536/0.1469, allocations: 169 kB / 425.8 MB, free: 8.379 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007141/0.1477, allocations: 203.8 kB / 426 MB, free: 8.176 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006561/0.1483, allocations: 260.9 kB / 426.3 MB, free: 7.898 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.469e-06/0.1484, allocations: 0 / 426.3 MB, free: 7.898 MB / 362.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001663/0.15, allocations: 0.5639 MB / 426.8 MB, free: 7.301 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001127/0.1502, allocations: 118.8 kB / 427 MB, free: 7.16 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.466e-06/0.1502, allocations: 0 / 427 MB, free: 7.16 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.116e-05/0.1502, allocations: 0 / 427 MB, free: 7.16 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003983/0.1506, allocations: 55.89 kB / 427 MB, free: 7.105 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.115e-05/0.1506, allocations: 3.938 kB / 427 MB, free: 7.102 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006145/0.1513, allocations: 87.64 kB / 427.1 MB, free: 7.016 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.286e-05/0.1513, allocations: 19.94 kB / 427.1 MB, free: 6.996 MB / 362.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.0003879/0.1517, allocations: 241.1 kB / 427.3 MB, free: 6.738 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.306e-05/0.1518, allocations: 31.62 kB / 427.4 MB, free: 6.707 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001141/0.152, allocations: 43.3 kB / 427.4 MB, free: 6.664 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.975e-06/0.152, allocations: 4 kB / 427.4 MB, free: 6.66 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.103e-06/0.152, allocations: 0 / 427.4 MB, free: 6.66 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.543e-06/0.152, allocations: 0 / 427.4 MB, free: 6.66 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002516/0.1545, allocations: 1.049 MB / 428.5 MB, free: 5.543 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.204e-06/0.1546, allocations: 4 kB / 428.5 MB, free: 5.539 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000251/0.1548, allocations: 31.92 kB / 428.5 MB, free: 5.508 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.997e-06/0.1549, allocations: 3.984 kB / 428.5 MB, free: 5.504 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.972e-05/0.1549, allocations: 19.98 kB / 428.5 MB, free: 5.484 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.441e-06/0.1549, allocations: 0 / 428.5 MB, free: 5.484 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.355e-06/0.155, allocations: 0 / 428.5 MB, free: 5.484 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001877/0.1568, allocations: 0.6707 MB / 429.2 MB, free: 4.785 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.55e-05/0.157, allocations: 100.8 kB / 429.3 MB, free: 4.668 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001035/0.1571, allocations: 16 kB / 429.3 MB, free: 4.652 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006554/0.1577, allocations: 71.94 kB / 429.4 MB, free: 4.582 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002839/0.158, allocations: 71.88 kB / 429.5 MB, free: 4.512 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.158e-05/0.1581, allocations: 23.98 kB / 429.5 MB, free: 4.488 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001862/0.1583, allocations: 149.1 kB / 429.6 MB, free: 4.344 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.2e-07/0.1583, allocations: 3.938 kB / 429.6 MB, free: 4.34 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006106/0.159, allocations: 123.7 kB / 429.8 MB, free: 4.219 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,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.002492/0.1615, allocations: 1.27 MB / 431 MB, free: 2.902 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001777/0.1633, allocations: 0.6482 MB / 431.7 MB, free: 2.211 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.1633, allocations: 4 kB / 431.7 MB, free: 2.207 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009687/0.1643, allocations: 375.1 kB / 432 MB, free: 1.812 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003349/0.1646, allocations: 23.98 kB / 432.1 MB, free: 1.789 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005249/0.1699, allocations: 1.945 MB / 434 MB, free: 15.8 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005582/0.1705, allocations: 0.7966 MB / 434.8 MB, free: 14.98 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002432/0.1708, allocations: 30.97 kB / 434.8 MB, free: 14.95 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003487/0.1711, allocations: 111.4 kB / 434.9 MB, free: 14.84 MB / 378.7 MB Notification: Performance of SimCode: time 1.252e-06/0.1712, allocations: 0 / 434.9 MB, free: 14.84 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03807/0.2092, allocations: 6.563 MB / 441.5 MB, free: 8.348 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003144/0.2096, allocations: 153.2 kB / 441.7 MB, free: 8.113 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.939/3.149, allocations: 0 / 441.7 MB, free: 8.113 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Blocks.Logical_res.mat does not exist to compare? outputFormat=mat