Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Blocks.Examples.Interaction1.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) 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(Modelica.Blocks.Examples.Interaction1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Blocks.Examples.Interaction1") translateModel(Modelica.Blocks.Examples.Interaction1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Blocks.Examples.Interaction1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007594/0.007594, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.001341/0.001341, allocations: 193.2 kB / 16.67 MB, free: 5.938 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.547/1.547, allocations: 205.1 MB / 222.6 MB, free: 4.523 MB / 174.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: Performance of FrontEnd - loaded program: time 0.001322/0.001322, allocations: 50.83 kB / 326.5 MB, free: 14.43 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1301/0.1314, allocations: 46.63 MB / 373.2 MB, free: 1.332 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Interaction1): time 0.004935/0.1364, allocations: 2.502 MB / 375.7 MB, free: 14.81 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00416/0.1406, allocations: 1.7 MB / 377.4 MB, free: 13.1 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005604/0.1412, allocations: 11.94 kB / 377.4 MB, free: 13.09 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001434/0.1427, allocations: 0.5415 MB / 377.9 MB, free: 12.54 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.001093/0.1438, allocations: 418.5 kB / 378.3 MB, free: 12.13 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001922/0.1457, allocations: 0.6237 MB / 378.9 MB, free: 11.51 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001376/0.1471, allocations: 0.795 MB / 379.7 MB, free: 10.71 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003372/0.1475, allocations: 101.9 kB / 379.8 MB, free: 10.61 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007151/0.1482, allocations: 330.7 kB / 380.2 MB, free: 10.28 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008452/0.149, allocations: 350.8 kB / 380.5 MB, free: 9.938 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000202/0.1493, allocations: 44 kB / 380.6 MB, free: 9.895 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005829/0.1499, allocations: 235.6 kB / 380.8 MB, free: 9.664 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003134/0.1502, allocations: 203.3 kB / 381 MB, free: 9.465 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004871/0.1507, allocations: 298.2 kB / 381.3 MB, free: 9.172 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00135/0.152, allocations: 0.8559 MB / 382.1 MB, free: 8.312 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.1521, allocations: 0 / 382.1 MB, free: 8.312 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.1521, allocations: 4 kB / 382.1 MB, free: 8.309 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.518e-05/0.1521, allocations: 0 / 382.1 MB, free: 8.309 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.002467/0.1546, allocations: 1.222 MB / 383.4 MB, free: 6.992 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.499e-05/0.1546, allocations: 8.031 kB / 383.4 MB, free: 6.984 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002682/0.1549, allocations: 88.36 kB / 383.4 MB, free: 6.898 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001131/0.1561, allocations: 0.5905 MB / 384 MB, free: 6.27 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.76e-05/0.1561, allocations: 20.38 kB / 384.1 MB, free: 6.25 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.004e-05/0.1562, allocations: 32.11 kB / 384.1 MB, free: 6.219 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006954/0.1569, allocations: 346.8 kB / 384.4 MB, free: 5.836 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.009e-05/0.1569, allocations: 3.938 kB / 384.4 MB, free: 5.832 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.997e-05/0.1569, allocations: 11.98 kB / 384.4 MB, free: 5.82 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.854e-05/0.157, allocations: 11.98 kB / 384.5 MB, free: 5.809 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004086/0.1574, allocations: 172.9 kB / 384.6 MB, free: 5.641 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002062/0.1595, allocations: 1.337 MB / 386 MB, free: 4.23 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007616/0.1602, allocations: 366.7 kB / 386.3 MB, free: 3.836 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003252/0.1606, allocations: 167.4 kB / 386.5 MB, free: 3.66 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.209e-05/0.1606, allocations: 12.05 kB / 386.5 MB, free: 3.648 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006776/0.1613, allocations: 459.2 kB / 386.9 MB, free: 3.145 MB / 318.1 MB Notification: Performance of pre-optimization done (n=42): time 3.487e-06/0.1613, allocations: 0 / 386.9 MB, free: 3.145 MB / 318.1 MB Notification: Performance of matching and sorting (n=42): time 0.001567/0.1629, allocations: 0.7401 MB / 387.7 MB, free: 2.379 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002779/0.1632, allocations: 456.9 kB / 388.1 MB, free: 1.828 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001311/0.1645, allocations: 0.9418 MB / 389.1 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.927e-05/0.1646, allocations: 45.69 kB / 389.1 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002962/0.1649, allocations: 304.9 kB / 389.4 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001231/0.165, allocations: 115.2 kB / 389.5 MB, free: 424 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001704/0.1652, allocations: 90.11 kB / 389.6 MB, free: 328 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001455/0.1654, allocations: 330 kB / 389.9 MB, free: 15.99 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003233/0.1657, allocations: 148.9 kB / 390.1 MB, free: 15.84 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00049/0.1662, allocations: 354.4 kB / 390.4 MB, free: 15.42 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001228/0.1674, allocations: 0.8034 MB / 391.2 MB, free: 14.51 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.152e-06/0.1674, allocations: 0 / 391.2 MB, free: 14.51 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001285/0.1687, allocations: 0.6657 MB / 391.9 MB, free: 13.82 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.254e-05/0.1688, allocations: 105.3 kB / 392 MB, free: 13.7 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.366e-05/0.1689, allocations: 8 kB / 392 MB, free: 13.69 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.82e-05/0.1689, allocations: 4 kB / 392 MB, free: 13.68 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002628/0.1692, allocations: 63.84 kB / 392.1 MB, free: 13.62 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.692e-05/0.1692, allocations: 8 kB / 392.1 MB, free: 13.61 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003998/0.1696, allocations: 51.72 kB / 392.1 MB, free: 13.56 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.53e-05/0.1697, allocations: 20 kB / 392.1 MB, free: 13.54 MB / 334.1 MB Warning: Assuming fixed start value for the following 2 variables: stop.table.y:DISCRETE(flow=false fixed = true protected = true ) "Connector of Boolean output signal" type: Boolean start.table.y:DISCRETE(flow=false fixed = true protected = true ) "Connector of Boolean output signal" type: Boolean Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 51 ($PRE.start.pre_reset[1],$PRE.stop.pre_reset[1],$PRE.integerTable.combiTimeTable.nextTimeEvent,$whenCondition9,integerTable.combiTimeTable.nextTimeEventScaled,$PRE.integerTable.combiTimeTable.nextTimeEventScaled,integerTable.combiTimeTable.nextTimeEvent,integerTable.y,$PRE.booleanTable.combiTimeTable.nextTimeEvent,$whenCondition8,booleanTable.combiTimeTable.nextTimeEventScaled,$PRE.booleanTable.combiTimeTable.nextTimeEventScaled,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.y,$PRE.stop.table.combiTimeTable.nextTimeEvent,$whenCondition3,$PRE.start.table.combiTimeTable.nextTimeEvent,$whenCondition2,stop.on,$PRE.stop.on,start.reset[1],stop.reset[1],start.on,$PRE.start.on,$PRE.stop.table.y,$PRE.stop.reset[1],stop.pre_reset[1],stop.table.combiTimeTable.nextTimeEventScaled,$PRE.stop.table.combiTimeTable.nextTimeEventScaled,stop.table.combiTimeTable.nextTimeEvent,stop.table.y,$whenCondition5,$whenCondition4,$PRE.start.table.y,$PRE.start.reset[1],start.pre_reset[1],start.table.combiTimeTable.nextTimeEventScaled,$PRE.start.table.combiTimeTable.nextTimeEventScaled,start.table.combiTimeTable.nextTimeEvent,start.table.y,$whenCondition7,$whenCondition6,timeTable.nextEventScaled,timeTable.nextEvent,$PRE.timeTable.nextEvent,timeTable.last,timeTable.b,timeTable.a,$whenCondition1,booleanValue.active,integerValue.number) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (53): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 3 * 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.0005725/0.1703, allocations: 415.2 kB / 392.6 MB, free: 13.11 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001694/0.1704, allocations: 87.42 kB / 392.6 MB, free: 13.03 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001339/0.1706, allocations: 74.22 kB / 392.7 MB, free: 12.95 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.935e-06/0.1706, allocations: 7.984 kB / 392.7 MB, free: 12.95 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.818e-06/0.1706, allocations: 0 / 392.7 MB, free: 12.95 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.392e-06/0.1706, allocations: 0 / 392.7 MB, free: 12.95 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00128/0.1719, allocations: 0.966 MB / 393.7 MB, free: 11.91 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.1719, allocations: 3.938 kB / 393.7 MB, free: 11.91 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.409e-05/0.172, allocations: 20.17 kB / 393.7 MB, free: 11.89 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.153e-06/0.172, allocations: 4 kB / 393.7 MB, free: 11.88 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.824e-05/0.1721, allocations: 23.86 kB / 393.7 MB, free: 11.86 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.001e-06/0.1721, allocations: 7.938 kB / 393.7 MB, free: 11.85 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.734e-06/0.1721, allocations: 0 / 393.7 MB, free: 11.85 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001096/0.1732, allocations: 0.7679 MB / 394.5 MB, free: 11.04 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000149/0.1734, allocations: 156.6 kB / 394.7 MB, free: 10.87 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001132/0.1735, allocations: 27.92 kB / 394.7 MB, free: 10.84 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002347/0.1737, allocations: 27.98 kB / 394.7 MB, free: 10.81 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001211/0.1738, allocations: 39.95 kB / 394.8 MB, free: 10.77 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000103/0.174, allocations: 27.92 kB / 394.8 MB, free: 10.75 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0008957/0.1749, allocations: 0.6669 MB / 395.5 MB, free: 10.08 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1749, allocations: 0 / 395.5 MB, free: 10.08 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006534/0.1755, allocations: 151.8 kB / 395.6 MB, free: 9.93 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 32 ($whenCondition1,timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent,timeTable.nextEventScaled,$whenCondition3,$whenCondition2,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,start.reset[1],start.on,start.table.y,start.table.combiTimeTable.nextTimeEvent,start.table.combiTimeTable.nextTimeEventScaled,start.pre_reset[1],stop.reset[1],stop.on,stop.table.y,stop.table.combiTimeTable.nextTimeEvent,stop.table.combiTimeTable.nextTimeEventScaled,stop.pre_reset[1],$whenCondition8,booleanTable.y,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled,$whenCondition9,integerTable.y,integerTable.combiTimeTable.nextTimeEvent,integerTable.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 26 (integerTable.combiTimeTable.nextTimeEventScaled,integerTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled,booleanTable.combiTimeTable.nextTimeEvent,stop.table.combiTimeTable.nextTimeEvent,start.table.combiTimeTable.nextTimeEvent,stop.table.combiTimeTable.nextTimeEventScaled,$whenCondition5,stop.on,$whenCondition4,stop.pre_reset[1],stop.reset[1],stop.table.y,start.table.combiTimeTable.nextTimeEventScaled,$whenCondition7,start.on,$whenCondition6,start.pre_reset[1],start.reset[1],start.table.y,timeTable.nextEvent,timeTable.last,timeTable.nextEventScaled,timeTable.b,timeTable.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 3 * 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.001234/0.1768, allocations: 0.5028 MB / 396.1 MB, free: 9.41 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001072/0.1779, allocations: 0.6189 MB / 396.7 MB, free: 8.754 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.477e-06/0.1779, allocations: 0 / 396.7 MB, free: 8.754 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005802/0.1785, allocations: 438 kB / 397.2 MB, free: 8.289 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008438/0.1793, allocations: 176.2 kB / 397.3 MB, free: 8.117 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001813/0.1811, allocations: 1.176 MB / 398.5 MB, free: 6.898 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005677/0.1817, allocations: 0.933 MB / 399.4 MB, free: 5.938 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002726/0.182, allocations: 113.1 kB / 399.5 MB, free: 5.824 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001266/0.1821, allocations: 55.42 kB / 399.6 MB, free: 5.77 MB / 334.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1821, allocations: 0 / 399.6 MB, free: 5.77 MB / 334.1 MB Notification: Performance of Templates: time 0.0171/0.1992, allocations: 9.401 MB / 409 MB, free: 12.35 MB / 350.1 MB make -j1 -f Modelica_3.1_Modelica.Blocks.Examples.Interaction1.makefile (rm -f Modelica_3.1_Modelica.Blocks.Examples.Interaction1.pipe ; mkfifo Modelica_3.1_Modelica.Blocks.Examples.Interaction1.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Blocks.Examples.Interaction1.pipe >> ../files/Modelica_3.1_Modelica.Blocks.Examples.Interaction1.sim & ./Modelica_3.1_Modelica.Blocks.Examples.Interaction1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Blocks.Examples.Interaction1.pipe 2>&1)