Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample") [: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.1+maint.om/package.mo): time 0.003317/0.003317, allocations: 172.9 kB / 7.446 MB, free: 2.512 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.188/1.188, allocations: 170.6 MB / 178.4 MB, free: 15.39 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001704/0.001704, allocations: 107.8 kB / 217.7 MB, free: 8.16 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 7.594e-06/7.885e-06, allocations: 0 / 261.7 MB, free: 26.69 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08781/0.08783, allocations: 38.77 MB / 300.5 MB, free: 3.93 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2501/0.338, allocations: 64.75 MB / 365.2 MB, free: 3.762 MB / 250.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002135/0.3383, allocations: 62.53 kB / 365.3 MB, free: 3.73 MB / 250.7 MB Notification: Performance of FrontEnd: time 0.005923/0.3442, allocations: 2.42 MB / 367.7 MB, free: 1.691 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.352e-05/0.3442, allocations: 4.875 kB / 367.7 MB, free: 1.688 MB / 250.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.0004447/0.3447, allocations: 438.2 kB / 368.2 MB, free: 1.227 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.829e-05/0.3447, allocations: 12.03 kB / 368.2 MB, free: 1.215 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.87e-05/0.3448, allocations: 23.7 kB / 368.2 MB, free: 1.191 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002135/0.345, allocations: 216.4 kB / 368.4 MB, free: 0.957 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.602e-05/0.3451, allocations: 8 kB / 368.4 MB, free: 0.9492 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.088e-05/0.3451, allocations: 23.92 kB / 368.4 MB, free: 0.9258 MB / 250.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002541/0.3454, allocations: 144.1 kB / 368.6 MB, free: 0.8359 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000273/0.3456, allocations: 203 kB / 368.8 MB, free: 0.668 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.031e-05/0.3457, allocations: 0 / 368.8 MB, free: 0.668 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.94e-05/0.3457, allocations: 0 / 368.8 MB, free: 0.668 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.629e-06/0.3457, allocations: 4.562 kB / 368.8 MB, free: 0.6641 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007007/0.3464, allocations: 0.6273 MB / 369.4 MB, free: 96 kB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002409/0.3467, allocations: 143.6 kB / 369.5 MB, free: 15.98 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000109/0.3468, allocations: 66.23 kB / 369.6 MB, free: 15.93 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.835e-05/0.3468, allocations: 12.17 kB / 369.6 MB, free: 15.92 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001522/0.347, allocations: 114.2 kB / 369.7 MB, free: 15.82 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.693e-06/0.347, allocations: 3.938 kB / 369.7 MB, free: 15.82 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.0002961/0.3473, allocations: 142.9 kB / 369.9 MB, free: 15.7 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.741e-05/0.3473, allocations: 55.41 kB / 369.9 MB, free: 15.63 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001129/0.3474, allocations: 134.8 kB / 370.1 MB, free: 15.51 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.371e-05/0.3475, allocations: 29.7 kB / 370.1 MB, free: 15.47 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.912e-05/0.3476, allocations: 130.5 kB / 370.2 MB, free: 15.35 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.977e-05/0.3476, allocations: 54.19 kB / 370.3 MB, free: 15.3 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.618e-06/0.3477, allocations: 0 / 370.3 MB, free: 15.3 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000132/0.3478, allocations: 325.9 kB / 370.6 MB, free: 14.98 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.708e-05/0.3479, allocations: 53.28 kB / 370.6 MB, free: 14.95 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001358/0.348, allocations: 114.1 kB / 370.8 MB, free: 14.84 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001081/0.3482, allocations: 61.84 kB / 370.8 MB, free: 14.8 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.3482, allocations: 0 / 370.8 MB, free: 14.8 MB / 266.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003053/0.3485, allocations: 208.1 kB / 371 MB, free: 14.62 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.582e-05/0.3485, allocations: 4 kB / 371 MB, free: 14.62 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.3485, allocations: 4 kB / 371 MB, free: 14.61 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.694e-05/0.3485, allocations: 7.906 kB / 371 MB, free: 14.61 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001475/0.3487, allocations: 31.73 kB / 371.1 MB, free: 14.58 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.317e-06/0.3487, allocations: 7.984 kB / 371.1 MB, free: 14.57 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.414e-05/0.3488, allocations: 11.92 kB / 371.1 MB, free: 14.56 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.196e-05/0.3488, allocations: 15.31 kB / 371.1 MB, free: 14.55 MB / 266.7 MB 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.0001082/0.349, allocations: 131.9 kB / 371.2 MB, free: 14.41 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.077e-05/0.349, allocations: 7.906 kB / 371.2 MB, free: 14.4 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003428/0.3493, allocations: 167.5 kB / 371.4 MB, free: 14.27 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.3494, allocations: 3.906 kB / 371.4 MB, free: 14.27 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.3494, allocations: 3.984 kB / 371.4 MB, free: 14.27 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.089e-06/0.3494, allocations: 4 kB / 371.4 MB, free: 14.26 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006848/0.3501, allocations: 0.4898 MB / 371.9 MB, free: 13.8 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.3501, allocations: 4 kB / 371.9 MB, free: 13.79 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.275e-05/0.3502, allocations: 19.92 kB / 371.9 MB, free: 13.77 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.909e-06/0.3502, allocations: 0 / 371.9 MB, free: 13.77 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.483e-05/0.3502, allocations: 7.938 kB / 371.9 MB, free: 13.77 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.3502, allocations: 0 / 371.9 MB, free: 13.77 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.365e-06/0.3502, allocations: 0 / 371.9 MB, free: 13.77 MB / 266.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00029/0.3505, allocations: 248.1 kB / 372.2 MB, free: 13.54 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.396e-05/0.3506, allocations: 100.4 kB / 372.3 MB, free: 13.42 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.786e-05/0.3506, allocations: 0 / 372.3 MB, free: 13.42 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.394e-05/0.3507, allocations: 4 kB / 372.3 MB, free: 13.42 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.845e-05/0.3508, allocations: 27.14 kB / 372.3 MB, free: 13.39 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.338e-05/0.3508, allocations: 4 kB / 372.3 MB, free: 13.39 MB / 266.7 MB Notification: Performance of sort global known variables: time 5.699e-05/0.3509, allocations: 94.09 kB / 372.4 MB, free: 13.3 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002767/0.3512, allocations: 39.98 kB / 372.4 MB, free: 13.27 MB / 266.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.0001693/0.3514, allocations: 106.6 kB / 372.5 MB, free: 13.15 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002622/0.3516, allocations: 160 kB / 372.7 MB, free: 13.04 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.3516, allocations: 0 / 372.7 MB, free: 13.04 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001173/0.3518, allocations: 80 kB / 372.8 MB, free: 12.98 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002203/0.352, allocations: 24.27 kB / 372.8 MB, free: 12.96 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004915/0.3525, allocations: 211.8 kB / 373 MB, free: 12.75 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005016/0.353, allocations: 0.7591 MB / 373.8 MB, free: 11.97 MB / 266.7 MB Notification: Performance of SimCode: time 2.3e-07/0.353, allocations: 0 / 373.8 MB, free: 11.97 MB / 266.7 MB Notification: Performance of Templates: time 0.004856/0.3579, allocations: 1.873 MB / 375.6 MB, free: 10.11 MB / 266.7 MB make -j1 -f Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample.makefile (rm -f Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1)