Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant2.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_Variant2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant2") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo): time 0.9748/0.9748, allocations: 110.8 MB / 118.3 MB, free: 14.47 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001523/0.001523, allocations: 167.3 kB / 144 MB, free: 4.785 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 2.295e-05/2.295e-05, allocations: 4 kB / 173.8 MB, free: 22.8 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05684/0.05689, allocations: 25.18 MB / 199 MB, free: 13.7 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.05328/0.1102, allocations: 33.11 MB / 232.1 MB, free: 12.54 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002414/0.1105, allocations: 63.97 kB / 232.2 MB, free: 12.47 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008525/0.1191, allocations: 2.866 MB / 235.1 MB, free: 9.586 MB / 186.7 MB Notification: Performance of FrontEnd: time 4.629e-06/0.1191, allocations: 0 / 235.1 MB, free: 9.586 MB / 186.7 MB Notification: Performance of Transformations before backend: time 2.095e-05/0.1192, allocations: 11.88 kB / 235.1 MB, free: 9.574 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: 58 * Number of variables: 58 Notification: Performance of Generate backend data structure: time 0.0006902/0.1199, allocations: 439.3 kB / 235.5 MB, free: 9.102 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.131e-05/0.1199, allocations: 12.03 kB / 235.5 MB, free: 9.09 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.403e-05/0.12, allocations: 27.77 kB / 235.5 MB, free: 9.062 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003092/0.1203, allocations: 218.8 kB / 235.8 MB, free: 8.809 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.635e-05/0.1204, allocations: 12 kB / 235.8 MB, free: 8.797 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.293e-05/0.1204, allocations: 16 kB / 235.8 MB, free: 8.781 MB / 186.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003333/0.1208, allocations: 145.1 kB / 235.9 MB, free: 8.641 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004094/0.1212, allocations: 228.9 kB / 236.1 MB, free: 8.391 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.358e-05/0.1212, allocations: 4 kB / 236.1 MB, free: 8.387 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.738e-05/0.1213, allocations: 3.953 kB / 236.2 MB, free: 8.383 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.14e-05/0.1213, allocations: 4 kB / 236.2 MB, free: 8.379 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001421/0.1227, allocations: 0.8934 MB / 237 MB, free: 7.426 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002609/0.123, allocations: 139.2 kB / 237.2 MB, free: 7.281 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001009/0.1231, allocations: 61.23 kB / 237.2 MB, free: 7.219 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.602e-05/0.1231, allocations: 4.188 kB / 237.2 MB, free: 7.215 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000195/0.1233, allocations: 111.5 kB / 237.4 MB, free: 7.094 MB / 186.7 MB Notification: Performance of pre-optimization done (n=23): time 1.783e-06/0.1233, allocations: 0 / 237.4 MB, free: 7.094 MB / 186.7 MB Notification: Performance of matching and sorting (n=23): time 0.0003202/0.1237, allocations: 146.1 kB / 237.5 MB, free: 6.945 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.341e-05/0.1237, allocations: 63.39 kB / 237.6 MB, free: 6.871 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001298/0.1239, allocations: 137.1 kB / 237.7 MB, free: 6.73 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 3.048e-05/0.1239, allocations: 29.7 kB / 237.7 MB, free: 6.695 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001039/0.124, allocations: 144.2 kB / 237.9 MB, free: 6.551 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.91e-05/0.1241, allocations: 51.34 kB / 237.9 MB, free: 6.5 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.508e-06/0.1241, allocations: 0 / 237.9 MB, free: 6.5 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.000141/0.1242, allocations: 330.8 kB / 238.2 MB, free: 6.168 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001007/0.1243, allocations: 52.66 kB / 238.3 MB, free: 6.113 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001427/0.1245, allocations: 125.5 kB / 238.4 MB, free: 5.961 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001231/0.1246, allocations: 63.91 kB / 238.5 MB, free: 5.898 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.1246, allocations: 0 / 238.5 MB, free: 5.898 MB / 186.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003669/0.125, allocations: 213.3 kB / 238.7 MB, free: 5.684 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.126e-05/0.125, allocations: 4 kB / 238.7 MB, free: 5.68 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.025e-05/0.1251, allocations: 7.938 kB / 238.7 MB, free: 5.672 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.239e-05/0.1251, allocations: 8.281 kB / 238.7 MB, free: 5.664 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001531/0.1252, allocations: 39.84 kB / 238.7 MB, free: 5.625 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.104e-05/0.1253, allocations: 4 kB / 238.7 MB, free: 5.621 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001053/0.1254, allocations: 11.91 kB / 238.8 MB, free: 5.609 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.293e-05/0.1254, allocations: 12 kB / 238.8 MB, free: 5.598 MB / 186.7 MB Warning: Assuming fixed start value for the following 1 variables: 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: 10 * Number of states: 0 () * Number of discrete variables: 30 ($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,$PRE.timer.entryTime,timer.entryTime,greaterEqual.y,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001827/0.1256, allocations: 135.9 kB / 238.9 MB, free: 5.457 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.46e-05/0.1256, allocations: 11.81 kB / 238.9 MB, free: 5.445 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003655/0.126, allocations: 182.2 kB / 239.1 MB, free: 5.262 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.361e-06/0.126, allocations: 4 kB / 239.1 MB, free: 5.258 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.109e-06/0.126, allocations: 0 / 239.1 MB, free: 5.258 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.11e-06/0.126, allocations: 0 / 239.1 MB, free: 5.258 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007483/0.1268, allocations: 0.5178 MB / 239.6 MB, free: 4.691 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.1268, allocations: 0 / 239.6 MB, free: 4.691 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.735e-05/0.1269, allocations: 23.98 kB / 239.6 MB, free: 4.668 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.951e-06/0.1269, allocations: 0 / 239.6 MB, free: 4.668 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.551e-05/0.1269, allocations: 0 / 239.6 MB, free: 4.668 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.807e-06/0.1269, allocations: 4 kB / 239.6 MB, free: 4.664 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.078e-06/0.127, allocations: 3.984 kB / 239.6 MB, free: 4.66 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003125/0.1273, allocations: 259.5 kB / 239.9 MB, free: 4.391 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.693e-05/0.1273, allocations: 92.86 kB / 240 MB, free: 4.281 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.043e-05/0.1274, allocations: 4 kB / 240 MB, free: 4.277 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.744e-05/0.1275, allocations: 11.98 kB / 240 MB, free: 4.266 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.922e-05/0.1276, allocations: 19.97 kB / 240 MB, free: 4.246 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.044e-05/0.1276, allocations: 8 kB / 240 MB, free: 4.238 MB / 186.7 MB Notification: Performance of sorting global known variables: time 6.377e-05/0.1277, allocations: 95.83 kB / 240.1 MB, free: 4.145 MB / 186.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1277, allocations: 0 / 240.1 MB, free: 4.145 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0003106/0.128, allocations: 28 kB / 240.2 MB, free: 4.117 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 (step.active,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,transition2.enableFire,timer.entryTime,greaterEqual.y,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * 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 (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.0002102/0.1282, allocations: 111 kB / 240.3 MB, free: 4 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.0003108/0.1285, allocations: 155.9 kB / 240.4 MB, free: 3.848 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.1285, allocations: 0 / 240.4 MB, free: 3.848 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001754/0.1287, allocations: 75.92 kB / 240.5 MB, free: 3.773 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002336/0.129, allocations: 15.95 kB / 240.5 MB, free: 3.758 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005817/0.1296, allocations: 237.1 kB / 240.7 MB, free: 3.5 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003955/0.13, allocations: 0.7368 MB / 241.5 MB, free: 2.738 MB / 186.7 MB Notification: Performance of simCode: alias equations: time 9.589e-05/0.1301, allocations: 26.06 kB / 241.5 MB, free: 2.711 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.673e-05/0.1301, allocations: 23.44 kB / 241.5 MB, free: 2.688 MB / 186.7 MB Notification: Performance of SimCode: time 3.81e-07/0.1302, allocations: 4 kB / 241.5 MB, free: 2.684 MB / 186.7 MB Notification: Performance of Templates: time 0.005132/0.1353, allocations: 1.617 MB / 243.1 MB, free: 1.07 MB / 186.7 MB make -j1 -f Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile (rm -f Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1)