Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample.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,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001183/0.001183, allocations: 106 kB / 17.06 MB, free: 6.125 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.001787/0.001787, allocations: 200 kB / 18 MB, free: 5.199 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.665/1.665, allocations: 205.1 MB / 223.9 MB, free: 12.23 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.001565/0.001565, allocations: 47.94 kB / 327.8 MB, free: 3.324 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1529/0.1545, allocations: 46.62 MB / 374.5 MB, free: 4.598 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.004504/0.1591, allocations: 1.477 MB / 375.9 MB, free: 3.109 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009665/0.1601, allocations: 247.3 kB / 376.2 MB, free: 2.867 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000293/0.1604, allocations: 4 kB / 376.2 MB, free: 2.863 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002762/0.1608, allocations: 27.67 kB / 376.2 MB, free: 2.836 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001223/0.1609, allocations: 15.8 kB / 376.2 MB, free: 2.82 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008159/0.1617, allocations: 119.8 kB / 376.3 MB, free: 2.703 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005632/0.1623, allocations: 255.5 kB / 376.6 MB, free: 2.453 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004398/0.1628, allocations: 158.4 kB / 376.7 MB, free: 2.297 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001505/0.1629, allocations: 87.72 kB / 376.8 MB, free: 2.211 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001737/0.1631, allocations: 99.58 kB / 376.9 MB, free: 2.113 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.612e-05/0.1631, allocations: 24 kB / 376.9 MB, free: 2.09 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.873e-05/0.1633, allocations: 28 kB / 377 MB, free: 2.062 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.51e-05/0.1633, allocations: 63.81 kB / 377 MB, free: 2 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001167/0.1635, allocations: 91.53 kB / 377.1 MB, free: 1.91 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000362/0.1638, allocations: 239.1 kB / 377.4 MB, free: 1.676 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.1639, allocations: 0 / 377.4 MB, free: 1.676 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.1639, allocations: 0 / 377.4 MB, free: 1.676 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.526e-06/0.1639, allocations: 0 / 377.4 MB, free: 1.676 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0007934/0.1647, allocations: 490.5 kB / 377.8 MB, free: 1.148 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.465e-05/0.1647, allocations: 8.031 kB / 377.8 MB, free: 1.141 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.582e-05/0.1648, allocations: 24.66 kB / 377.9 MB, free: 1.117 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004017/0.1652, allocations: 232 kB / 378.1 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.108e-05/0.1653, allocations: 24.88 kB / 378.1 MB, free: 0.8242 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.083e-05/0.1653, allocations: 24.38 kB / 378.1 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004514/0.1658, allocations: 248 kB / 378.4 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.255e-05/0.1658, allocations: 192 / 378.4 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.588e-05/0.1658, allocations: 11.94 kB / 378.4 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.266e-05/0.1658, allocations: 11.98 kB / 378.4 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00028/0.1661, allocations: 157.7 kB / 378.6 MB, free: 380 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3494/0.5155, allocations: 0.6824 MB / 379.2 MB, free: 12.66 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005616/0.5162, allocations: 175.2 kB / 379.4 MB, free: 12.63 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001998/0.5164, allocations: 81.34 kB / 379.5 MB, free: 12.62 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.871e-05/0.5165, allocations: 5.688 kB / 379.5 MB, free: 12.62 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003146/0.5168, allocations: 127.2 kB / 379.6 MB, free: 12.57 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 4.869e-06/0.5168, allocations: 1.375 kB / 379.6 MB, free: 12.57 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.0006244/0.5175, allocations: 218.7 kB / 379.8 MB, free: 12.54 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.478e-05/0.5175, allocations: 58.97 kB / 379.9 MB, free: 12.47 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002231/0.5178, allocations: 141.9 kB / 380 MB, free: 12.37 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.975e-05/0.5178, allocations: 40.62 kB / 380.1 MB, free: 12.34 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001241/0.518, allocations: 128.5 kB / 380.2 MB, free: 12.24 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.976e-05/0.518, allocations: 60.52 kB / 380.3 MB, free: 12.21 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001897/0.5182, allocations: 80.28 kB / 380.3 MB, free: 12.19 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001143/0.5184, allocations: 326.1 kB / 380.7 MB, free: 11.88 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001608/0.5185, allocations: 61.98 kB / 380.7 MB, free: 11.88 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000203/0.5187, allocations: 127 kB / 380.8 MB, free: 11.81 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003206/0.5191, allocations: 177.8 kB / 381 MB, free: 11.75 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.344e-06/0.5191, allocations: 7.469 kB / 381 MB, free: 11.75 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005619/0.5197, allocations: 240.4 kB / 381.3 MB, free: 11.7 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.114e-05/0.5197, allocations: 6.344 kB / 381.3 MB, free: 11.7 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.122e-05/0.5197, allocations: 4.688 kB / 381.3 MB, free: 11.7 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.522e-05/0.5198, allocations: 8.062 kB / 381.3 MB, free: 11.7 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002049/0.52, allocations: 34.34 kB / 381.3 MB, free: 11.7 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.717e-05/0.52, allocations: 3.281 kB / 381.3 MB, free: 11.7 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001652/0.5202, allocations: 28.25 kB / 381.3 MB, free: 11.68 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.277e-05/0.5202, allocations: 14.73 kB / 381.4 MB, free: 11.68 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,transition2.t_start,$PRE.transition2.t_start,transition2.fire,transition2.enableFire,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,step.active,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,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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.0002578/0.5205, allocations: 157 kB / 381.5 MB, free: 11.56 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.385e-05/0.5206, allocations: 10.39 kB / 381.5 MB, free: 11.55 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005394/0.5211, allocations: 203.7 kB / 381.7 MB, free: 11.51 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.047e-05/0.5211, allocations: 3.359 kB / 381.7 MB, free: 11.51 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.699e-06/0.5212, allocations: 1.375 kB / 381.7 MB, free: 11.51 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.295e-06/0.5212, allocations: 2.297 kB / 381.7 MB, free: 11.51 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001128/0.5223, allocations: 0.5685 MB / 382.3 MB, free: 11.1 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5e-06/0.5223, allocations: 0.5625 kB / 382.3 MB, free: 11.1 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001098/0.5224, allocations: 15.05 kB / 382.3 MB, free: 11.1 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.532e-06/0.5225, allocations: 2.969 kB / 382.3 MB, free: 11.1 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.595e-05/0.5225, allocations: 7 kB / 382.3 MB, free: 11.1 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.941e-06/0.5225, allocations: 1.281 kB / 382.3 MB, free: 11.1 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.327e-06/0.5225, allocations: 0.5312 kB / 382.3 MB, free: 11.1 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004271/0.5229, allocations: 288.7 kB / 382.6 MB, free: 10.91 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.567e-05/0.523, allocations: 94.36 kB / 382.7 MB, free: 10.8 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.205e-05/0.5231, allocations: 6.984 kB / 382.7 MB, free: 10.8 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.196e-05/0.5231, allocations: 5.703 kB / 382.7 MB, free: 10.8 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001109/0.5233, allocations: 22.67 kB / 382.7 MB, free: 10.79 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.433e-05/0.5233, allocations: 9.703 kB / 382.7 MB, free: 10.79 MB / 318.1 MB Notification: Performance of sorting global known variables: time 7.047e-05/0.5234, allocations: 97.45 kB / 382.8 MB, free: 10.71 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5234, allocations: 0 / 382.8 MB, free: 10.71 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004032/0.5238, allocations: 50.22 kB / 382.9 MB, free: 10.69 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 (transition2.enableFire,step.active,transition1.enableFire,initialStep.active,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.localActive,step.newActive,step.oldActive,transition2.fire,transition2.t_start,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 (26): * Single equations (assignments): 22 * 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.0002056/0.524, allocations: 114.7 kB / 383 MB, free: 10.59 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004577/0.5245, allocations: 189.9 kB / 383.2 MB, free: 10.53 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.576e-06/0.5245, allocations: 2.953 kB / 383.2 MB, free: 10.53 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001739/0.5247, allocations: 83.44 kB / 383.3 MB, free: 10.51 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003275/0.525, allocations: 23.8 kB / 383.3 MB, free: 10.5 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007417/0.5257, allocations: 330.3 kB / 383.6 MB, free: 10.28 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002557/0.526, allocations: 0.7301 MB / 384.3 MB, free: 9.586 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001076/0.5261, allocations: 27.27 kB / 384.4 MB, free: 9.582 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.889e-05/0.5262, allocations: 29.45 kB / 384.4 MB, free: 9.566 MB / 318.1 MB Notification: Performance of SimCode: time 3.8e-07/0.5262, allocations: 3.938 kB / 384.4 MB, free: 9.562 MB / 318.1 MB Notification: Performance of Templates: time 0.007804/0.534, allocations: 1.962 MB / 386.4 MB, free: 9.402 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample.makefile (rm -f Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1)