Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2.2_Modelica.Blocks.Examples.Interaction1") translateModel(Modelica.Blocks.Examples.Interaction1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.00131/0.00131, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.001502/0.001502, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.663/1.663, allocations: 205.1 MB / 223.7 MB, free: 12.3 MB / 190.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.001262/0.001263, allocations: 55.92 kB / 280 MB, free: 3.188 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1266/0.1279, allocations: 46.64 MB / 326.6 MB, free: 4.484 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Interaction1): time 0.00772/0.1357, allocations: 2.502 MB / 329.1 MB, free: 1.957 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.005176/0.1409, allocations: 1.715 MB / 330.8 MB, free: 236 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007069/0.1416, allocations: 11.88 kB / 330.8 MB, free: 224 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001855/0.1436, allocations: 0.522 MB / 331.4 MB, free: 15.7 MB / 286.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.001523/0.1451, allocations: 426.5 kB / 331.8 MB, free: 15.28 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002666/0.1478, allocations: 0.6237 MB / 332.4 MB, free: 14.65 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00167/0.1495, allocations: 0.7832 MB / 333.2 MB, free: 13.87 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003784/0.1499, allocations: 109.7 kB / 333.3 MB, free: 13.76 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008965/0.1508, allocations: 326.9 kB / 333.6 MB, free: 13.44 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007773/0.1516, allocations: 354.6 kB / 334 MB, free: 13.09 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001875/0.1518, allocations: 40 kB / 334 MB, free: 13.05 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006829/0.1525, allocations: 211.8 kB / 334.2 MB, free: 12.85 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003613/0.1529, allocations: 203.3 kB / 334.4 MB, free: 12.65 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004473/0.1533, allocations: 306.2 kB / 334.7 MB, free: 12.35 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001329/0.1547, allocations: 0.8335 MB / 335.5 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.221e-06/0.1547, allocations: 4 kB / 335.5 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.827e-06/0.1547, allocations: 4 kB / 335.5 MB, free: 11.5 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.041e-05/0.1547, allocations: 0 / 335.5 MB, free: 11.5 MB / 286.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.002348/0.1571, allocations: 1.203 MB / 336.7 MB, free: 10.2 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.077e-05/0.1572, allocations: 8.031 kB / 336.8 MB, free: 10.2 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00019/0.1574, allocations: 76 kB / 336.8 MB, free: 10.12 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001055/0.1584, allocations: 0.5741 MB / 337.4 MB, free: 9.504 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.162e-05/0.1585, allocations: 32.34 kB / 337.4 MB, free: 9.473 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.383e-05/0.1586, allocations: 24.12 kB / 337.5 MB, free: 9.449 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008172/0.1594, allocations: 346.8 kB / 337.8 MB, free: 9.062 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.645e-05/0.1594, allocations: 4 kB / 337.8 MB, free: 9.059 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.964e-05/0.1595, allocations: 11.98 kB / 337.8 MB, free: 9.047 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.242e-05/0.1595, allocations: 11.84 kB / 337.8 MB, free: 9.035 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004724/0.16, allocations: 179.8 kB / 338 MB, free: 8.859 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002005/0.162, allocations: 1.341 MB / 339.3 MB, free: 7.445 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009677/0.163, allocations: 354.7 kB / 339.7 MB, free: 7.062 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004117/0.1634, allocations: 179.3 kB / 339.9 MB, free: 6.875 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.534e-05/0.1635, allocations: 4 kB / 339.9 MB, free: 6.871 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007767/0.1643, allocations: 471 kB / 340.3 MB, free: 6.355 MB / 286.1 MB Notification: Performance of pre-optimization done (n=42): time 2.735e-06/0.1643, allocations: 0 / 340.3 MB, free: 6.355 MB / 286.1 MB Notification: Performance of matching and sorting (n=42): time 0.001995/0.1663, allocations: 0.7401 MB / 341.1 MB, free: 5.59 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000267/0.1666, allocations: 460.9 kB / 341.5 MB, free: 5.035 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001627/0.1682, allocations: 0.9301 MB / 342.4 MB, free: 4.098 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 6.655e-05/0.1683, allocations: 45.69 kB / 342.5 MB, free: 4.047 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002749/0.1686, allocations: 308.8 kB / 342.8 MB, free: 3.742 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001213/0.1687, allocations: 114.5 kB / 342.9 MB, free: 3.629 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000158/0.1689, allocations: 94.11 kB / 343 MB, free: 3.531 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001277/0.169, allocations: 330 kB / 343.3 MB, free: 3.203 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002996/0.1693, allocations: 144.9 kB / 343.5 MB, free: 3.059 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004114/0.1698, allocations: 354.3 kB / 343.8 MB, free: 2.641 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001072/0.1708, allocations: 0.7835 MB / 344.6 MB, free: 1.746 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.487e-06/0.1709, allocations: 0 / 344.6 MB, free: 1.746 MB / 286.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001132/0.172, allocations: 0.6693 MB / 345.3 MB, free: 1.051 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.888e-05/0.1721, allocations: 105 kB / 345.4 MB, free: 0.9297 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.031e-05/0.1721, allocations: 4.188 kB / 345.4 MB, free: 0.9258 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.079e-05/0.1721, allocations: 4.281 kB / 345.4 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002504/0.1724, allocations: 72.12 kB / 345.4 MB, free: 0.8516 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.358e-05/0.1724, allocations: 12 kB / 345.5 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002871/0.1727, allocations: 51.59 kB / 345.5 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.608e-05/0.1728, allocations: 23.98 kB / 345.5 MB, free: 0.7656 MB / 286.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.0004456/0.1732, allocations: 394.7 kB / 345.9 MB, free: 364 kB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001213/0.1733, allocations: 91 kB / 346 MB, free: 272 kB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000126/0.1735, allocations: 74.2 kB / 346.1 MB, free: 188 kB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.392e-06/0.1735, allocations: 4 kB / 346.1 MB, free: 184 kB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.035e-06/0.1735, allocations: 0 / 346.1 MB, free: 184 kB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.1735, allocations: 0 / 346.1 MB, free: 184 kB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001216/0.1747, allocations: 0.9659 MB / 347 MB, free: 15.14 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.088e-06/0.1747, allocations: 4 kB / 347 MB, free: 15.14 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.252e-05/0.1748, allocations: 23.98 kB / 347.1 MB, free: 15.12 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.23e-06/0.1749, allocations: 4 kB / 347.1 MB, free: 15.11 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.589e-05/0.1749, allocations: 23.92 kB / 347.1 MB, free: 15.09 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.607e-06/0.1749, allocations: 4 kB / 347.1 MB, free: 15.09 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.1749, allocations: 0 / 347.1 MB, free: 15.09 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001083/0.176, allocations: 0.7635 MB / 347.9 MB, free: 14.28 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001344/0.1761, allocations: 160 kB / 348 MB, free: 14.1 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001097/0.1763, allocations: 27.92 kB / 348 MB, free: 14.07 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002388/0.1765, allocations: 23.98 kB / 348.1 MB, free: 14.05 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001077/0.1766, allocations: 35.95 kB / 348.1 MB, free: 14.02 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.883e-05/0.1767, allocations: 23.98 kB / 348.1 MB, free: 13.99 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0007554/0.1774, allocations: 0.6708 MB / 348.8 MB, free: 13.32 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.1774, allocations: 4 kB / 348.8 MB, free: 13.32 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005593/0.178, allocations: 144 kB / 348.9 MB, free: 13.18 MB / 302.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.001162/0.1792, allocations: 0.4974 MB / 349.4 MB, free: 12.69 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001074/0.1803, allocations: 0.6385 MB / 350.1 MB, free: 12.01 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.1803, allocations: 0 / 350.1 MB, free: 12.01 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005293/0.1808, allocations: 434 kB / 350.5 MB, free: 11.55 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008474/0.1817, allocations: 183.6 kB / 350.7 MB, free: 11.37 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001803/0.1835, allocations: 1.186 MB / 351.9 MB, free: 10.15 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005338/0.184, allocations: 0.9328 MB / 352.8 MB, free: 9.188 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002951/0.1843, allocations: 113.5 kB / 352.9 MB, free: 9.078 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001193/0.1845, allocations: 59.42 kB / 353 MB, free: 9.02 MB / 302.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1845, allocations: 0 / 353 MB, free: 9.02 MB / 302.1 MB Notification: Performance of Templates: time 0.01761/0.2021, allocations: 9.327 MB / 362.3 MB, free: 15.67 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Blocks.Examples.Interaction1.makefile (rm -f Modelica_3.2.2_Modelica.Blocks.Examples.Interaction1.pipe ; mkfifo Modelica_3.2.2_Modelica.Blocks.Examples.Interaction1.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Blocks.Examples.Interaction1.pipe >> ../files/Modelica_3.2.2_Modelica.Blocks.Examples.Interaction1.sim & ./Modelica_3.2.2_Modelica.Blocks.Examples.Interaction1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Blocks.Examples.Interaction1.pipe 2>&1)