Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_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.1_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_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.008119/0.008119, allocations: 102.6 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.00133/0.00133, allocations: 193.1 kB / 16.67 MB, free: 5.973 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.577/1.577, allocations: 205.1 MB / 222.6 MB, free: 4.547 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.001353/0.001353, allocations: 46.81 kB / 326.5 MB, free: 14.43 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.135/0.1363, allocations: 46.63 MB / 373.1 MB, free: 1.359 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002808/0.1392, allocations: 1.463 MB / 374.6 MB, free: 15.88 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007351/0.1399, allocations: 247.2 kB / 374.9 MB, free: 15.64 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001315/0.1401, allocations: 3.938 kB / 374.9 MB, free: 15.64 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001958/0.1403, allocations: 27.69 kB / 374.9 MB, free: 15.61 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.891e-05/0.1404, allocations: 19.8 kB / 374.9 MB, free: 15.59 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006269/0.141, allocations: 103.9 kB / 375 MB, free: 15.49 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003608/0.1414, allocations: 267.5 kB / 375.3 MB, free: 15.23 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003526/0.1418, allocations: 158.4 kB / 375.4 MB, free: 15.07 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001179/0.1419, allocations: 87.75 kB / 375.5 MB, free: 14.98 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001552/0.1421, allocations: 99.53 kB / 375.6 MB, free: 14.89 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.863e-05/0.1421, allocations: 20 kB / 375.6 MB, free: 14.87 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.5e-05/0.1422, allocations: 39.98 kB / 375.7 MB, free: 14.83 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.762e-05/0.1423, allocations: 47.84 kB / 375.7 MB, free: 14.78 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001219/0.1424, allocations: 103.5 kB / 375.8 MB, free: 14.68 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003186/0.1428, allocations: 239.1 kB / 376 MB, free: 14.45 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.1428, allocations: 0 / 376 MB, free: 14.45 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.1428, allocations: 0 / 376 MB, free: 14.45 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.993e-06/0.1428, allocations: 0 / 376 MB, free: 14.45 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.0007542/0.1436, allocations: 486.6 kB / 376.5 MB, free: 13.92 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.39e-05/0.1436, allocations: 8.031 kB / 376.5 MB, free: 13.91 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.996e-05/0.1437, allocations: 28.66 kB / 376.6 MB, free: 13.89 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003493/0.144, allocations: 228.1 kB / 376.8 MB, free: 13.62 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.736e-05/0.1441, allocations: 16.94 kB / 376.8 MB, free: 13.61 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.742e-05/0.1441, allocations: 28.38 kB / 376.8 MB, free: 13.58 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004497/0.1446, allocations: 244 kB / 377.1 MB, free: 13.33 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.696e-05/0.1446, allocations: 4.172 kB / 377.1 MB, free: 13.32 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.218e-05/0.1447, allocations: 15.94 kB / 377.1 MB, free: 13.31 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.328e-06/0.1447, allocations: 4 kB / 377.1 MB, free: 13.3 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002964/0.145, allocations: 165.7 kB / 377.2 MB, free: 13.14 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009912/0.146, allocations: 0.6972 MB / 377.9 MB, free: 12.39 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002924/0.1463, allocations: 170.9 kB / 378.1 MB, free: 12.21 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001141/0.1464, allocations: 76.83 kB / 378.2 MB, free: 12.14 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.305e-05/0.1464, allocations: 4 kB / 378.2 MB, free: 12.13 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001907/0.1466, allocations: 127 kB / 378.3 MB, free: 12 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.623e-06/0.1466, allocations: 0 / 378.3 MB, free: 12 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004245/0.1471, allocations: 213.4 kB / 378.5 MB, free: 11.78 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.098e-05/0.1471, allocations: 55.41 kB / 378.6 MB, free: 11.71 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001139/0.1472, allocations: 153.9 kB / 378.7 MB, free: 11.55 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.809e-05/0.1473, allocations: 37.7 kB / 378.8 MB, free: 11.51 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.987e-05/0.1474, allocations: 132.6 kB / 378.9 MB, free: 11.38 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.484e-05/0.1474, allocations: 63.25 kB / 379 MB, free: 11.31 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.605e-05/0.1475, allocations: 70.02 kB / 379 MB, free: 11.23 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001148/0.1476, allocations: 326.8 kB / 379.3 MB, free: 10.91 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000115/0.1478, allocations: 64.56 kB / 379.4 MB, free: 10.84 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00014/0.1479, allocations: 140 kB / 379.5 MB, free: 10.68 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002262/0.1481, allocations: 174.7 kB / 379.7 MB, free: 10.49 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/0.1481, allocations: 4 kB / 379.7 MB, free: 10.48 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003625/0.1485, allocations: 233.2 kB / 379.9 MB, free: 10.25 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.798e-05/0.1485, allocations: 8 kB / 379.9 MB, free: 10.24 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.764e-06/0.1486, allocations: 0 / 379.9 MB, free: 10.24 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.858e-05/0.1486, allocations: 8.156 kB / 380 MB, free: 10.23 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001305/0.1487, allocations: 35.92 kB / 380 MB, free: 10.2 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.792e-05/0.1487, allocations: 11.92 kB / 380 MB, free: 10.19 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.132e-05/0.1488, allocations: 31.67 kB / 380 MB, free: 10.16 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.774e-05/0.1489, allocations: 16 kB / 380 MB, free: 10.14 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.0001438/0.149, allocations: 157.7 kB / 380.2 MB, free: 9.977 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.552e-05/0.1491, allocations: 19.84 kB / 380.2 MB, free: 9.957 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003324/0.1494, allocations: 194.3 kB / 380.4 MB, free: 9.762 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.306e-06/0.1494, allocations: 4 kB / 380.4 MB, free: 9.758 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.1494, allocations: 0 / 380.4 MB, free: 9.758 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.272e-06/0.1494, allocations: 7.984 kB / 380.4 MB, free: 9.75 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006542/0.1501, allocations: 0.5528 MB / 381 MB, free: 9.141 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.1501, allocations: 4 kB / 381 MB, free: 9.137 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.374e-05/0.1502, allocations: 19.92 kB / 381 MB, free: 9.117 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.905e-06/0.1502, allocations: 0 / 381 MB, free: 9.117 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.514e-05/0.1502, allocations: 4 kB / 381 MB, free: 9.113 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.517e-06/0.1502, allocations: 4 kB / 381 MB, free: 9.109 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.1502, allocations: 7.938 kB / 381 MB, free: 9.102 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002991/0.1505, allocations: 283.6 kB / 381.3 MB, free: 8.809 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.275e-05/0.1506, allocations: 92.94 kB / 381.4 MB, free: 8.699 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.618e-05/0.1506, allocations: 8 kB / 381.4 MB, free: 8.691 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.082e-05/0.1507, allocations: 4 kB / 381.4 MB, free: 8.688 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.99e-05/0.1508, allocations: 23.91 kB / 381.4 MB, free: 8.664 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.607e-05/0.1508, allocations: 12 kB / 381.4 MB, free: 8.652 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.619e-05/0.1509, allocations: 95.27 kB / 381.5 MB, free: 8.559 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1509, allocations: 0 / 381.5 MB, free: 8.559 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002929/0.1512, allocations: 51.84 kB / 381.6 MB, free: 8.508 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.0001525/0.1513, allocations: 111.4 kB / 381.7 MB, free: 8.391 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003191/0.1517, allocations: 187.7 kB / 381.9 MB, free: 8.207 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.1517, allocations: 0 / 381.9 MB, free: 8.207 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001277/0.1518, allocations: 84.34 kB / 381.9 MB, free: 8.125 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003001/0.1521, allocations: 31.92 kB / 382 MB, free: 8.094 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006023/0.1527, allocations: 323.6 kB / 382.3 MB, free: 7.75 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003005/0.153, allocations: 0.7321 MB / 383 MB, free: 6.992 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 8.152e-05/0.1531, allocations: 29.92 kB / 383.1 MB, free: 6.965 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.61e-05/0.1532, allocations: 27.38 kB / 383.1 MB, free: 6.938 MB / 318.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1532, allocations: 0 / 383.1 MB, free: 6.938 MB / 318.1 MB Notification: Performance of Templates: time 0.005133/0.1583, allocations: 1.955 MB / 385 MB, free: 4.98 MB / 318.1 MB make -j1 -f Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample.makefile (rm -f Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1)