Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Logical.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Logical,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_Logical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Logical,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_Logical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001856/0.001856, allocations: 104.5 kB / 17.64 MB, free: 5.543 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002159/0.002159, allocations: 210.4 kB / 18.58 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.452/1.452, allocations: 227.4 MB / 246.8 MB, free: 10.57 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2255/0.2255, allocations: 46.11 MB / 344.2 MB, free: 11.54 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002248/0.002248, allocations: 76.59 kB / 417.8 MB, free: 19.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1039/0.1062, allocations: 62.45 MB / 480.2 MB, free: 5.121 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Logical): time 0.004602/0.1108, allocations: 2.854 MB / 483.1 MB, free: 2.246 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002749/0.1136, allocations: 1.636 MB / 484.7 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001681/0.1138, allocations: 4 kB / 484.7 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008308/0.1146, allocations: 337.7 kB / 485 MB, free: 276 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006292/0.1153, allocations: 294.8 kB / 485.3 MB, free: 15.98 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007571/0.116, allocations: 369.3 kB / 485.7 MB, free: 15.62 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007292/0.1168, allocations: 0.6792 MB / 486.4 MB, free: 14.94 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003643/0.1171, allocations: 215 kB / 486.6 MB, free: 14.73 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003996/0.1175, allocations: 302.8 kB / 486.9 MB, free: 14.43 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003464/0.1179, allocations: 314.7 kB / 487.2 MB, free: 14.12 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.108e-05/0.118, allocations: 52 kB / 487.2 MB, free: 14.07 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002254/0.1182, allocations: 119.8 kB / 487.3 MB, free: 13.95 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001856/0.1184, allocations: 171.5 kB / 487.5 MB, free: 13.79 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002864/0.1187, allocations: 294.2 kB / 487.8 MB, free: 13.5 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007291/0.1195, allocations: 0.6582 MB / 488.5 MB, free: 12.84 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.1195, allocations: 0 / 488.5 MB, free: 12.84 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1195, allocations: 4 kB / 488.5 MB, free: 12.83 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.833e-06/0.1195, allocations: 0 / 488.5 MB, free: 12.83 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 103 * Number of variables: 103 Notification: Performance of Generate backend data structure: time 0.001941/0.1214, allocations: 1.032 MB / 489.5 MB, free: 11.74 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.443e-05/0.1215, allocations: 8.031 kB / 489.5 MB, free: 11.73 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001013/0.1216, allocations: 82.72 kB / 489.6 MB, free: 11.64 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002318/0.1218, allocations: 84.08 kB / 489.7 MB, free: 11.56 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005962/0.1224, allocations: 450.6 kB / 490.1 MB, free: 11.08 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.533e-05/0.1225, allocations: 37.36 kB / 490.1 MB, free: 11.05 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.583e-05/0.1226, allocations: 47.94 kB / 490.2 MB, free: 11 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009324/0.1235, allocations: 472.6 kB / 490.6 MB, free: 10.52 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.207e-05/0.1235, allocations: 0 / 490.6 MB, free: 10.52 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.593e-05/0.1236, allocations: 16 kB / 490.7 MB, free: 10.5 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.341e-05/0.1236, allocations: 12 kB / 490.7 MB, free: 10.49 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008456/0.1245, allocations: 335.7 kB / 491 MB, free: 10.16 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002042/0.1265, allocations: 1.192 MB / 492.2 MB, free: 8.91 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001369/0.1279, allocations: 0.4952 MB / 492.7 MB, free: 8.398 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000469/0.1284, allocations: 194.9 kB / 492.9 MB, free: 8.199 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.47e-05/0.1284, allocations: 12.36 kB / 492.9 MB, free: 8.188 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007022/0.1291, allocations: 333.9 kB / 493.2 MB, free: 7.844 MB / 366.1 MB Notification: Performance of pre-optimization done (n=55): time 3.867e-06/0.1292, allocations: 4 kB / 493.2 MB, free: 7.84 MB / 366.1 MB Notification: Performance of matching and sorting (n=55): time 0.001648/0.1308, allocations: 0.6388 MB / 493.9 MB, free: 7.195 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001254/0.1309, allocations: 170.6 kB / 494 MB, free: 6.992 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006746/0.1316, allocations: 0.5484 MB / 494.6 MB, free: 6.434 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.203e-05/0.1317, allocations: 49.7 kB / 494.6 MB, free: 6.379 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000215/0.1319, allocations: 257.4 kB / 494.9 MB, free: 6.125 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001294/0.1321, allocations: 130.3 kB / 495 MB, free: 5.996 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001965/0.1323, allocations: 126.3 kB / 495.1 MB, free: 5.867 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001932/0.1325, allocations: 366.8 kB / 495.5 MB, free: 5.5 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004681/0.1329, allocations: 173.2 kB / 495.6 MB, free: 5.332 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005455/0.1335, allocations: 271.6 kB / 495.9 MB, free: 5.035 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007729/0.1343, allocations: 322.9 kB / 496.2 MB, free: 4.707 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.1343, allocations: 0 / 496.2 MB, free: 4.707 MB / 366.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001096/0.1354, allocations: 0.506 MB / 496.7 MB, free: 4.195 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.491e-05/0.1354, allocations: 4 kB / 496.7 MB, free: 4.191 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.54e-06/0.1354, allocations: 0 / 496.7 MB, free: 4.191 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.572e-05/0.1354, allocations: 4 kB / 496.7 MB, free: 4.188 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003065/0.1358, allocations: 68.06 kB / 496.8 MB, free: 4.121 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.219e-05/0.1358, allocations: 7.984 kB / 496.8 MB, free: 4.113 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000402/0.1362, allocations: 91.53 kB / 496.9 MB, free: 4.023 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.919e-05/0.1362, allocations: 23.98 kB / 496.9 MB, free: 4 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 62 ($PRE.table2.combiTimeTable.nextTimeEvent,$whenCondition3,$PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition2,rSFlipFlop.pre.u,$PRE.rSFlipFlop.pre.u,rSFlipFlop.QI,rSFlipFlop.Q,timer.entryTime,$PRE.timer.entryTime,timer.u,triggeredTrapezoid.T,triggeredTrapezoid.rate,triggeredTrapezoid.endValue,onOffController.y,$PRE.onOffController.y,hysteresis.y,$PRE.hysteresis.y,logicalSwitch.y,zeroCrossing.u_pos,$PRE.zeroCrossing.u_pos,zeroCrossing.disable,$PRE.zeroCrossing.disable,zeroCrossing.enable,$PRE.zeroCrossing.enable,zeroCrossing.y,lessEqual.y,less.y,greaterEqual.y,greater.y,lessEqualThreshold.y,lessThreshold.y,greaterEqualThreshold.y,change1.y,change1.u,$PRE.change1.u,fallingEdge.not_u,$PRE.fallingEdge.not_u,fallingEdge.y,edge1.y,edge1.u,$PRE.edge1.u,pre1.y,pre1.u,$PRE.pre1.u,nand.y,nor.y,xor.y,and1.y,table2.combiTimeTable.nextTimeEventScaled,$PRE.table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent,table1.y,$whenCondition4,$whenCondition5,$whenCondition1,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (72): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002919/0.1365, allocations: 223 kB / 497.1 MB, free: 3.77 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001126/0.1367, allocations: 67.27 kB / 497.2 MB, free: 3.703 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000141/0.1368, allocations: 61.42 kB / 497.3 MB, free: 3.645 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.665e-06/0.1368, allocations: 8 kB / 497.3 MB, free: 3.637 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.179e-06/0.1368, allocations: 0 / 497.3 MB, free: 3.637 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.494e-06/0.1368, allocations: 3.984 kB / 497.3 MB, free: 3.633 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001984/0.1388, allocations: 1.119 MB / 498.4 MB, free: 2.453 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.1388, allocations: 0 / 498.4 MB, free: 2.453 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001703/0.139, allocations: 31.91 kB / 498.4 MB, free: 2.422 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.085e-06/0.139, allocations: 4 kB / 498.4 MB, free: 2.418 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.552e-05/0.1391, allocations: 15.98 kB / 498.5 MB, free: 2.402 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.302e-06/0.1391, allocations: 4 kB / 498.5 MB, free: 2.398 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.1391, allocations: 0 / 498.5 MB, free: 2.398 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001159/0.1403, allocations: 0.5929 MB / 499.1 MB, free: 1.785 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001083/0.1404, allocations: 128.5 kB / 499.2 MB, free: 1.641 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.579e-05/0.1405, allocations: 16 kB / 499.2 MB, free: 1.625 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004367/0.1409, allocations: 63.92 kB / 499.3 MB, free: 1.562 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00017/0.1411, allocations: 76.28 kB / 499.3 MB, free: 1.488 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.331e-05/0.1411, allocations: 19.98 kB / 499.3 MB, free: 1.469 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004671/0.1416, allocations: 383.1 kB / 499.7 MB, free: 1.098 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1416, allocations: 0 / 499.7 MB, free: 1.098 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004546/0.1421, allocations: 147.5 kB / 499.9 MB, free: 0.9531 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 46 ($whenCondition1,booleanPulse.y,booleanPulse.pulseStart,timer.u,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,table1.y,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEventScaled,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: 15 (table2.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEvent,pre1.u,zeroCrossing.u_pos,zeroCrossing.enable,zeroCrossing.disable,hysteresis.y,onOffController.y,rSFlipFlop.pre.u,table2.combiTimeTable.nextTimeEventScaled,triggeredTrapezoid.y,table1.combiTimeTable.nextTimeEventScaled,fallingEdge.not_u,edge1.u,change1.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 9 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002968/0.1451, allocations: 1.476 MB / 0.4896 GB, free: 15.59 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001213/0.1463, allocations: 478.3 kB / 0.49 GB, free: 15.12 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.809e-06/0.1463, allocations: 4 kB / 0.4901 GB, free: 15.12 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005724/0.1469, allocations: 250.5 kB / 0.4903 GB, free: 14.87 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006296/0.1475, allocations: 111.3 kB / 0.4904 GB, free: 14.77 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00693/0.1545, allocations: 4.747 MB / 0.495 GB, free: 9.898 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005347/0.155, allocations: 0.8761 MB / 0.4959 GB, free: 9 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002514/0.1553, allocations: 76.52 kB / 0.496 GB, free: 8.922 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003231/0.1556, allocations: 207.4 kB / 0.4962 GB, free: 8.719 MB / 382.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1556, allocations: 4 kB / 0.4962 GB, free: 8.715 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1998/0.3554, allocations: 12.64 MB / 0.5085 GB, free: 41.25 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.125/8.481, allocations: 2.609 kB / 0.5085 GB, free: 41.25 MB / 382.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Logical.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Logical.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Logical.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Logical.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Logical_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_Logical.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Logical.pipe 2>&1)