Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant2.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_Variant2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant2") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant2") [: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.001047/0.001047, allocations: 191.6 kB / 8.135 MB, free: 2.199 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.069/1.069, allocations: 194.2 MB / 202.8 MB, free: 8.664 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.001791/0.001791, allocations: 117.2 kB / 247.7 MB, free: 6.406 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 6.933e-06/7.023e-06, allocations: 4 kB / 297.6 MB, free: 8.012 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06825/0.06827, allocations: 44.48 MB / 342 MB, free: 11.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1817/0.25, allocations: 70.69 MB / 412.7 MB, free: 24.42 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001668/0.2502, allocations: 63.78 kB / 412.8 MB, free: 24.39 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.006554/0.2568, allocations: 2.577 MB / 415.4 MB, free: 22.27 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.057e-05/0.2568, allocations: 8 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.0003719/0.2572, allocations: 442.7 kB / 415.8 MB, free: 21.8 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.832e-05/0.2572, allocations: 12.84 kB / 415.8 MB, free: 21.79 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.416e-05/0.2573, allocations: 31.14 kB / 415.8 MB, free: 21.76 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001906/0.2575, allocations: 213.5 kB / 416.1 MB, free: 21.53 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.387e-05/0.2575, allocations: 19.39 kB / 416.1 MB, free: 21.51 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.205e-05/0.2576, allocations: 16 kB / 416.1 MB, free: 21.5 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002611/0.2578, allocations: 141.3 kB / 416.2 MB, free: 21.41 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002906/0.2581, allocations: 232.5 kB / 416.5 MB, free: 21.21 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.067e-05/0.2582, allocations: 4 kB / 416.5 MB, free: 21.2 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.053e-05/0.2582, allocations: 0 / 416.5 MB, free: 21.2 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.778e-06/0.2582, allocations: 4 kB / 416.5 MB, free: 21.2 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007413/0.259, allocations: 0.8891 MB / 417.4 MB, free: 20.36 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001933/0.2592, allocations: 131.6 kB / 417.5 MB, free: 20.26 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000121/0.2593, allocations: 68.86 kB / 417.5 MB, free: 20.21 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.948e-05/0.2593, allocations: 4.188 kB / 417.6 MB, free: 20.21 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001248/0.2594, allocations: 98 kB / 417.6 MB, free: 20.12 MB / 314.7 MB Notification: Performance of pre-optimization done (n=23): time 1.784e-06/0.2595, allocations: 8 kB / 417.7 MB, free: 20.12 MB / 314.7 MB Notification: Performance of matching and sorting (n=23): time 0.0002422/0.2597, allocations: 140 kB / 417.8 MB, free: 20 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.963e-05/0.2597, allocations: 59.34 kB / 417.9 MB, free: 19.93 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.198e-05/0.2598, allocations: 137.1 kB / 418 MB, free: 19.81 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.344e-05/0.2598, allocations: 29.7 kB / 418 MB, free: 19.77 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.014e-05/0.2599, allocations: 143 kB / 418.2 MB, free: 19.64 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.468e-05/0.2599, allocations: 54.94 kB / 418.2 MB, free: 19.59 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.749e-06/0.26, allocations: 0 / 418.2 MB, free: 19.59 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.433e-05/0.26, allocations: 329.5 kB / 418.5 MB, free: 19.27 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.881e-05/0.2601, allocations: 55.03 kB / 418.6 MB, free: 19.23 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001129/0.2602, allocations: 128.1 kB / 418.7 MB, free: 19.11 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.79e-05/0.2603, allocations: 68.2 kB / 418.8 MB, free: 19.06 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.2603, allocations: 0 / 418.8 MB, free: 19.06 MB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0002833/0.2606, allocations: 211.2 kB / 419 MB, free: 18.88 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.729e-06/0.2606, allocations: 16.05 kB / 419 MB, free: 18.87 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.701e-06/0.2607, allocations: 1.25 kB / 419 MB, free: 18.87 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.406e-05/0.2607, allocations: 4 kB / 419 MB, free: 18.86 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001392/0.2608, allocations: 35.86 kB / 419 MB, free: 18.83 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.521e-06/0.2608, allocations: 4 kB / 419 MB, free: 18.82 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001011/0.2609, allocations: 11.91 kB / 419.1 MB, free: 18.81 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.547e-05/0.261, allocations: 16.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,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 6.704e-05/0.261, allocations: 133 kB / 419.2 MB, free: 18.67 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.169e-05/0.2611, allocations: 15.81 kB / 419.2 MB, free: 18.65 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002846/0.2614, allocations: 163.9 kB / 419.4 MB, free: 18.53 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.2614, allocations: 0 / 419.4 MB, free: 18.53 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.2614, allocations: 0 / 419.4 MB, free: 18.53 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.2614, allocations: 4 kB / 419.4 MB, free: 18.52 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005345/0.2619, allocations: 0.5219 MB / 419.9 MB, free: 18.02 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.262, allocations: 2.625 kB / 419.9 MB, free: 18.02 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.624e-05/0.262, allocations: 15.98 kB / 419.9 MB, free: 18.01 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.026e-06/0.262, allocations: 0 / 419.9 MB, free: 18.01 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.206e-05/0.2621, allocations: 0 / 419.9 MB, free: 18.01 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.2621, allocations: 3.906 kB / 419.9 MB, free: 18 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.2621, allocations: 4 kB / 419.9 MB, free: 18 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002155/0.2623, allocations: 256.2 kB / 420.2 MB, free: 17.77 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.033e-05/0.2623, allocations: 85.02 kB / 420.3 MB, free: 17.66 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.822e-05/0.2624, allocations: 5.828 kB / 420.3 MB, free: 17.66 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.951e-05/0.2625, allocations: 4 kB / 420.3 MB, free: 17.66 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.242e-05/0.2625, allocations: 23.02 kB / 420.3 MB, free: 17.64 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.337e-05/0.2626, allocations: 4 kB / 420.3 MB, free: 17.63 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.103e-05/0.2626, allocations: 93.34 kB / 420.4 MB, free: 17.55 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000293/0.2629, allocations: 35.98 kB / 420.4 MB, free: 17.51 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,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.0001111/0.263, allocations: 118.1 kB / 420.5 MB, free: 17.39 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0002259/0.2633, allocations: 161.2 kB / 420.7 MB, free: 17.27 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.2633, allocations: 4 kB / 420.7 MB, free: 17.27 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 9.483e-05/0.2634, allocations: 70.56 kB / 420.8 MB, free: 17.22 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001906/0.2636, allocations: 11.55 kB / 420.8 MB, free: 17.21 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004067/0.264, allocations: 221 kB / 421 MB, free: 17 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001799/0.2642, allocations: 0.7662 MB / 421.8 MB, free: 16.21 MB / 314.7 MB Notification: Performance of SimCode: time 2.71e-07/0.2642, allocations: 1.406 kB / 421.8 MB, free: 16.21 MB / 314.7 MB Notification: Performance of Templates: time 0.00406/0.2682, allocations: 1.867 MB / 423.6 MB, free: 14.39 MB / 314.7 MB make -j1 -f Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile (rm -f Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1)