Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_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.1+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+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.1_ModelicaTest.Blocks.Logical") translateModel(ModelicaTest.Blocks.Logical,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Blocks.Logical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007493/0.0007494, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.005025/0.005025, allocations: 172.3 kB / 16.27 MB, free: 6.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.574/1.574, allocations: 205.4 MB / 222.4 MB, free: 5.559 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.3127/0.3127, allocations: 38.04 MB / 308.8 MB, free: 10.34 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.1. 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.0006027/0.0006027, allocations: 16 kB / 377 MB, free: 14.83 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1241/0.1247, allocations: 57.52 MB / 434.6 MB, free: 5.211 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Logical): time 0.003163/0.1279, allocations: 2.366 MB / 436.9 MB, free: 2.828 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002155/0.1301, allocations: 1.287 MB / 438.2 MB, free: 1.531 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001936/0.1303, allocations: 7.938 kB / 438.2 MB, free: 1.523 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008047/0.1311, allocations: 303.2 kB / 438.5 MB, free: 1.227 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004227/0.1315, allocations: 211.2 kB / 438.7 MB, free: 1.02 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007779/0.1323, allocations: 335.5 kB / 439.1 MB, free: 0.6914 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005468/0.1329, allocations: 0.6088 MB / 439.7 MB, free: 84 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003501/0.1332, allocations: 207.5 kB / 439.9 MB, free: 15.88 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002611/0.1335, allocations: 215 kB / 440.1 MB, free: 15.67 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002546/0.1338, allocations: 242.8 kB / 440.3 MB, free: 15.43 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.638e-05/0.1338, allocations: 24 kB / 440.3 MB, free: 15.41 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001662/0.134, allocations: 75.89 kB / 440.4 MB, free: 15.33 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001321/0.1341, allocations: 123.5 kB / 440.5 MB, free: 15.21 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001936/0.1344, allocations: 256 kB / 440.8 MB, free: 14.95 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004927/0.1349, allocations: 0.5759 MB / 441.4 MB, free: 14.38 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.1349, allocations: 0 / 441.4 MB, free: 14.38 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.386e-06/0.1349, allocations: 4 kB / 441.4 MB, free: 14.37 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.542e-06/0.1349, allocations: 0 / 441.4 MB, free: 14.37 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.001545/0.1364, allocations: 0.9057 MB / 442.3 MB, free: 13.4 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.756e-05/0.1365, allocations: 12.03 kB / 442.3 MB, free: 13.39 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001096/0.1366, allocations: 64.19 kB / 442.3 MB, free: 13.33 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004771/0.1371, allocations: 422.8 kB / 442.8 MB, free: 12.88 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.995e-05/0.1372, allocations: 33.36 kB / 442.8 MB, free: 12.84 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.242e-05/0.1372, allocations: 51.94 kB / 442.8 MB, free: 12.79 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008053/0.138, allocations: 467.7 kB / 443.3 MB, free: 12.32 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.256e-05/0.1381, allocations: 0 / 443.3 MB, free: 12.32 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.376e-05/0.1381, allocations: 19.98 kB / 443.3 MB, free: 12.3 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.04e-05/0.1381, allocations: 12 kB / 443.3 MB, free: 12.29 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007464/0.1389, allocations: 335.8 kB / 443.6 MB, free: 11.96 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00177/0.1407, allocations: 1.102 MB / 444.8 MB, free: 10.8 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001185/0.1419, allocations: 0.4933 MB / 445.2 MB, free: 10.3 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003992/0.1423, allocations: 194.1 kB / 445.4 MB, free: 10.11 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.635e-05/0.1423, allocations: 8.375 kB / 445.4 MB, free: 10.1 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005718/0.1429, allocations: 309.1 kB / 445.7 MB, free: 9.781 MB / 382.1 MB Notification: Performance of pre-optimization done (n=52): time 1.903e-06/0.1429, allocations: 0 / 445.7 MB, free: 9.781 MB / 382.1 MB Notification: Performance of matching and sorting (n=52): time 0.001387/0.1443, allocations: 0.6313 MB / 446.4 MB, free: 9.148 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.4e-05/0.1444, allocations: 137 kB / 446.5 MB, free: 8.98 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005715/0.145, allocations: 0.5132 MB / 447 MB, free: 8.457 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.058e-05/0.145, allocations: 49.7 kB / 447.1 MB, free: 8.402 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001747/0.1452, allocations: 249.4 kB / 447.3 MB, free: 8.152 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001081/0.1453, allocations: 122.4 kB / 447.4 MB, free: 8.031 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.671e-05/0.1454, allocations: 77.67 kB / 447.5 MB, free: 7.949 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001514/0.1456, allocations: 366.7 kB / 447.9 MB, free: 7.582 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003977/0.146, allocations: 177 kB / 448 MB, free: 7.41 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004462/0.1464, allocations: 264.9 kB / 448.3 MB, free: 7.125 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006666/0.1471, allocations: 321.2 kB / 448.6 MB, free: 6.809 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.1471, allocations: 0 / 448.6 MB, free: 6.809 MB / 382.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.0009334/0.1481, allocations: 0.4905 MB / 449.1 MB, free: 6.309 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.873e-05/0.1481, allocations: 4 kB / 449.1 MB, free: 6.305 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.223e-06/0.1481, allocations: 0 / 449.1 MB, free: 6.305 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.846e-05/0.1481, allocations: 4.062 kB / 449.1 MB, free: 6.301 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000285/0.1484, allocations: 75.95 kB / 449.2 MB, free: 6.227 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.608e-06/0.1484, allocations: 7.938 kB / 449.2 MB, free: 6.219 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003751/0.1488, allocations: 99.53 kB / 449.3 MB, free: 6.121 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.048e-05/0.1489, allocations: 16 kB / 449.3 MB, free: 6.105 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 ($PRE.table2.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition1,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,$whenCondition3,$whenCondition4) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002372/0.1491, allocations: 214.9 kB / 449.5 MB, free: 5.883 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.478e-05/0.1492, allocations: 51.38 kB / 449.6 MB, free: 5.832 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001235/0.1493, allocations: 65.17 kB / 449.6 MB, free: 5.77 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.274e-06/0.1493, allocations: 8 kB / 449.6 MB, free: 5.762 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.1493, allocations: 0 / 449.6 MB, free: 5.762 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.702e-06/0.1493, allocations: 3.984 kB / 449.6 MB, free: 5.758 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001698/0.151, allocations: 1.107 MB / 450.7 MB, free: 4.594 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.078e-06/0.1511, allocations: 0 / 450.7 MB, free: 4.594 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001594/0.1512, allocations: 47.84 kB / 450.8 MB, free: 4.547 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.228e-06/0.1512, allocations: 4 kB / 450.8 MB, free: 4.543 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.158e-05/0.1513, allocations: 15.98 kB / 450.8 MB, free: 4.527 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.1513, allocations: 0 / 450.8 MB, free: 4.527 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.1513, allocations: 0 / 450.8 MB, free: 4.527 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009361/0.1522, allocations: 0.5775 MB / 451.4 MB, free: 3.93 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.701e-05/0.1523, allocations: 136.3 kB / 451.5 MB, free: 3.777 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.672e-05/0.1524, allocations: 12 kB / 451.5 MB, free: 3.766 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003746/0.1528, allocations: 79.92 kB / 451.6 MB, free: 3.688 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001437/0.1529, allocations: 68.34 kB / 451.7 MB, free: 3.621 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.077e-05/0.153, allocations: 19.98 kB / 451.7 MB, free: 3.602 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003364/0.1533, allocations: 351.1 kB / 452 MB, free: 3.262 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1533, allocations: 4 kB / 452 MB, free: 3.258 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003924/0.1537, allocations: 119.7 kB / 452.2 MB, free: 3.141 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 (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.0009501/0.1547, allocations: 469.9 kB / 452.6 MB, free: 2.707 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000905/0.1556, allocations: 457.5 kB / 453.1 MB, free: 2.266 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.1556, allocations: 0 / 453.1 MB, free: 2.266 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004532/0.1561, allocations: 234.4 kB / 453.3 MB, free: 2.035 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005808/0.1567, allocations: 97.55 kB / 453.4 MB, free: 1.938 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001394/0.1581, allocations: 1.063 MB / 454.5 MB, free: 0.8516 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2069/0.365, allocations: 0.8678 MB / 455.3 MB, free: 49.88 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004165/0.3654, allocations: 66.31 kB / 455.4 MB, free: 49.88 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001548/0.3656, allocations: 45.33 kB / 455.4 MB, free: 49.88 MB / 382.1 MB Notification: Performance of SimCode: time 6.31e-07/0.3656, allocations: 0 / 455.4 MB, free: 49.88 MB / 382.1 MB Notification: Performance of Templates: time 0.01011/0.3757, allocations: 6.277 MB / 461.7 MB, free: 49.59 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.Blocks.Logical.makefile Environment - environmentSimulation: (rm -f ModelicaTest_3.2.1_ModelicaTest.Blocks.Logical.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.Blocks.Logical.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.Blocks.Logical.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.Blocks.Logical.sim & ./ModelicaTest_3.2.1_ModelicaTest.Blocks.Logical -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.Blocks.Logical.pipe 2>&1) Environment - environmentSimulation: