Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Blocks.Logical.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.Logical,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Blocks.Logical") translateModel(ModelicaTest.Blocks.Logical,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Blocks.Logical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009669/0.0009668, allocations: 99.86 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001076/0.001076, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.328/1.328, allocations: 205.4 MB / 222.1 MB, free: 5.66 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.3213/0.3213, allocations: 40 MB / 310.4 MB, free: 9.957 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ModelicaTest requested package Modelica of version 3.2.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005168/0.0005169, allocations: 16 kB / 378.8 MB, free: 12.64 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1116/0.1121, allocations: 57.96 MB / 436.8 MB, free: 2.582 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Logical): time 0.003009/0.1152, allocations: 2.251 MB / 439 MB, free: 320 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002039/0.1173, allocations: 1.221 MB / 440.2 MB, free: 15.09 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002591/0.1176, allocations: 4 kB / 440.2 MB, free: 15.08 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007774/0.1183, allocations: 283.2 kB / 440.5 MB, free: 14.8 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004206/0.1188, allocations: 191.5 kB / 440.7 MB, free: 14.62 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007686/0.1196, allocations: 315.3 kB / 441 MB, free: 14.31 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004507/0.12, allocations: 376.2 kB / 441.4 MB, free: 13.94 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002979/0.1203, allocations: 174.7 kB / 441.5 MB, free: 13.77 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002734/0.1206, allocations: 215.1 kB / 441.8 MB, free: 13.55 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002429/0.1209, allocations: 230.9 kB / 442 MB, free: 13.33 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.315e-05/0.1209, allocations: 16 kB / 442 MB, free: 13.31 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001595/0.1211, allocations: 59.95 kB / 442.1 MB, free: 13.25 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001308/0.1212, allocations: 115.6 kB / 442.2 MB, free: 13.14 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001056/0.1213, allocations: 113.4 kB / 442.3 MB, free: 13.02 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004309/0.1218, allocations: 463.1 kB / 442.7 MB, free: 12.57 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.455e-06/0.1218, allocations: 0 / 442.7 MB, free: 12.57 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.1218, allocations: 0 / 442.7 MB, free: 12.57 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.915e-06/0.1218, allocations: 0 / 442.7 MB, free: 12.57 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.001575/0.1234, allocations: 0.9094 MB / 443.6 MB, free: 11.6 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.568e-05/0.1234, allocations: 8.031 kB / 443.7 MB, free: 11.59 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001142/0.1235, allocations: 67.25 kB / 443.7 MB, free: 11.53 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000555/0.1241, allocations: 409.9 kB / 444.1 MB, free: 11.09 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.515e-05/0.1242, allocations: 36.98 kB / 444.2 MB, free: 11.05 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.885e-05/0.1242, allocations: 44 kB / 444.2 MB, free: 11.01 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008148/0.1251, allocations: 463.7 kB / 444.6 MB, free: 10.53 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.073e-05/0.1251, allocations: 0 / 444.6 MB, free: 10.53 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.264e-05/0.1251, allocations: 19.95 kB / 444.7 MB, free: 10.51 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.15e-05/0.1251, allocations: 12 kB / 444.7 MB, free: 10.5 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007382/0.1259, allocations: 335.8 kB / 445 MB, free: 10.18 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001735/0.1276, allocations: 1.11 MB / 446.1 MB, free: 9.012 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001125/0.1288, allocations: 497.7 kB / 446.6 MB, free: 8.52 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.882e-05/0.1288, allocations: 8.438 kB / 446.6 MB, free: 8.512 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005953/0.1294, allocations: 301.1 kB / 446.9 MB, free: 8.203 MB / 382.1 MB Notification: Performance of pre-optimization done (n=52): time 2.254e-06/0.1294, allocations: 0 / 446.9 MB, free: 8.203 MB / 382.1 MB Notification: Performance of matching and sorting (n=52): time 0.001381/0.1308, allocations: 0.6234 MB / 447.5 MB, free: 7.578 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.753e-05/0.1309, allocations: 144.9 kB / 447.7 MB, free: 7.402 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000543/0.1315, allocations: 0.5094 MB / 448.2 MB, free: 6.887 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.602e-05/0.1315, allocations: 45.7 kB / 448.2 MB, free: 6.836 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001782/0.1317, allocations: 257.3 kB / 448.5 MB, free: 6.578 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001079/0.1318, allocations: 122.4 kB / 448.6 MB, free: 6.457 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.705e-05/0.1319, allocations: 12 kB / 448.6 MB, free: 6.445 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001665/0.132, allocations: 370.7 kB / 449 MB, free: 6.074 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003944/0.1325, allocations: 173 kB / 449.1 MB, free: 5.902 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004685/0.1329, allocations: 260.9 kB / 449.4 MB, free: 5.625 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000397/0.1333, allocations: 154.1 kB / 449.5 MB, free: 5.477 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.57e-06/0.1334, allocations: 3.953 kB / 449.5 MB, free: 5.473 MB / 382.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001053/0.1344, allocations: 486.4 kB / 450 MB, free: 4.988 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.124e-05/0.1344, allocations: 4 kB / 450 MB, free: 4.984 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.053e-05/0.1345, allocations: 3.984 kB / 450 MB, free: 4.98 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.186e-05/0.1345, allocations: 4 kB / 450 MB, free: 4.977 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002812/0.1348, allocations: 67.84 kB / 450.1 MB, free: 4.91 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.2e-05/0.1348, allocations: 3.984 kB / 450.1 MB, free: 4.906 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003847/0.1352, allocations: 103.6 kB / 450.2 MB, free: 4.805 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.244e-05/0.1353, allocations: 20 kB / 450.2 MB, free: 4.785 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 58 ($whenCondition2,$PRE.table2.combiTimeTable.nextTimeEvent,$whenCondition1,$PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition4,$whenCondition3,table1.y,table1.combiTimeTable.nextTimeEvent,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent,$PRE.table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEventScaled,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,timer.u,$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 (68): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 0 * 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.000307/0.1356, allocations: 214.9 kB / 450.4 MB, free: 4.566 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.213e-05/0.1357, allocations: 59.28 kB / 450.5 MB, free: 4.508 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001302/0.1358, allocations: 61.19 kB / 450.6 MB, free: 4.449 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.083e-06/0.1358, allocations: 4 kB / 450.6 MB, free: 4.445 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.829e-06/0.1358, allocations: 0 / 450.6 MB, free: 4.445 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.753e-06/0.1358, allocations: 7.984 kB / 450.6 MB, free: 4.438 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001865/0.1377, allocations: 1.095 MB / 451.7 MB, free: 3.285 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.009e-06/0.1377, allocations: 4 kB / 451.7 MB, free: 3.281 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001639/0.1379, allocations: 43.91 kB / 451.7 MB, free: 3.238 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.751e-06/0.1379, allocations: 0 / 451.7 MB, free: 3.238 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.131e-05/0.138, allocations: 15.98 kB / 451.7 MB, free: 3.223 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.891e-06/0.138, allocations: 4 kB / 451.7 MB, free: 3.219 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.138, allocations: 0 / 451.7 MB, free: 3.219 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001038/0.139, allocations: 0.5774 MB / 452.3 MB, free: 2.625 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001321/0.1392, allocations: 132.5 kB / 452.4 MB, free: 2.477 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.157e-05/0.1393, allocations: 16 kB / 452.4 MB, free: 2.461 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003789/0.1397, allocations: 75.92 kB / 452.5 MB, free: 2.387 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001695/0.1398, allocations: 64.33 kB / 452.6 MB, free: 2.324 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.715e-05/0.1399, allocations: 23.98 kB / 452.6 MB, free: 2.301 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004367/0.1403, allocations: 355.1 kB / 453 MB, free: 1.953 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.1403, allocations: 0 / 453 MB, free: 1.953 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005345/0.1409, allocations: 131.7 kB / 453.1 MB, free: 1.824 MB / 382.1 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 (timer.u,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,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 (52): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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.001107/0.142, allocations: 465.4 kB / 453.5 MB, free: 1.398 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0009752/0.143, allocations: 445.6 kB / 454 MB, free: 0.9648 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.448e-06/0.143, allocations: 8.125 kB / 454 MB, free: 0.957 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004794/0.1435, allocations: 230.4 kB / 454.2 MB, free: 0.7344 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005181/0.144, allocations: 85.39 kB / 454.3 MB, free: 0.6523 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1833/0.3273, allocations: 0.9985 MB / 455.3 MB, free: 48.5 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002805/0.3277, allocations: 0.8769 MB / 456.2 MB, free: 47.8 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000313/0.328, allocations: 65.64 kB / 456.2 MB, free: 47.8 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000151/0.3282, allocations: 50.97 kB / 456.3 MB, free: 47.8 MB / 382.1 MB Notification: Performance of SimCode: time 1.232e-06/0.3282, allocations: 0 / 456.3 MB, free: 47.8 MB / 382.1 MB Notification: Performance of Templates: time 0.00979/0.338, allocations: 6.06 MB / 462.3 MB, free: 47.49 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Blocks.Logical.makefile Environment - environmentSimulation: (rm -f ModelicaTest_3.2.2_ModelicaTest.Blocks.Logical.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Blocks.Logical.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Blocks.Logical.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Blocks.Logical.sim & ./ModelicaTest_3.2.2_ModelicaTest.Blocks.Logical -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Blocks.Logical.pipe 2>&1) Environment - environmentSimulation: