Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant3.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_Variant3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant3") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo): time 0.8777/0.8777, allocations: 110.8 MB / 123.3 MB, free: 10.75 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001468/0.001468, allocations: 147.5 kB / 149.1 MB, free: 0.9609 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 2.392e-05/2.393e-05, allocations: 4 kB / 180.2 MB, free: 17.58 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04005/0.04009, allocations: 25.19 MB / 205.4 MB, free: 8.438 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.04312/0.08324, allocations: 33.74 MB / 239.1 MB, free: 6.641 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001788/0.08346, allocations: 63.97 kB / 239.2 MB, free: 6.578 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007253/0.09073, allocations: 2.892 MB / 242.1 MB, free: 3.668 MB / 186.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.09076, allocations: 4 kB / 242.1 MB, free: 3.664 MB / 186.7 MB Notification: Performance of Transformations before backend: time 1.32e-05/0.09078, allocations: 8 kB / 242.1 MB, free: 3.656 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.0004802/0.09127, allocations: 435.9 kB / 242.5 MB, free: 3.188 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.014e-05/0.09132, allocations: 12.03 kB / 242.5 MB, free: 3.176 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.54e-05/0.09139, allocations: 31.61 kB / 242.6 MB, free: 3.145 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002426/0.09164, allocations: 222.8 kB / 242.8 MB, free: 2.887 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.556e-05/0.09168, allocations: 24.56 kB / 242.8 MB, free: 2.863 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.797e-05/0.09173, allocations: 28 kB / 242.8 MB, free: 2.836 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004117/0.09215, allocations: 262 kB / 243.1 MB, free: 2.555 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.337e-06/0.09217, allocations: 0 / 243.1 MB, free: 2.555 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.262e-05/0.0922, allocations: 12 kB / 243.1 MB, free: 2.543 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.04e-05/0.09221, allocations: 11.95 kB / 243.1 MB, free: 2.531 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002742/0.09249, allocations: 157.6 kB / 243.3 MB, free: 2.379 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009972/0.0935, allocations: 0.9445 MB / 244.2 MB, free: 1.359 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002489/0.09376, allocations: 147.4 kB / 244.4 MB, free: 1.207 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001049/0.09387, allocations: 69.23 kB / 244.4 MB, free: 1.137 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.421e-05/0.09391, allocations: 12.17 kB / 244.4 MB, free: 1.125 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001733/0.09409, allocations: 113.9 kB / 244.5 MB, free: 1.004 MB / 186.7 MB Notification: Performance of pre-optimization done (n=23): time 1.663e-06/0.0941, allocations: 0 / 244.5 MB, free: 1.004 MB / 186.7 MB Notification: Performance of matching and sorting (n=23): time 0.0002908/0.09439, allocations: 161.2 kB / 244.7 MB, free: 0.8398 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.967e-05/0.09444, allocations: 63.39 kB / 244.8 MB, free: 0.7656 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001034/0.09455, allocations: 140.7 kB / 244.9 MB, free: 0.6211 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 3.276e-05/0.09459, allocations: 33.7 kB / 244.9 MB, free: 0.582 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.798e-05/0.09467, allocations: 144.2 kB / 245.1 MB, free: 448 kB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.101e-05/0.09473, allocations: 59.34 kB / 245.1 MB, free: 388 kB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.111e-05/0.09475, allocations: 4 kB / 245.1 MB, free: 384 kB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001298/0.09489, allocations: 330.8 kB / 245.5 MB, free: 44 kB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.09811/0.193, allocations: 55.33 kB / 245.5 MB, free: 41.85 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001825/0.1932, allocations: 128.4 kB / 245.6 MB, free: 41.77 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001539/0.1934, allocations: 68.97 kB / 245.7 MB, free: 41.77 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.1934, allocations: 4.375 kB / 245.7 MB, free: 41.77 MB / 186.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004008/0.1938, allocations: 240.5 kB / 245.9 MB, free: 41.73 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.125e-05/0.1938, allocations: 7.312 kB / 246 MB, free: 41.73 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.027e-06/0.1938, allocations: 2.531 kB / 246 MB, free: 41.73 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.915e-05/0.1939, allocations: 4.125 kB / 246 MB, free: 41.73 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001521/0.194, allocations: 38.05 kB / 246 MB, free: 41.73 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.214e-05/0.194, allocations: 3.625 kB / 246 MB, free: 41.73 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001123/0.1942, allocations: 18.61 kB / 246 MB, free: 41.73 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.147e-05/0.1942, allocations: 13.64 kB / 246 MB, free: 41.73 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,SetBoolean1.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.0001334/0.1943, allocations: 146.3 kB / 246.2 MB, free: 41.61 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.925e-05/0.1944, allocations: 13.73 kB / 246.2 MB, free: 41.61 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003204/0.1947, allocations: 184.7 kB / 246.4 MB, free: 41.57 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.009e-06/0.1947, allocations: 3.797 kB / 246.4 MB, free: 41.57 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.1947, allocations: 3.469 kB / 246.4 MB, free: 41.57 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.1947, allocations: 2.672 kB / 246.4 MB, free: 41.57 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006929/0.1954, allocations: 0.5841 MB / 247 MB, free: 41.23 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.704e-06/0.1955, allocations: 0 / 247 MB, free: 41.23 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.113e-05/0.1955, allocations: 18.62 kB / 247 MB, free: 41.22 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.005e-06/0.1955, allocations: 3.844 kB / 247 MB, free: 41.22 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.427e-05/0.1956, allocations: 5.812 kB / 247 MB, free: 41.22 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.455e-06/0.1956, allocations: 2.641 kB / 247 MB, free: 41.22 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.1956, allocations: 0 / 247 MB, free: 41.22 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002517/0.1958, allocations: 272.2 kB / 247.3 MB, free: 41.08 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.849e-05/0.1959, allocations: 88.98 kB / 247.3 MB, free: 40.99 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.393e-05/0.1959, allocations: 7.203 kB / 247.4 MB, free: 40.99 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.839e-05/0.196, allocations: 7.672 kB / 247.4 MB, free: 40.99 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.735e-05/0.1961, allocations: 26.2 kB / 247.4 MB, free: 40.98 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.428e-05/0.1961, allocations: 9.344 kB / 247.4 MB, free: 40.98 MB / 186.7 MB Notification: Performance of sorting global known variables: time 3.982e-05/0.1961, allocations: 102.9 kB / 247.5 MB, free: 40.91 MB / 186.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1961, allocations: 0 / 247.5 MB, free: 40.91 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0002969/0.1964, allocations: 40.73 kB / 247.5 MB, free: 40.91 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,SetBoolean1.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.000112/0.1966, allocations: 111.1 kB / 247.6 MB, free: 40.82 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.000262/0.1968, allocations: 180.9 kB / 247.8 MB, free: 40.8 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.1968, allocations: 1.844 kB / 247.8 MB, free: 40.8 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001071/0.197, allocations: 79.98 kB / 247.9 MB, free: 40.79 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001675/0.1971, allocations: 18.59 kB / 247.9 MB, free: 40.79 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003943/0.1975, allocations: 235.3 kB / 248.1 MB, free: 40.68 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001629/0.1977, allocations: 0.7408 MB / 248.9 MB, free: 39.98 MB / 186.7 MB Notification: Performance of simCode: alias equations: time 8.955e-05/0.1978, allocations: 26.44 kB / 248.9 MB, free: 39.97 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.386e-05/0.1979, allocations: 25.53 kB / 248.9 MB, free: 39.96 MB / 186.7 MB Notification: Performance of SimCode: time 3.21e-07/0.1979, allocations: 0 / 248.9 MB, free: 39.96 MB / 186.7 MB Notification: Performance of Templates: time 0.004269/0.2021, allocations: 1.639 MB / 250.6 MB, free: 39.86 MB / 186.7 MB make -j1 -f Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile (rm -f Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1)