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.0007577/0.0007576, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.0007819/0.0007819, allocations: 172.7 kB / 15.95 MB, free: 208 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.212/1.212, allocations: 205.4 MB / 222.1 MB, free: 5.895 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.2573/0.2573, allocations: 38.03 MB / 308.4 MB, free: 10.31 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.0005204/0.0005205, allocations: 16 kB / 376.4 MB, free: 15.18 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08612/0.08665, allocations: 57.52 MB / 434 MB, free: 5.559 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Logical): time 0.002665/0.08935, allocations: 2.266 MB / 436.2 MB, free: 3.277 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001891/0.09127, allocations: 1.248 MB / 437.5 MB, free: 2.02 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002248/0.09152, allocations: 11.94 kB / 437.5 MB, free: 2.008 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007354/0.09226, allocations: 291.2 kB / 437.8 MB, free: 1.723 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004307/0.0927, allocations: 191.2 kB / 438 MB, free: 1.535 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007534/0.09346, allocations: 319.5 kB / 438.3 MB, free: 1.223 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006001/0.09408, allocations: 0.5504 MB / 438.8 MB, free: 0.6719 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002859/0.09437, allocations: 174.8 kB / 439 MB, free: 0.4961 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003074/0.09469, allocations: 211.1 kB / 439.2 MB, free: 296 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002628/0.09496, allocations: 242.9 kB / 439.4 MB, free: 52 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.474e-05/0.09503, allocations: 16 kB / 439.4 MB, free: 36 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001674/0.0952, allocations: 67.91 kB / 439.5 MB, free: 15.97 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001274/0.09534, allocations: 119.6 kB / 439.6 MB, free: 15.85 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001057/0.09545, allocations: 117.4 kB / 439.7 MB, free: 15.73 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004249/0.09588, allocations: 455.2 kB / 440.2 MB, free: 15.29 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.466e-06/0.09589, allocations: 4 kB / 440.2 MB, free: 15.28 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.0959, allocations: 0 / 440.2 MB, free: 15.28 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.154e-05/0.09592, allocations: 0 / 440.2 MB, free: 15.28 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.001437/0.09736, allocations: 0.9055 MB / 441.1 MB, free: 14.32 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.098e-05/0.0974, allocations: 8.031 kB / 441.1 MB, free: 14.31 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001092/0.09751, allocations: 71.25 kB / 441.2 MB, free: 14.24 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004785/0.098, allocations: 401.8 kB / 441.6 MB, free: 13.8 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.176e-05/0.09805, allocations: 37 kB / 441.6 MB, free: 13.77 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.249e-05/0.09811, allocations: 44 kB / 441.6 MB, free: 13.73 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007798/0.0989, allocations: 463.7 kB / 442.1 MB, free: 13.25 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.194e-05/0.09892, allocations: 3.984 kB / 442.1 MB, free: 13.25 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.878e-05/0.09897, allocations: 31.91 kB / 442.1 MB, free: 13.22 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.698e-06/0.09898, allocations: 11.95 kB / 442.1 MB, free: 13.21 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006771/0.09967, allocations: 335.8 kB / 442.5 MB, free: 12.88 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001628/0.1013, allocations: 1.098 MB / 443.6 MB, free: 11.73 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001089/0.1024, allocations: 0.4938 MB / 444.1 MB, free: 11.22 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000378/0.1028, allocations: 194 kB / 444.3 MB, free: 11.03 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.67e-05/0.1028, allocations: 4.438 kB / 444.3 MB, free: 11.03 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000557/0.1034, allocations: 293.3 kB / 444.5 MB, free: 10.73 MB / 382.1 MB Notification: Performance of pre-optimization done (n=52): time 1.783e-06/0.1034, allocations: 0 / 444.5 MB, free: 10.73 MB / 382.1 MB Notification: Performance of matching and sorting (n=52): time 0.001312/0.1047, allocations: 0.6351 MB / 445.2 MB, free: 10.09 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.246e-05/0.1048, allocations: 140.9 kB / 445.3 MB, free: 9.918 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005011/0.1053, allocations: 0.5094 MB / 445.8 MB, free: 9.402 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.836e-05/0.1054, allocations: 45.7 kB / 445.9 MB, free: 9.352 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001559/0.1055, allocations: 253.3 kB / 446.1 MB, free: 9.098 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001038/0.1057, allocations: 126.4 kB / 446.2 MB, free: 8.973 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.405e-05/0.1057, allocations: 11.94 kB / 446.3 MB, free: 8.961 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001243/0.1058, allocations: 370.8 kB / 446.6 MB, free: 8.59 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003819/0.1062, allocations: 169 kB / 446.8 MB, free: 8.422 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004209/0.1066, allocations: 264.9 kB / 447 MB, free: 8.141 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003431/0.107, allocations: 150.1 kB / 447.2 MB, free: 7.996 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.608e-06/0.107, allocations: 0 / 447.2 MB, free: 7.996 MB / 382.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.0008929/0.1079, allocations: 498.2 kB / 447.7 MB, free: 7.5 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.425e-05/0.1079, allocations: 8 kB / 447.7 MB, free: 7.492 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.431e-06/0.1079, allocations: 0 / 447.7 MB, free: 7.492 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.226e-05/0.108, allocations: 4 kB / 447.7 MB, free: 7.488 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002786/0.1082, allocations: 67.95 kB / 447.8 MB, free: 7.422 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.177e-06/0.1083, allocations: 4 kB / 447.8 MB, free: 7.418 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003134/0.1086, allocations: 99.53 kB / 447.9 MB, free: 7.32 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.31e-05/0.1086, allocations: 16 kB / 447.9 MB, free: 7.305 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.0002238/0.1089, allocations: 216 kB / 448.1 MB, free: 7.082 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.333e-05/0.1089, allocations: 55.39 kB / 448.1 MB, free: 7.027 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001215/0.109, allocations: 65.17 kB / 448.2 MB, free: 6.965 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.833e-06/0.1091, allocations: 4.062 kB / 448.2 MB, free: 6.961 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.775e-06/0.1091, allocations: 11.94 kB / 448.2 MB, free: 6.949 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.081e-06/0.1091, allocations: 3.984 kB / 448.2 MB, free: 6.945 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001651/0.1107, allocations: 1.099 MB / 449.3 MB, free: 5.789 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.1108, allocations: 0 / 449.3 MB, free: 5.789 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001626/0.1109, allocations: 43.91 kB / 449.4 MB, free: 5.746 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.381e-06/0.1109, allocations: 4 kB / 449.4 MB, free: 5.742 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.068e-05/0.111, allocations: 11.98 kB / 449.4 MB, free: 5.73 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.769e-06/0.111, allocations: 0 / 449.4 MB, free: 5.73 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.111, allocations: 3.938 kB / 449.4 MB, free: 5.727 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009333/0.1119, allocations: 0.5776 MB / 450 MB, free: 5.133 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.449e-05/0.112, allocations: 128.5 kB / 450.1 MB, free: 4.988 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.02e-05/0.1121, allocations: 19.98 kB / 450.1 MB, free: 4.969 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003292/0.1125, allocations: 71.94 kB / 450.2 MB, free: 4.898 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001484/0.1126, allocations: 72.31 kB / 450.2 MB, free: 4.824 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.92e-05/0.1127, allocations: 16 kB / 450.3 MB, free: 4.809 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003448/0.113, allocations: 359.1 kB / 450.6 MB, free: 4.461 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.113, allocations: 0 / 450.6 MB, free: 4.461 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004011/0.1134, allocations: 135.6 kB / 450.7 MB, free: 4.328 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.0008845/0.1143, allocations: 468.9 kB / 451.2 MB, free: 3.887 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0009067/0.1152, allocations: 445.6 kB / 451.6 MB, free: 3.457 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.1153, allocations: 0 / 451.6 MB, free: 3.457 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004574/0.1157, allocations: 234.4 kB / 451.9 MB, free: 3.23 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005178/0.1162, allocations: 89.56 kB / 452 MB, free: 3.145 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001386/0.1176, allocations: 1.001 MB / 453 MB, free: 2.121 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003797/0.118, allocations: 0.8643 MB / 453.8 MB, free: 1.227 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002307/0.1183, allocations: 67.42 kB / 453.9 MB, free: 1.16 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001349/0.1184, allocations: 47.36 kB / 453.9 MB, free: 1.113 MB / 382.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1184, allocations: 4 kB / 453.9 MB, free: 1.109 MB / 382.1 MB Notification: Performance of Templates: time 0.1622/0.2806, allocations: 6.066 MB / 460 MB, free: 49.71 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: