Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant2.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_Variant2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant2") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001901/0.001901, allocations: 111.9 kB / 17.06 MB, free: 6.004 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.003078/0.003078, allocations: 198.9 kB / 18 MB, free: 5.082 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.68/1.68, allocations: 205.1 MB / 223.9 MB, free: 12.25 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.001636/0.001637, allocations: 47.92 kB / 327.8 MB, free: 3.324 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1479/0.1496, allocations: 46.61 MB / 374.5 MB, free: 4.605 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.004244/0.1539, allocations: 1.659 MB / 376.1 MB, free: 2.934 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009214/0.1548, allocations: 263.2 kB / 376.4 MB, free: 2.676 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002006/0.1551, allocations: 3.938 kB / 376.4 MB, free: 2.672 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002024/0.1553, allocations: 23.73 kB / 376.4 MB, free: 2.648 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001015/0.1554, allocations: 19.75 kB / 376.4 MB, free: 2.629 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007146/0.1562, allocations: 123.8 kB / 376.5 MB, free: 2.508 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000564/0.1567, allocations: 267.5 kB / 376.8 MB, free: 2.246 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005763/0.1573, allocations: 206.8 kB / 377 MB, free: 2.039 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001752/0.1575, allocations: 83.72 kB / 377.1 MB, free: 1.957 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000213/0.1577, allocations: 103.6 kB / 377.2 MB, free: 1.855 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.095e-05/0.1578, allocations: 23.94 kB / 377.2 MB, free: 1.832 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001347/0.158, allocations: 28 kB / 377.2 MB, free: 1.805 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001088/0.1581, allocations: 59.83 kB / 377.3 MB, free: 1.746 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001616/0.1582, allocations: 107.4 kB / 377.4 MB, free: 1.641 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004616/0.1587, allocations: 259 kB / 377.6 MB, free: 1.387 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.682e-06/0.1587, allocations: 0 / 377.6 MB, free: 1.387 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.755e-06/0.1587, allocations: 0 / 377.6 MB, free: 1.387 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.406e-05/0.1588, allocations: 0 / 377.6 MB, free: 1.387 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.0008534/0.1596, allocations: 493.9 kB / 378.1 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.831e-05/0.1597, allocations: 8.031 kB / 378.1 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.944e-05/0.1598, allocations: 20.75 kB / 378.2 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004207/0.1602, allocations: 236 kB / 378.4 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.42e-05/0.1603, allocations: 28.88 kB / 378.4 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.363e-05/0.1603, allocations: 24.38 kB / 378.4 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005084/0.1608, allocations: 270.6 kB / 378.7 MB, free: 232 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.48e-05/0.1609, allocations: 4.188 kB / 378.7 MB, free: 228 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.992e-05/0.1609, allocations: 11.94 kB / 378.7 MB, free: 216 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.07e-05/0.1609, allocations: 8 kB / 378.7 MB, free: 208 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003575/0.1613, allocations: 169.5 kB / 378.9 MB, free: 36 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3131/0.4743, allocations: 0.9575 MB / 379.9 MB, free: 12.46 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003426/0.4747, allocations: 153.1 kB / 380 MB, free: 12.43 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001298/0.4749, allocations: 72 kB / 380.1 MB, free: 12.43 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.023e-05/0.4749, allocations: 9.531 kB / 380.1 MB, free: 12.42 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002401/0.4752, allocations: 125 kB / 380.2 MB, free: 12.37 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 3.807e-06/0.4752, allocations: 1.078 kB / 380.2 MB, free: 12.37 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.000496/0.4757, allocations: 214.9 kB / 380.4 MB, free: 12.32 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.125e-05/0.4757, allocations: 55.05 kB / 380.5 MB, free: 12.26 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001226/0.4759, allocations: 152.8 kB / 380.6 MB, free: 12.15 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.819e-05/0.4759, allocations: 36.78 kB / 380.7 MB, free: 12.12 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.067e-05/0.476, allocations: 145.2 kB / 380.8 MB, free: 12.01 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.973e-05/0.476, allocations: 59.12 kB / 380.9 MB, free: 11.98 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001233/0.4762, allocations: 80.36 kB / 380.9 MB, free: 11.96 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.985e-05/0.4763, allocations: 327.2 kB / 381.3 MB, free: 11.64 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001258/0.4764, allocations: 63.09 kB / 381.3 MB, free: 11.64 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000161/0.4766, allocations: 145.5 kB / 381.5 MB, free: 11.56 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002415/0.4768, allocations: 186.5 kB / 381.6 MB, free: 11.48 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.4768, allocations: 5.312 kB / 381.6 MB, free: 11.48 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004649/0.4773, allocations: 252.4 kB / 381.9 MB, free: 11.41 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.631e-05/0.4773, allocations: 8.344 kB / 381.9 MB, free: 11.41 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.055e-05/0.4773, allocations: 2.406 kB / 381.9 MB, free: 11.41 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.689e-05/0.4774, allocations: 3.875 kB / 381.9 MB, free: 11.41 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001493/0.4775, allocations: 35.67 kB / 381.9 MB, free: 11.4 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.04e-05/0.4776, allocations: 7.922 kB / 381.9 MB, free: 11.4 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001005/0.4777, allocations: 32.33 kB / 382 MB, free: 11.38 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.093e-05/0.4777, allocations: 13.22 kB / 382 MB, free: 11.38 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.0001527/0.4779, allocations: 160.3 kB / 382.1 MB, free: 11.23 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.698e-05/0.4779, allocations: 14.66 kB / 382.2 MB, free: 11.22 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004106/0.4783, allocations: 197.2 kB / 382.4 MB, free: 11.12 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.895e-06/0.4783, allocations: 6.719 kB / 382.4 MB, free: 11.12 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.4783, allocations: 1.328 kB / 382.4 MB, free: 11.12 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.664e-06/0.4784, allocations: 2.469 kB / 382.4 MB, free: 11.12 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007707/0.4791, allocations: 0.5863 MB / 383 MB, free: 10.69 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.4792, allocations: 0 / 383 MB, free: 10.69 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.648e-05/0.4792, allocations: 14.42 kB / 383 MB, free: 10.69 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.37e-06/0.4792, allocations: 3.812 kB / 383 MB, free: 10.69 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.866e-05/0.4793, allocations: 7.469 kB / 383 MB, free: 10.68 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.647e-06/0.4793, allocations: 7.984 kB / 383 MB, free: 10.68 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.4793, allocations: 4.219 kB / 383 MB, free: 10.68 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003015/0.4796, allocations: 270.2 kB / 383.3 MB, free: 10.5 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.763e-05/0.4796, allocations: 94.41 kB / 383.3 MB, free: 10.39 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.802e-05/0.4797, allocations: 5.734 kB / 383.3 MB, free: 10.39 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.468e-05/0.4798, allocations: 13.14 kB / 383.4 MB, free: 10.38 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.608e-05/0.4799, allocations: 17.14 kB / 383.4 MB, free: 10.38 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.876e-05/0.4799, allocations: 9.219 kB / 383.4 MB, free: 10.38 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.813e-05/0.48, allocations: 101.5 kB / 383.5 MB, free: 10.3 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.48, allocations: 0 / 383.5 MB, free: 10.3 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.00033/0.4803, allocations: 52.61 kB / 383.5 MB, free: 10.28 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,step.active,transition1.enableFire,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.0001775/0.4805, allocations: 112.9 kB / 383.6 MB, free: 10.18 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003982/0.4809, allocations: 193.4 kB / 383.8 MB, free: 10.12 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.4809, allocations: 0.5625 kB / 383.8 MB, free: 10.12 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001682/0.4811, allocations: 84.53 kB / 383.9 MB, free: 10.09 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003038/0.4814, allocations: 20.95 kB / 383.9 MB, free: 10.09 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005882/0.482, allocations: 340.4 kB / 384.3 MB, free: 9.855 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002229/0.4822, allocations: 0.7404 MB / 385 MB, free: 9.152 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 8.308e-05/0.4823, allocations: 22.73 kB / 385 MB, free: 9.152 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.111e-05/0.4824, allocations: 22.14 kB / 385.1 MB, free: 9.145 MB / 318.1 MB Notification: Performance of SimCode: time 3.01e-07/0.4824, allocations: 0 / 385.1 MB, free: 9.145 MB / 318.1 MB Notification: Performance of Templates: time 0.006678/0.4891, allocations: 1.959 MB / 387 MB, free: 8.969 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile (rm -f Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1)