Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Blocks.Examples.RealNetwork1.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.Blocks.Examples.RealNetwork1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Blocks.Examples.RealNetwork1") translateModel(Modelica.Blocks.Examples.RealNetwork1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Blocks.Examples.RealNetwork1") [: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.00364/0.00364, allocations: 179.6 kB / 7.454 MB, free: 2.508 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.349/1.349, allocations: 170.6 MB / 178.4 MB, free: 15.46 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.001827/0.001827, allocations: 119.8 kB / 217.7 MB, free: 8.211 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 7.394e-06/7.625e-06, allocations: 0 / 261.7 MB, free: 26.66 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09126/0.09129, allocations: 38.77 MB / 300.5 MB, free: 3.906 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2448/0.3361, allocations: 66.5 MB / 367 MB, free: 1.984 MB / 250.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002072/0.3364, allocations: 62.97 kB / 367.1 MB, free: 1.953 MB / 250.7 MB Notification: Performance of FrontEnd: time 0.009244/0.3457, allocations: 2.356 MB / 369.4 MB, free: 15.98 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.274e-05/0.3457, allocations: 8 kB / 369.4 MB, free: 15.97 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.0009554/0.3467, allocations: 480.1 kB / 369.9 MB, free: 15.46 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.877e-05/0.3468, allocations: 12.03 kB / 369.9 MB, free: 15.45 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.465e-05/0.3469, allocations: 23.66 kB / 369.9 MB, free: 15.43 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004003/0.3473, allocations: 233.8 kB / 370.2 MB, free: 15.17 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.43e-05/0.3473, allocations: 4 kB / 370.2 MB, free: 15.16 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.06e-05/0.3474, allocations: 12 kB / 370.2 MB, free: 15.15 MB / 266.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003479/0.3477, allocations: 113.3 kB / 370.3 MB, free: 15.07 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003661/0.3481, allocations: 156 kB / 370.4 MB, free: 14.93 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.562e-05/0.3481, allocations: 0 / 370.4 MB, free: 14.93 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.094e-05/0.3482, allocations: 0 / 370.4 MB, free: 14.93 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.842e-05/0.3482, allocations: 19.92 kB / 370.5 MB, free: 14.91 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001575/0.3498, allocations: 0.7501 MB / 371.2 MB, free: 14.18 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003356/0.3502, allocations: 133.4 kB / 371.3 MB, free: 14.06 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001569/0.3503, allocations: 64.27 kB / 371.4 MB, free: 14.01 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.277e-05/0.3504, allocations: 4 kB / 371.4 MB, free: 14 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002571/0.3507, allocations: 122 kB / 371.5 MB, free: 13.89 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.893e-06/0.3507, allocations: 0 / 371.5 MB, free: 13.89 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0005248/0.3512, allocations: 157.9 kB / 371.7 MB, free: 13.75 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.603e-05/0.3513, allocations: 85.11 kB / 371.8 MB, free: 13.65 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002682/0.3516, allocations: 166.2 kB / 371.9 MB, free: 13.5 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.889e-05/0.3517, allocations: 29.39 kB / 371.9 MB, free: 13.46 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001042/0.3518, allocations: 119.1 kB / 372.1 MB, free: 13.35 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.276e-05/0.3519, allocations: 46.3 kB / 372.1 MB, free: 13.31 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.24e-05/0.3519, allocations: 0 / 372.1 MB, free: 13.31 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000161/0.352, allocations: 329.6 kB / 372.4 MB, free: 12.99 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001348/0.3522, allocations: 52.61 kB / 372.5 MB, free: 12.95 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001897/0.3524, allocations: 110.5 kB / 372.6 MB, free: 12.84 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001863/0.3526, allocations: 67.19 kB / 372.7 MB, free: 12.8 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.065e-06/0.3526, allocations: 4.844 kB / 372.7 MB, free: 12.79 MB / 266.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004911/0.3531, allocations: 207.5 kB / 372.9 MB, free: 12.62 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.951e-05/0.3531, allocations: 4 kB / 372.9 MB, free: 12.61 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.009e-05/0.3532, allocations: 4.172 kB / 372.9 MB, free: 12.61 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.746e-05/0.3532, allocations: 3.938 kB / 372.9 MB, free: 12.61 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002744/0.3535, allocations: 35.97 kB / 372.9 MB, free: 12.57 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.888e-05/0.3535, allocations: 16.11 kB / 372.9 MB, free: 12.55 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002752/0.3538, allocations: 31.83 kB / 373 MB, free: 12.52 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.766e-05/0.3539, allocations: 11.97 kB / 373 MB, free: 12.52 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: 11 ($PRE.multiSwitch.u[1],$PRE.multiSwitch.u[2],$whenCondition2,$whenCondition1,$PRE.booleanPulse1.pulsStart,booleanPulse1.pulsStart,multiSwitch.u[1],multiSwitch.u[2],multiSwitch.firstActiveIndex,$PRE.booleanPulse2.pulsStart,booleanPulse2.pulsStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * 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.0001445/0.354, allocations: 116.9 kB / 373.1 MB, free: 12.4 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.87e-05/0.3541, allocations: 19.81 kB / 373.1 MB, free: 12.38 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005132/0.3546, allocations: 178 kB / 373.3 MB, free: 12.24 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/0.3546, allocations: 0 / 373.3 MB, free: 12.24 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.533e-06/0.3547, allocations: 0 / 373.3 MB, free: 12.24 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.933e-06/0.3547, allocations: 0 / 373.3 MB, free: 12.24 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003363/0.355, allocations: 237.7 kB / 373.5 MB, free: 12 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.355, allocations: 0 / 373.5 MB, free: 12 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000197/0.3552, allocations: 35.86 kB / 373.5 MB, free: 11.96 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.098e-06/0.3553, allocations: 0 / 373.5 MB, free: 11.96 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.405e-05/0.3553, allocations: 7.984 kB / 373.5 MB, free: 11.96 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.3553, allocations: 0 / 373.5 MB, free: 11.96 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.3553, allocations: 0 / 373.5 MB, free: 11.96 MB / 266.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004161/0.3557, allocations: 195.5 kB / 373.7 MB, free: 11.77 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001265/0.3559, allocations: 111.5 kB / 373.8 MB, free: 11.65 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.878e-05/0.356, allocations: 8 kB / 373.9 MB, free: 11.64 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002374/0.3562, allocations: 23.97 kB / 373.9 MB, free: 11.62 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.057e-05/0.3563, allocations: 23.81 kB / 373.9 MB, free: 11.59 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.382e-05/0.3563, allocations: 6.625 kB / 373.9 MB, free: 11.59 MB / 266.7 MB Notification: Performance of sort global known variables: time 0.0001528/0.3565, allocations: 132.2 kB / 374 MB, free: 11.48 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004287/0.3569, allocations: 31.98 kB / 374.1 MB, free: 11.45 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition2,$whenCondition1,booleanPulse1.pulsStart,multiSwitch.u[1],multiSwitch.u[2],multiSwitch.firstActiveIndex,booleanPulse2.pulsStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.000207/0.3572, allocations: 106.8 kB / 374.2 MB, free: 11.33 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003568/0.3575, allocations: 147.3 kB / 374.3 MB, free: 11.22 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.3575, allocations: 384 / 374.3 MB, free: 11.22 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001752/0.3577, allocations: 73.05 kB / 374.4 MB, free: 11.17 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003992/0.3581, allocations: 31.69 kB / 374.4 MB, free: 11.14 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007998/0.359, allocations: 245.5 kB / 374.7 MB, free: 10.9 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004717/0.3594, allocations: 0.7664 MB / 375.4 MB, free: 10.11 MB / 266.7 MB Notification: Performance of SimCode: time 2.164e-06/0.3595, allocations: 0 / 375.4 MB, free: 10.11 MB / 266.7 MB Notification: Performance of Templates: time 0.006458/0.3659, allocations: 2.073 MB / 377.5 MB, free: 8.051 MB / 266.7 MB make -j1 -f Modelica_3.2.1_Modelica.Blocks.Examples.RealNetwork1.makefile (rm -f Modelica_3.2.1_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_3.2.1_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_3.2.1_Modelica.Blocks.Examples.RealNetwork1.sim & ./Modelica_3.2.1_Modelica.Blocks.Examples.RealNetwork1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1)