Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample.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,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.2+maint.om/package.mo): time 0.002015/0.002015, allocations: 190.3 kB / 8.136 MB, free: 2.219 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.226/1.226, allocations: 194.2 MB / 202.8 MB, free: 9.152 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.00179/0.00179, allocations: 109.3 kB / 247.7 MB, free: 6.203 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 5.119e-06/5.219e-06, allocations: 0 / 297.6 MB, free: 8.078 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06782/0.06784, allocations: 44.5 MB / 342 MB, free: 11.46 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1731/0.2409, allocations: 70.04 MB / 412.1 MB, free: 25.09 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001617/0.2411, allocations: 60.98 kB / 412.1 MB, free: 25.07 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.006253/0.2474, allocations: 2.428 MB / 414.6 MB, free: 23.06 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.011e-05/0.2474, allocations: 4 kB / 414.6 MB, free: 23.05 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0003731/0.2478, allocations: 435.1 kB / 415 MB, free: 22.61 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.91e-05/0.2478, allocations: 8.906 kB / 415 MB, free: 22.6 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.987e-05/0.2479, allocations: 27.66 kB / 415 MB, free: 22.57 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001841/0.2481, allocations: 223.6 kB / 415.3 MB, free: 22.33 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.132e-05/0.2481, allocations: 11.06 kB / 415.3 MB, free: 22.32 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.978e-05/0.2482, allocations: 12 kB / 415.3 MB, free: 22.31 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002773/0.2484, allocations: 147.1 kB / 415.4 MB, free: 22.21 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002786/0.2487, allocations: 201.1 kB / 415.6 MB, free: 22.05 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.094e-05/0.2487, allocations: 3.938 kB / 415.6 MB, free: 22.05 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.031e-05/0.2488, allocations: 1.688 kB / 415.6 MB, free: 22.05 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.073e-06/0.2488, allocations: 8 kB / 415.6 MB, free: 22.04 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006668/0.2495, allocations: 0.6278 MB / 416.3 MB, free: 21.48 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002062/0.2497, allocations: 139.9 kB / 416.4 MB, free: 21.37 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.299e-05/0.2498, allocations: 76.5 kB / 416.5 MB, free: 21.32 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.174e-05/0.2498, allocations: 6.391 kB / 416.5 MB, free: 21.32 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001261/0.2499, allocations: 101.1 kB / 416.6 MB, free: 21.23 MB / 314.7 MB Notification: Performance of pre-optimization done (n=24): time 1.723e-06/0.25, allocations: 0 / 416.6 MB, free: 21.23 MB / 314.7 MB Notification: Performance of matching and sorting (n=24): time 0.0002382/0.2502, allocations: 142.1 kB / 416.7 MB, free: 21.11 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.803e-05/0.2502, allocations: 55.41 kB / 416.8 MB, free: 21.04 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.236e-05/0.2503, allocations: 131.3 kB / 416.9 MB, free: 20.91 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.436e-05/0.2503, allocations: 33.52 kB / 416.9 MB, free: 20.88 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.257e-05/0.2504, allocations: 123.6 kB / 417.1 MB, free: 20.76 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.496e-05/0.2504, allocations: 57.12 kB / 417.1 MB, free: 20.71 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.809e-06/0.2504, allocations: 0 / 417.1 MB, free: 20.71 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.094e-05/0.2505, allocations: 333.1 kB / 417.4 MB, free: 20.39 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.855e-05/0.2506, allocations: 55.41 kB / 417.5 MB, free: 20.35 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001058/0.2507, allocations: 115 kB / 417.6 MB, free: 20.24 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.257e-05/0.2508, allocations: 65.75 kB / 417.7 MB, free: 20.19 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.2508, allocations: 0 / 417.7 MB, free: 20.19 MB / 314.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0002745/0.2511, allocations: 209.6 kB / 417.9 MB, free: 20.02 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.286e-06/0.2511, allocations: 4 kB / 417.9 MB, free: 20.01 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.07e-06/0.2511, allocations: 0 / 417.9 MB, free: 20.01 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.301e-05/0.2511, allocations: 4 kB / 417.9 MB, free: 20.01 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001316/0.2513, allocations: 36.55 kB / 417.9 MB, free: 19.98 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.21e-06/0.2513, allocations: 4 kB / 417.9 MB, free: 19.97 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.793e-05/0.2514, allocations: 15.84 kB / 417.9 MB, free: 19.96 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.441e-05/0.2514, allocations: 15.8 kB / 418 MB, free: 19.95 MB / 314.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 6.261e-05/0.2515, allocations: 127 kB / 418.1 MB, free: 19.82 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.111e-05/0.2515, allocations: 15.81 kB / 418.1 MB, free: 19.8 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002835/0.2518, allocations: 164 kB / 418.2 MB, free: 19.68 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.357e-06/0.2518, allocations: 4 kB / 418.3 MB, free: 19.68 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.316e-06/0.2518, allocations: 0 / 418.3 MB, free: 19.68 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.2518, allocations: 0 / 418.3 MB, free: 19.68 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005396/0.2524, allocations: 0.4928 MB / 418.7 MB, free: 19.21 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.2524, allocations: 0.875 kB / 418.7 MB, free: 19.21 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.565e-05/0.2525, allocations: 25.61 kB / 418.8 MB, free: 19.19 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.092e-05/0.2525, allocations: 0 / 418.8 MB, free: 19.19 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.629e-05/0.2526, allocations: 0 / 418.8 MB, free: 19.19 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.2526, allocations: 0 / 418.8 MB, free: 19.19 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.2526, allocations: 7.984 kB / 418.8 MB, free: 19.18 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002247/0.2528, allocations: 253 kB / 419 MB, free: 18.95 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.104e-05/0.2529, allocations: 92.86 kB / 419.1 MB, free: 18.84 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.254e-05/0.2529, allocations: 4 kB / 419.1 MB, free: 18.84 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001056/0.253, allocations: 7.984 kB / 419.1 MB, free: 18.83 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.237e-05/0.2531, allocations: 19.84 kB / 419.1 MB, free: 18.81 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.368e-05/0.2531, allocations: 4 kB / 419.2 MB, free: 18.81 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.893e-05/0.2532, allocations: 106.4 kB / 419.3 MB, free: 18.71 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002859/0.2534, allocations: 28 kB / 419.3 MB, free: 18.68 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 (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.0001033/0.2536, allocations: 111.2 kB / 419.4 MB, free: 18.57 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0002305/0.2538, allocations: 166.5 kB / 419.6 MB, free: 18.45 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.342e-06/0.2538, allocations: 0 / 419.6 MB, free: 18.45 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000101/0.2539, allocations: 80.75 kB / 419.6 MB, free: 18.39 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000192/0.2541, allocations: 14.56 kB / 419.6 MB, free: 18.38 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004129/0.2545, allocations: 212.3 kB / 419.9 MB, free: 18.18 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002336/0.2548, allocations: 0.7597 MB / 420.6 MB, free: 17.39 MB / 314.7 MB Notification: Performance of SimCode: time 3.91e-07/0.2548, allocations: 0 / 420.6 MB, free: 17.39 MB / 314.7 MB Notification: Performance of Templates: time 0.004141/0.259, allocations: 1.876 MB / 422.5 MB, free: 15.58 MB / 314.7 MB make -j1 -f Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample.makefile (rm -f Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1)