Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant3.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.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant3") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00709/0.00709, allocations: 99.64 kB / 15.73 MB, free: 6.035 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.001382/0.001382, allocations: 189.6 kB / 16.67 MB, free: 5.969 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.751/1.751, allocations: 205.1 MB / 222.6 MB, free: 4.395 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.00152/0.00152, allocations: 50.38 kB / 326.5 MB, free: 14.59 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1484/0.1499, allocations: 46.63 MB / 373.2 MB, free: 1.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.004234/0.1542, allocations: 1.672 MB / 374.8 MB, free: 15.74 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008375/0.1551, allocations: 259.2 kB / 375.1 MB, free: 15.49 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001264/0.1552, allocations: 0 / 375.1 MB, free: 15.49 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001564/0.1554, allocations: 27.67 kB / 375.1 MB, free: 15.46 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.2e-05/0.1555, allocations: 23.8 kB / 375.1 MB, free: 15.44 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005097/0.156, allocations: 119.8 kB / 375.2 MB, free: 15.32 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003204/0.1563, allocations: 259.6 kB / 375.5 MB, free: 15.07 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003435/0.1567, allocations: 193.4 kB / 375.7 MB, free: 14.88 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001052/0.1568, allocations: 91.7 kB / 375.8 MB, free: 14.79 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001514/0.1569, allocations: 99.53 kB / 375.9 MB, free: 14.69 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.008e-05/0.157, allocations: 24 kB / 375.9 MB, free: 14.66 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.003e-05/0.1571, allocations: 31.98 kB / 375.9 MB, free: 14.63 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.938e-05/0.1572, allocations: 51.84 kB / 376 MB, free: 14.58 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001068/0.1573, allocations: 99.52 kB / 376.1 MB, free: 14.48 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003256/0.1576, allocations: 255.1 kB / 376.3 MB, free: 14.23 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.1576, allocations: 3.938 kB / 376.3 MB, free: 14.23 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.645e-06/0.1576, allocations: 0 / 376.3 MB, free: 14.23 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.613e-06/0.1576, allocations: 3.938 kB / 376.3 MB, free: 14.23 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.000668/0.1583, allocations: 486.2 kB / 376.8 MB, free: 13.7 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.1584, allocations: 12.03 kB / 376.8 MB, free: 13.69 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.387e-05/0.1584, allocations: 24.66 kB / 376.8 MB, free: 13.67 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004058/0.1588, allocations: 228 kB / 377.1 MB, free: 13.41 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.005e-05/0.1589, allocations: 20.94 kB / 377.1 MB, free: 13.39 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.161e-05/0.1589, allocations: 24.38 kB / 377.1 MB, free: 13.36 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005091/0.1595, allocations: 282.5 kB / 377.4 MB, free: 13.07 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.509e-05/0.1595, allocations: 192 / 377.4 MB, free: 13.07 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.291e-05/0.1595, allocations: 15.92 kB / 377.4 MB, free: 13.05 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.236e-05/0.1595, allocations: 8 kB / 377.4 MB, free: 13.04 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003258/0.1599, allocations: 161.6 kB / 377.6 MB, free: 12.88 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001292/0.1612, allocations: 0.9671 MB / 378.5 MB, free: 11.85 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002586/0.1614, allocations: 158.7 kB / 378.7 MB, free: 11.69 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001232/0.1616, allocations: 72.83 kB / 378.8 MB, free: 11.61 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.541e-05/0.1616, allocations: 11.98 kB / 378.8 MB, free: 11.6 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001915/0.1618, allocations: 115.1 kB / 378.9 MB, free: 11.48 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.893e-06/0.1618, allocations: 0 / 378.9 MB, free: 11.48 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004104/0.1622, allocations: 213.3 kB / 379.1 MB, free: 11.26 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.037e-05/0.1623, allocations: 55.41 kB / 379.1 MB, free: 11.2 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000127/0.1624, allocations: 161.5 kB / 379.3 MB, free: 11.03 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.33e-05/0.1625, allocations: 37.7 kB / 379.3 MB, free: 10.98 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.395e-05/0.1626, allocations: 140.5 kB / 379.5 MB, free: 10.84 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.478e-05/0.1626, allocations: 63.25 kB / 379.5 MB, free: 10.78 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.775e-05/0.1627, allocations: 74 kB / 379.6 MB, free: 10.7 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001258/0.1629, allocations: 330.8 kB / 379.9 MB, free: 10.36 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001185/0.163, allocations: 68.56 kB / 380 MB, free: 10.3 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000171/0.1632, allocations: 145.7 kB / 380.1 MB, free: 10.12 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002528/0.1634, allocations: 184.4 kB / 380.3 MB, free: 9.914 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.1634, allocations: 0 / 380.3 MB, free: 9.914 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003775/0.1638, allocations: 253.5 kB / 380.6 MB, free: 9.66 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.92e-05/0.1639, allocations: 8.031 kB / 380.6 MB, free: 9.652 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.747e-06/0.1639, allocations: 4 kB / 380.6 MB, free: 9.648 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.348e-05/0.1639, allocations: 4 kB / 380.6 MB, free: 9.645 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001463/0.164, allocations: 27.92 kB / 380.6 MB, free: 9.617 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.176e-05/0.1641, allocations: 11.88 kB / 380.6 MB, free: 9.605 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001055/0.1642, allocations: 35.67 kB / 380.7 MB, free: 9.57 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.824e-05/0.1642, allocations: 12 kB / 380.7 MB, free: 9.559 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 30 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,timer.entryTime,$PRE.timer.entryTime,transition2.enableFire,transition2.localCondition,step.active,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,transition1.t_start,$PRE.transition1.t_start,transition1.fire,transition1.enableFire,initialStep.oldActive,$PRE.initialStep.oldActive,initialStep.newActive,$PRE.initialStep.newActive,initialStep.localActive,$PRE.initialStep.localActive,initialStep.active,$whenCondition1,$whenCondition2,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * 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.0001534/0.1644, allocations: 160.3 kB / 380.8 MB, free: 9.391 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.27e-05/0.1644, allocations: 19.91 kB / 380.9 MB, free: 9.371 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003455/0.1648, allocations: 190.3 kB / 381 MB, free: 9.18 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.523e-06/0.1648, allocations: 4 kB / 381 MB, free: 9.176 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.122e-06/0.1648, allocations: 0 / 381 MB, free: 9.176 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.354e-06/0.1648, allocations: 0 / 381 MB, free: 9.176 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007833/0.1656, allocations: 0.5791 MB / 381.6 MB, free: 8.535 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/0.1656, allocations: 0 / 381.6 MB, free: 8.535 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.12e-05/0.1657, allocations: 23.92 kB / 381.6 MB, free: 8.512 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.44e-06/0.1657, allocations: 3.938 kB / 381.6 MB, free: 8.508 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.468e-05/0.1657, allocations: 8 kB / 381.7 MB, free: 8.5 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.1657, allocations: 0 / 381.7 MB, free: 8.5 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.1657, allocations: 0 / 381.7 MB, free: 8.5 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003327/0.1661, allocations: 279.6 kB / 381.9 MB, free: 8.211 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.771e-05/0.1661, allocations: 88.95 kB / 382 MB, free: 8.105 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.965e-05/0.1662, allocations: 7.938 kB / 382 MB, free: 8.098 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.567e-05/0.1663, allocations: 7.984 kB / 382 MB, free: 8.09 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001072/0.1664, allocations: 27.97 kB / 382.1 MB, free: 8.062 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.376e-05/0.1664, allocations: 4 kB / 382.1 MB, free: 8.059 MB / 318.1 MB Notification: Performance of sorting global known variables: time 7.473e-05/0.1665, allocations: 99.27 kB / 382.2 MB, free: 7.961 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1665, allocations: 0 / 382.2 MB, free: 7.961 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003079/0.1668, allocations: 55.75 kB / 382.2 MB, free: 7.906 MB / 318.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: 19 (step.localActive,transition1.enableFire,step.active,initialStep.active,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.localCondition,transition2.enableFire,timer.entryTime,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0001922/0.167, allocations: 107.4 kB / 382.3 MB, free: 7.793 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003503/0.1674, allocations: 192.3 kB / 382.5 MB, free: 7.605 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.1674, allocations: 4.062 kB / 382.5 MB, free: 7.602 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001339/0.1675, allocations: 83.91 kB / 382.6 MB, free: 7.52 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003097/0.1678, allocations: 20 kB / 382.6 MB, free: 7.5 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006786/0.1685, allocations: 331.7 kB / 382.9 MB, free: 7.152 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003874/0.1689, allocations: 0.7363 MB / 383.7 MB, free: 6.391 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 8.792e-05/0.169, allocations: 21.94 kB / 383.7 MB, free: 6.367 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.28e-05/0.1691, allocations: 23.44 kB / 383.7 MB, free: 6.344 MB / 318.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1691, allocations: 4 kB / 383.7 MB, free: 6.34 MB / 318.1 MB Notification: Performance of Templates: time 0.006112/0.1752, allocations: 1.94 MB / 385.7 MB, free: 4.398 MB / 318.1 MB make -j1 -f Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile (rm -f Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1)