Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.StateGraph.Examples.FirstExample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo", uses=false) Using package ModelicaServices with version 1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo) Using package Modelica with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo) Running command: translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo): time 0.7822/0.7822, allocations: 110.8 MB / 118.3 MB, free: 14.48 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.002012/0.002012, allocations: 163.3 kB / 144 MB, free: 4.797 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 1.698e-05/1.7e-05, allocations: 4 kB / 173.8 MB, free: 22.81 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05129/0.05133, allocations: 25.18 MB / 199 MB, free: 13.7 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.04774/0.09912, allocations: 32.55 MB / 231.6 MB, free: 13.11 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001612/0.09932, allocations: 63.97 kB / 231.6 MB, free: 13.04 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00657/0.1059, allocations: 2.712 MB / 234.3 MB, free: 10.3 MB / 186.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1059, allocations: 0 / 234.3 MB, free: 10.3 MB / 186.7 MB Notification: Performance of Transformations before backend: time 1.553e-05/0.106, allocations: 7.938 kB / 234.4 MB, free: 10.3 MB / 186.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0005136/0.1065, allocations: 426.8 kB / 234.8 MB, free: 9.832 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.232e-05/0.1065, allocations: 12.02 kB / 234.8 MB, free: 9.82 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.015e-05/0.1066, allocations: 27.67 kB / 234.8 MB, free: 9.793 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002431/0.1068, allocations: 214.9 kB / 235 MB, free: 9.543 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.761e-05/0.1069, allocations: 12 kB / 235 MB, free: 9.531 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.565e-05/0.1069, allocations: 15.98 kB / 235 MB, free: 9.516 MB / 186.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002825/0.1072, allocations: 144.8 kB / 235.2 MB, free: 9.375 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003135/0.1075, allocations: 201 kB / 235.4 MB, free: 9.168 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.052e-05/0.1076, allocations: 3.938 kB / 235.4 MB, free: 9.164 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.082e-05/0.1076, allocations: 7.953 kB / 235.4 MB, free: 9.156 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.322e-05/0.1076, allocations: 4 kB / 235.4 MB, free: 9.152 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007792/0.1084, allocations: 0.6154 MB / 236 MB, free: 8.492 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002327/0.1086, allocations: 159.1 kB / 236.2 MB, free: 8.328 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.654e-05/0.1087, allocations: 77.31 kB / 236.2 MB, free: 8.25 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.176e-05/0.1088, allocations: 4.188 kB / 236.2 MB, free: 8.246 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001574/0.1089, allocations: 107.4 kB / 236.4 MB, free: 8.129 MB / 186.7 MB Notification: Performance of pre-optimization done (n=24): time 1.502e-06/0.1089, allocations: 0 / 236.4 MB, free: 8.129 MB / 186.7 MB Notification: Performance of matching and sorting (n=24): time 0.000298/0.1092, allocations: 150.2 kB / 236.5 MB, free: 7.977 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.74e-05/0.1093, allocations: 55.41 kB / 236.6 MB, free: 7.91 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.879e-05/0.1094, allocations: 137 kB / 236.7 MB, free: 7.766 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 2.973e-05/0.1094, allocations: 29.7 kB / 236.7 MB, free: 7.73 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.567e-05/0.1095, allocations: 128.4 kB / 236.8 MB, free: 7.602 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.642e-05/0.1096, allocations: 59.23 kB / 236.9 MB, free: 7.543 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.438e-06/0.1096, allocations: 8 kB / 236.9 MB, free: 7.535 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001349/0.1097, allocations: 318.8 kB / 237.2 MB, free: 7.215 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.847e-05/0.1098, allocations: 56.08 kB / 237.3 MB, free: 7.156 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000121/0.1099, allocations: 115.5 kB / 237.4 MB, free: 7.02 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001041/0.1101, allocations: 63.91 kB / 237.4 MB, free: 6.957 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.1101, allocations: 0 / 237.4 MB, free: 6.957 MB / 186.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0002876/0.1104, allocations: 209.2 kB / 237.7 MB, free: 6.746 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.452e-05/0.1104, allocations: 8 kB / 237.7 MB, free: 6.738 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.1104, allocations: 4.219 kB / 237.7 MB, free: 6.734 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.388e-05/0.1104, allocations: 4 kB / 237.7 MB, free: 6.73 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000131/0.1106, allocations: 31.92 kB / 237.7 MB, free: 6.699 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.534e-06/0.1106, allocations: 4 kB / 237.7 MB, free: 6.695 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.511e-05/0.1107, allocations: 15.92 kB / 237.7 MB, free: 6.68 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.768e-05/0.1107, allocations: 12 kB / 237.7 MB, free: 6.668 MB / 186.7 MB Warning: Assuming fixed start value for the following 2 variables: transition2.t_start:DISCRETE(unit = "s" fixed = false protected = true ) "Time instant at which the transition would fire, if waitTime would be zero" type: Real transition1.t_start:DISCRETE(unit = "s" fixed = false protected = true ) "Time instant at which the transition would fire, if waitTime would be zero" type: Real 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,$whenCondition2,$whenCondition1,$PRE.initialStep.localActive,initialStep.localActive,$PRE.initialStep.newActive,initialStep.newActive,$PRE.initialStep.oldActive,initialStep.oldActive,initialStep.active,transition1.enableFire,transition1.fire,$PRE.transition1.t_start,transition1.t_start,$PRE.step.localActive,step.localActive,$PRE.step.newActive,step.newActive,$PRE.step.oldActive,step.oldActive,step.active,transition2.enableFire,transition2.fire,$PRE.transition2.t_start,transition2.t_start,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend,transition2.condition,transition1.condition) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001387/0.1108, allocations: 120.5 kB / 237.8 MB, free: 6.543 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.572e-05/0.1109, allocations: 27.69 kB / 237.9 MB, free: 6.516 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003033/0.1112, allocations: 174.2 kB / 238 MB, free: 6.336 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.067e-06/0.1112, allocations: 4 kB / 238 MB, free: 6.332 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.1112, allocations: 0 / 238 MB, free: 6.332 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.1112, allocations: 3.938 kB / 238.1 MB, free: 6.328 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005914/0.1118, allocations: 0.5068 MB / 238.6 MB, free: 5.777 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.1118, allocations: 0 / 238.6 MB, free: 5.777 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.538e-05/0.1119, allocations: 15.98 kB / 238.6 MB, free: 5.762 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.1119, allocations: 0 / 238.6 MB, free: 5.762 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.529e-05/0.1119, allocations: 4 kB / 238.6 MB, free: 5.758 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.105e-06/0.1119, allocations: 0 / 238.6 MB, free: 5.758 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.1119, allocations: 7.922 kB / 238.6 MB, free: 5.75 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002593/0.1122, allocations: 259.6 kB / 238.8 MB, free: 5.48 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.852e-05/0.1123, allocations: 96.88 kB / 238.9 MB, free: 5.367 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.411e-05/0.1123, allocations: 4 kB / 238.9 MB, free: 5.363 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.477e-05/0.1124, allocations: 11.98 kB / 239 MB, free: 5.352 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.104e-05/0.1125, allocations: 19.97 kB / 239 MB, free: 5.332 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.508e-05/0.1125, allocations: 11.98 kB / 239 MB, free: 5.32 MB / 186.7 MB Notification: Performance of sorting global known variables: time 3.991e-05/0.1125, allocations: 87.28 kB / 239.1 MB, free: 5.234 MB / 186.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1125, allocations: 0 / 239.1 MB, free: 5.234 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0002585/0.1128, allocations: 32 kB / 239.1 MB, free: 5.203 MB / 186.7 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.localActive,transition1.enableFire,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.newActive,initialStep.oldActive,initialStep.active,transition1.fire,transition1.t_start,step.newActive,step.oldActive,step.active,transition2.fire,transition2.t_start,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001491/0.1129, allocations: 115.1 kB / 239.2 MB, free: 5.082 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.0002359/0.1132, allocations: 155.9 kB / 239.4 MB, free: 4.93 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.1132, allocations: 0 / 239.4 MB, free: 4.93 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001019/0.1133, allocations: 75.88 kB / 239.4 MB, free: 4.855 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001917/0.1135, allocations: 15.98 kB / 239.5 MB, free: 4.84 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000417/0.1139, allocations: 217.8 kB / 239.7 MB, free: 4.609 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00025/0.1142, allocations: 0.7401 MB / 240.4 MB, free: 3.844 MB / 186.7 MB Notification: Performance of simCode: alias equations: time 7.317e-05/0.1143, allocations: 18.08 kB / 240.4 MB, free: 3.824 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.195e-05/0.1143, allocations: 31.42 kB / 240.5 MB, free: 3.793 MB / 186.7 MB Notification: Performance of SimCode: time 2.71e-07/0.1143, allocations: 0 / 240.5 MB, free: 3.793 MB / 186.7 MB Notification: Performance of Templates: time 0.003944/0.1183, allocations: 1.624 MB / 242.1 MB, free: 2.176 MB / 186.7 MB make -j1 -f Modelica_3.1_Modelica.StateGraph.Examples.FirstExample.makefile (rm -f Modelica_3.1_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_3.1_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_3.1_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_3.1_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_3.1_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1)