Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001268/0.001268, allocations: 187.5 kB / 8.137 MB, free: 2.211 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.06/1.06, allocations: 194.2 MB / 202.8 MB, free: 8.719 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001858/0.001858, allocations: 120.3 kB / 247.8 MB, free: 6.359 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 5.079e-06/5.129e-06, allocations: 0 / 297.6 MB, free: 7.996 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06762/0.06764, allocations: 44.48 MB / 342 MB, free: 11.4 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1829/0.2505, allocations: 70.7 MB / 412.7 MB, free: 24.4 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001631/0.2507, allocations: 61.66 kB / 412.8 MB, free: 24.37 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.006655/0.2574, allocations: 2.56 MB / 415.4 MB, free: 22.26 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.07e-05/0.2574, allocations: 4 kB / 415.4 MB, free: 22.26 MB / 314.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.0003732/0.2578, allocations: 439.9 kB / 415.8 MB, free: 21.8 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.986e-05/0.2579, allocations: 8.031 kB / 415.8 MB, free: 21.79 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.489e-05/0.2579, allocations: 23.25 kB / 415.8 MB, free: 21.77 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001865/0.2581, allocations: 228.2 kB / 416 MB, free: 21.52 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.217e-05/0.2581, allocations: 11.56 kB / 416.1 MB, free: 21.52 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.218e-05/0.2582, allocations: 16.98 kB / 416.1 MB, free: 21.5 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002578/0.2584, allocations: 141.4 kB / 416.2 MB, free: 21.41 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002896/0.2587, allocations: 232.9 kB / 416.4 MB, free: 21.21 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.115e-05/0.2588, allocations: 0 / 416.4 MB, free: 21.21 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.177e-05/0.2588, allocations: 7.984 kB / 416.5 MB, free: 21.2 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.387e-06/0.2588, allocations: 4 kB / 416.5 MB, free: 21.2 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007376/0.2596, allocations: 0.8888 MB / 417.3 MB, free: 20.36 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001906/0.2598, allocations: 137.5 kB / 417.5 MB, free: 20.26 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.584e-05/0.2599, allocations: 63.3 kB / 417.5 MB, free: 20.21 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.995e-05/0.2599, allocations: 192 / 417.5 MB, free: 20.21 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001224/0.26, allocations: 109.4 kB / 417.6 MB, free: 20.12 MB / 314.7 MB Notification: Performance of pre-optimization done (n=23): time 1.343e-06/0.26, allocations: 0 / 417.6 MB, free: 20.12 MB / 314.7 MB Notification: Performance of matching and sorting (n=23): time 0.0002358/0.2603, allocations: 139 kB / 417.8 MB, free: 20 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.763e-05/0.2603, allocations: 55.41 kB / 417.8 MB, free: 19.93 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.892e-05/0.2604, allocations: 136.3 kB / 418 MB, free: 19.81 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.284e-05/0.2604, allocations: 33.27 kB / 418 MB, free: 19.78 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.413e-05/0.2604, allocations: 135.9 kB / 418.1 MB, free: 19.65 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.486e-05/0.2605, allocations: 54.39 kB / 418.2 MB, free: 19.61 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.054e-05/0.2605, allocations: 3.938 kB / 418.2 MB, free: 19.6 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 3.79e-05/0.2605, allocations: 330.5 kB / 418.5 MB, free: 19.27 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.786e-05/0.2606, allocations: 54.66 kB / 418.6 MB, free: 19.24 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000103/0.2608, allocations: 128.9 kB / 418.7 MB, free: 19.11 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.423e-05/0.2609, allocations: 63.31 kB / 418.8 MB, free: 19.07 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.003e-06/0.2609, allocations: 3.938 kB / 418.8 MB, free: 19.06 MB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0002806/0.2611, allocations: 212.6 kB / 419 MB, free: 18.88 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.917e-06/0.2612, allocations: 8 kB / 419 MB, free: 18.88 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.2612, allocations: 0 / 419 MB, free: 18.88 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.296e-05/0.2612, allocations: 4 kB / 419 MB, free: 18.87 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001379/0.2613, allocations: 35.86 kB / 419 MB, free: 18.84 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.262e-06/0.2614, allocations: 11.84 kB / 419 MB, free: 18.83 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001065/0.2615, allocations: 7.938 kB / 419 MB, free: 18.82 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.911e-05/0.2615, allocations: 19.92 kB / 419.1 MB, free: 18.8 MB / 314.7 MB 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 6.666e-05/0.2616, allocations: 131.2 kB / 419.2 MB, free: 18.67 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.091e-05/0.2616, allocations: 10.16 kB / 419.2 MB, free: 18.66 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002777/0.2619, allocations: 162.7 kB / 419.3 MB, free: 18.54 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.2619, allocations: 6.625 kB / 419.4 MB, free: 18.54 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.978e-06/0.2619, allocations: 0 / 419.4 MB, free: 18.54 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.498e-06/0.2619, allocations: 0 / 419.4 MB, free: 18.54 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005239/0.2625, allocations: 0.5132 MB / 419.9 MB, free: 18.04 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.2625, allocations: 0 / 419.9 MB, free: 18.04 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001027/0.2626, allocations: 23.36 kB / 419.9 MB, free: 18.02 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.826e-06/0.2626, allocations: 0 / 419.9 MB, free: 18.02 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.286e-05/0.2626, allocations: 4 kB / 419.9 MB, free: 18.02 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.394e-06/0.2626, allocations: 0.875 kB / 419.9 MB, free: 18.02 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.2626, allocations: 0 / 419.9 MB, free: 18.02 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002189/0.2629, allocations: 246.6 kB / 420.1 MB, free: 17.79 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.224e-05/0.2629, allocations: 92.86 kB / 420.2 MB, free: 17.68 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.808e-05/0.2629, allocations: 7.938 kB / 420.2 MB, free: 17.67 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001086/0.263, allocations: 0 / 420.2 MB, free: 17.67 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.143e-05/0.2631, allocations: 25.52 kB / 420.3 MB, free: 17.65 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.482e-05/0.2631, allocations: 15.34 kB / 420.3 MB, free: 17.64 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.91e-05/0.2632, allocations: 86.78 kB / 420.4 MB, free: 17.56 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000296/0.2635, allocations: 39.92 kB / 420.4 MB, free: 17.52 MB / 314.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.0001066/0.2636, allocations: 104.8 kB / 420.5 MB, free: 17.41 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0002211/0.2638, allocations: 160.2 kB / 420.7 MB, free: 17.29 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.332e-06/0.2638, allocations: 0 / 420.7 MB, free: 17.29 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 9.27e-05/0.2639, allocations: 77.31 kB / 420.7 MB, free: 17.23 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000191/0.2641, allocations: 16.2 kB / 420.7 MB, free: 17.23 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000405/0.2645, allocations: 216.2 kB / 421 MB, free: 17.02 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001806/0.2647, allocations: 0.7631 MB / 421.7 MB, free: 16.23 MB / 314.7 MB Notification: Performance of SimCode: time 2.5e-07/0.2647, allocations: 0 / 421.7 MB, free: 16.23 MB / 314.7 MB Notification: Performance of Templates: time 0.004067/0.2688, allocations: 1.862 MB / 423.6 MB, free: 14.42 MB / 314.7 MB make -j1 -f Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile (rm -f Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1)