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.8924/0.8924, allocations: 110.8 MB / 123.3 MB, free: 10.79 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001898/0.001898, allocations: 147.5 kB / 149.1 MB, free: 0.9961 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 2.459e-05/2.463e-05, allocations: 4 kB / 180.2 MB, free: 17.57 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05795/0.05799, allocations: 25.17 MB / 205.4 MB, free: 8.449 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.05124/0.1093, allocations: 33.21 MB / 238.6 MB, free: 7.184 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001998/0.1095, allocations: 63.97 kB / 238.7 MB, free: 7.121 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009102/0.1186, allocations: 2.762 MB / 241.4 MB, free: 4.336 MB / 186.7 MB Notification: Performance of FrontEnd: time 2.114e-06/0.1187, allocations: 0 / 241.4 MB, free: 4.336 MB / 186.7 MB Notification: Performance of Transformations before backend: time 2.482e-05/0.1188, allocations: 4 kB / 241.4 MB, free: 4.332 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.0008171/0.1196, allocations: 435.7 kB / 241.8 MB, free: 3.859 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.995e-05/0.1196, allocations: 8.031 kB / 241.9 MB, free: 3.852 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.687e-05/0.1197, allocations: 31.61 kB / 241.9 MB, free: 3.82 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000347/0.1201, allocations: 222.8 kB / 242.1 MB, free: 3.562 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.579e-05/0.1202, allocations: 20.44 kB / 242.1 MB, free: 3.543 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.385e-05/0.1202, allocations: 24 kB / 242.1 MB, free: 3.52 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006462/0.1209, allocations: 233.8 kB / 242.4 MB, free: 3.281 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.6e-05/0.1209, allocations: 0 / 242.4 MB, free: 3.281 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.547e-05/0.121, allocations: 8 kB / 242.4 MB, free: 3.273 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.595e-05/0.121, allocations: 7.953 kB / 242.4 MB, free: 3.266 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004489/0.1215, allocations: 157.7 kB / 242.5 MB, free: 3.113 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001245/0.1227, allocations: 0.6665 MB / 243.2 MB, free: 2.387 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004042/0.1231, allocations: 167.3 kB / 243.4 MB, free: 2.215 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001718/0.1233, allocations: 81.25 kB / 243.5 MB, free: 2.133 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.273e-05/0.1234, allocations: 8.172 kB / 243.5 MB, free: 2.125 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002631/0.1236, allocations: 116.4 kB / 243.6 MB, free: 2 MB / 186.7 MB Notification: Performance of pre-optimization done (n=24): time 1.984e-06/0.1237, allocations: 0 / 243.6 MB, free: 2 MB / 186.7 MB Notification: Performance of matching and sorting (n=24): time 0.00045/0.1241, allocations: 169.3 kB / 243.7 MB, free: 1.828 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.637e-05/0.1242, allocations: 55.41 kB / 243.8 MB, free: 1.762 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00016/0.1244, allocations: 133 kB / 243.9 MB, free: 1.621 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 4.054e-05/0.1244, allocations: 33.7 kB / 244 MB, free: 1.582 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001108/0.1245, allocations: 128.4 kB / 244.1 MB, free: 1.453 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.454e-05/0.1246, allocations: 67.17 kB / 244.2 MB, free: 1.387 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.431e-05/0.1246, allocations: 4 kB / 244.2 MB, free: 1.383 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001783/0.1248, allocations: 326.8 kB / 244.5 MB, free: 1.055 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001772/0.125, allocations: 64.08 kB / 244.5 MB, free: 0.9883 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002106/0.1252, allocations: 115.5 kB / 244.6 MB, free: 0.8516 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002041/0.1254, allocations: 75.95 kB / 244.7 MB, free: 0.7773 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.1255, allocations: 0 / 244.7 MB, free: 0.7773 MB / 186.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005569/0.126, allocations: 237.2 kB / 245 MB, free: 0.5391 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.519e-05/0.1261, allocations: 8 kB / 245 MB, free: 0.5312 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.277e-06/0.1261, allocations: 0 / 245 MB, free: 0.5312 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.137e-05/0.1261, allocations: 4.219 kB / 245 MB, free: 0.5273 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002046/0.1263, allocations: 39.91 kB / 245 MB, free: 500 kB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.702e-05/0.1264, allocations: 4 kB / 245 MB, free: 496 kB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001684/0.1265, allocations: 19.94 kB / 245 MB, free: 476 kB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.614e-05/0.1266, allocations: 8 kB / 245 MB, free: 468 kB / 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.000258/0.1269, allocations: 141.7 kB / 245.2 MB, free: 324 kB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.277e-05/0.1269, allocations: 15.77 kB / 245.2 MB, free: 308 kB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005065/0.1274, allocations: 194.2 kB / 245.4 MB, free: 108 kB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.591e-06/0.1274, allocations: 0 / 245.4 MB, free: 108 kB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.496e-06/0.1275, allocations: 0 / 245.4 MB, free: 108 kB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.46e-05/0.1275, allocations: 7.984 kB / 245.4 MB, free: 100 kB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1557/0.2832, allocations: 0.5526 MB / 245.9 MB, free: 41.79 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.224e-06/0.2832, allocations: 3.734 kB / 245.9 MB, free: 41.79 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001334/0.2834, allocations: 18.45 kB / 246 MB, free: 41.79 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.175e-06/0.2834, allocations: 1.125 kB / 246 MB, free: 41.79 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.412e-05/0.2834, allocations: 5.578 kB / 246 MB, free: 41.79 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.192e-06/0.2834, allocations: 2.188 kB / 246 MB, free: 41.79 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.2835, allocations: 0 / 246 MB, free: 41.79 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004078/0.2839, allocations: 281.7 kB / 246.2 MB, free: 41.66 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.291e-05/0.2839, allocations: 89.88 kB / 246.3 MB, free: 41.56 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.362e-05/0.284, allocations: 7.109 kB / 246.3 MB, free: 41.56 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001452/0.2841, allocations: 10.84 kB / 246.4 MB, free: 41.56 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.593e-05/0.2842, allocations: 23.03 kB / 246.4 MB, free: 41.56 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.564e-05/0.2843, allocations: 13.52 kB / 246.4 MB, free: 41.56 MB / 186.7 MB Notification: Performance of sorting global known variables: time 5.309e-05/0.2843, allocations: 94.33 kB / 246.5 MB, free: 41.49 MB / 186.7 MB Notification: Performance of sort global known variables: time 2.11e-07/0.2843, allocations: 0 / 246.5 MB, free: 41.49 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.000532/0.2849, allocations: 43.08 kB / 246.5 MB, free: 41.49 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.0001762/0.2851, allocations: 109.3 kB / 246.6 MB, free: 41.4 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.0004723/0.2856, allocations: 177.7 kB / 246.8 MB, free: 41.4 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 4.549e-06/0.2856, allocations: 3.062 kB / 246.8 MB, free: 41.4 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001974/0.2858, allocations: 80.73 kB / 246.9 MB, free: 41.4 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002989/0.2861, allocations: 24.66 kB / 246.9 MB, free: 41.4 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005683/0.2867, allocations: 231.7 kB / 247.1 MB, free: 41.29 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001961/0.2869, allocations: 0.7366 MB / 247.9 MB, free: 40.59 MB / 186.7 MB Notification: Performance of simCode: alias equations: time 0.0001198/0.287, allocations: 24.42 kB / 247.9 MB, free: 40.59 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.715e-05/0.2871, allocations: 20.75 kB / 247.9 MB, free: 40.59 MB / 186.7 MB Notification: Performance of SimCode: time 4.31e-07/0.2871, allocations: 0 / 247.9 MB, free: 40.59 MB / 186.7 MB Notification: Performance of Templates: time 0.006639/0.2938, allocations: 1.669 MB / 249.6 MB, free: 40.51 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)