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.0009785/0.0009787, allocations: 97.41 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.006134/0.006134, allocations: 169.8 kB / 16.27 MB, free: 6.652 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.537/1.537, allocations: 205.4 MB / 222.5 MB, free: 5.559 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.3384/0.3384, allocations: 40 MB / 310.7 MB, free: 9.566 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.0005858/0.0005857, allocations: 12 kB / 379.4 MB, free: 11.98 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1104/0.111, allocations: 57.96 MB / 437.4 MB, free: 1.914 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Logical): time 0.004102/0.1152, allocations: 2.375 MB / 439.8 MB, free: 15.52 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002649/0.1179, allocations: 1.283 MB / 441.1 MB, free: 14.23 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006055/0.1185, allocations: 4 kB / 441.1 MB, free: 14.23 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001192/0.1198, allocations: 307.1 kB / 441.4 MB, free: 13.93 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008047/0.1206, allocations: 207.3 kB / 441.6 MB, free: 13.72 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001134/0.1217, allocations: 343.5 kB / 441.9 MB, free: 13.39 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008592/0.1226, allocations: 0.6089 MB / 442.5 MB, free: 12.78 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004257/0.123, allocations: 211 kB / 442.7 MB, free: 12.57 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004417/0.1235, allocations: 218.9 kB / 442.9 MB, free: 12.36 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004033/0.1239, allocations: 250.8 kB / 443.2 MB, free: 12.11 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.799e-05/0.124, allocations: 16 kB / 443.2 MB, free: 12.09 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002282/0.1242, allocations: 71.95 kB / 443.3 MB, free: 12.02 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001626/0.1244, allocations: 127.4 kB / 443.4 MB, free: 11.9 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000247/0.1246, allocations: 248.2 kB / 443.6 MB, free: 11.65 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006819/0.1253, allocations: 0.5839 MB / 444.2 MB, free: 11.06 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.86e-06/0.1254, allocations: 3.938 kB / 444.2 MB, free: 11.06 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.565e-06/0.1254, allocations: 0 / 444.2 MB, free: 11.06 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.106e-05/0.1254, allocations: 0 / 444.2 MB, free: 11.06 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.002018/0.1274, allocations: 0.9018 MB / 445.1 MB, free: 10.09 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.637e-05/0.1275, allocations: 8.031 kB / 445.1 MB, free: 10.09 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001733/0.1276, allocations: 72.19 kB / 445.2 MB, free: 10.02 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006361/0.1283, allocations: 426.5 kB / 445.6 MB, free: 9.559 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.269e-05/0.1284, allocations: 33 kB / 445.6 MB, free: 9.527 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.973e-05/0.1284, allocations: 47.98 kB / 445.7 MB, free: 9.48 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009382/0.1294, allocations: 463.8 kB / 446.1 MB, free: 9.008 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.173e-05/0.1294, allocations: 0 / 446.1 MB, free: 9.008 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.536e-05/0.1295, allocations: 16 kB / 446.2 MB, free: 8.992 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.266e-05/0.1295, allocations: 11.98 kB / 446.2 MB, free: 8.98 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008314/0.1303, allocations: 343.7 kB / 446.5 MB, free: 8.645 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002049/0.1324, allocations: 1.102 MB / 447.6 MB, free: 7.488 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001249/0.1336, allocations: 0.5049 MB / 448.1 MB, free: 6.977 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00044/0.1341, allocations: 190.1 kB / 448.3 MB, free: 6.789 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.936e-05/0.1341, allocations: 8.375 kB / 448.3 MB, free: 6.781 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000613/0.1348, allocations: 301.3 kB / 448.6 MB, free: 6.473 MB / 382.1 MB Notification: Performance of pre-optimization done (n=52): time 2.756e-06/0.1348, allocations: 0 / 448.6 MB, free: 6.473 MB / 382.1 MB Notification: Performance of matching and sorting (n=52): time 0.001507/0.1363, allocations: 0.6351 MB / 449.2 MB, free: 5.832 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.068e-05/0.1364, allocations: 137 kB / 449.4 MB, free: 5.668 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006061/0.137, allocations: 0.5094 MB / 449.9 MB, free: 5.148 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.246e-05/0.1371, allocations: 45.7 kB / 449.9 MB, free: 5.098 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001923/0.1373, allocations: 249.4 kB / 450.2 MB, free: 4.848 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001282/0.1374, allocations: 130.3 kB / 450.3 MB, free: 4.719 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001029/0.1375, allocations: 77.67 kB / 450.4 MB, free: 4.637 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.00015/0.1377, allocations: 358.8 kB / 450.7 MB, free: 4.277 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004471/0.1381, allocations: 177 kB / 450.9 MB, free: 4.105 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000486/0.1386, allocations: 264.9 kB / 451.1 MB, free: 3.82 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007096/0.1394, allocations: 321.2 kB / 451.5 MB, free: 3.504 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.087e-06/0.1394, allocations: 7.938 kB / 451.5 MB, free: 3.496 MB / 382.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.000998/0.1404, allocations: 498.4 kB / 452 MB, free: 3 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.807e-05/0.1404, allocations: 4 kB / 452 MB, free: 2.996 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.202e-06/0.1404, allocations: 0 / 452 MB, free: 2.996 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.763e-05/0.1404, allocations: 4 kB / 452 MB, free: 2.992 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002777/0.1407, allocations: 71.83 kB / 452 MB, free: 2.922 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.676e-06/0.1407, allocations: 4 kB / 452 MB, free: 2.918 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003883/0.1411, allocations: 95.62 kB / 452.1 MB, free: 2.824 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.178e-05/0.1412, allocations: 16 kB / 452.1 MB, free: 2.809 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.0002607/0.1414, allocations: 226.9 kB / 452.4 MB, free: 2.578 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.345e-05/0.1415, allocations: 51.34 kB / 452.4 MB, free: 2.527 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001319/0.1417, allocations: 65.11 kB / 452.5 MB, free: 2.465 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.162e-06/0.1417, allocations: 12 kB / 452.5 MB, free: 2.453 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.204e-06/0.1417, allocations: 0 / 452.5 MB, free: 2.453 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.173e-06/0.1417, allocations: 3.984 kB / 452.5 MB, free: 2.449 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001853/0.1436, allocations: 1.107 MB / 453.6 MB, free: 1.281 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.406e-06/0.1436, allocations: 0 / 453.6 MB, free: 1.281 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001651/0.1438, allocations: 43.91 kB / 453.6 MB, free: 1.238 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.606e-06/0.1438, allocations: 0 / 453.6 MB, free: 1.238 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.179e-05/0.1438, allocations: 15.98 kB / 453.7 MB, free: 1.223 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.431e-06/0.1438, allocations: 4 kB / 453.7 MB, free: 1.219 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.1438, allocations: 3.938 kB / 453.7 MB, free: 1.215 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001006/0.1448, allocations: 0.5813 MB / 454.3 MB, free: 0.6172 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001056/0.1449, allocations: 128.5 kB / 454.4 MB, free: 484 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.542e-05/0.145, allocations: 12 kB / 454.4 MB, free: 472 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003687/0.1454, allocations: 71.94 kB / 454.5 MB, free: 400 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001655/0.1456, allocations: 72.34 kB / 454.5 MB, free: 328 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.038e-05/0.1456, allocations: 19.98 kB / 454.6 MB, free: 308 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.199/0.3447, allocations: 357.3 kB / 454.9 MB, free: 48.76 MB / 382.1 MB Notification: Performance of sort global known variables: time 7.32e-07/0.3447, allocations: 0 / 454.9 MB, free: 48.76 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007187/0.3455, allocations: 130.9 kB / 455 MB, free: 48.76 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.001081/0.3466, allocations: 441.8 kB / 455.5 MB, free: 48.57 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001118/0.3477, allocations: 456.1 kB / 455.9 MB, free: 48.57 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.3477, allocations: 0 / 455.9 MB, free: 48.57 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004831/0.3482, allocations: 239.5 kB / 456.1 MB, free: 48.57 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006527/0.3489, allocations: 87.81 kB / 456.2 MB, free: 48.57 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001446/0.3503, allocations: 1.072 MB / 457.3 MB, free: 48.05 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002862/0.3506, allocations: 0.8599 MB / 458.2 MB, free: 47.35 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002527/0.3509, allocations: 78.27 kB / 458.2 MB, free: 47.34 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001378/0.351, allocations: 43.38 kB / 458.3 MB, free: 47.34 MB / 382.1 MB Notification: Performance of SimCode: time 5.31e-07/0.351, allocations: 2.812 kB / 458.3 MB, free: 47.34 MB / 382.1 MB Notification: Performance of Templates: time 0.01079/0.3618, allocations: 6.289 MB / 464.6 MB, free: 46.88 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: