Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Blocks.Examples.RealNetwork1.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.Blocks.Examples.RealNetwork1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Blocks.Examples.RealNetwork1") translateModel(Modelica.Blocks.Examples.RealNetwork1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.2+maint.om/package.mo): time 0.001779/0.001779, allocations: 187.7 kB / 8.134 MB, free: 2.215 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.107/1.107, allocations: 194.2 MB / 202.8 MB, free: 8.754 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.001677/0.001677, allocations: 115.5 kB / 247.7 MB, free: 6.301 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 6.842e-06/6.963e-06, allocations: 0 / 297.6 MB, free: 8.016 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08009/0.08011, allocations: 44.49 MB / 342 MB, free: 11.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2085/0.2886, allocations: 71.8 MB / 413.8 MB, free: 23.32 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001527/0.2888, allocations: 66.72 kB / 413.9 MB, free: 23.29 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.006935/0.2958, allocations: 2.345 MB / 416.2 MB, free: 21.35 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.346e-05/0.2958, allocations: 4 kB / 416.3 MB, free: 21.35 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.0005317/0.2964, allocations: 479.3 kB / 416.7 MB, free: 20.85 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.377e-05/0.2964, allocations: 12.03 kB / 416.7 MB, free: 20.84 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.116e-05/0.2965, allocations: 24.45 kB / 416.8 MB, free: 20.81 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002119/0.2967, allocations: 235.4 kB / 417 MB, free: 20.55 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.715e-05/0.2967, allocations: 5.5 kB / 417 MB, free: 20.55 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.446e-05/0.2967, allocations: 8 kB / 417 MB, free: 20.54 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002014/0.2969, allocations: 114.9 kB / 417.1 MB, free: 20.46 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000207/0.2972, allocations: 162.5 kB / 417.3 MB, free: 20.32 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.077e-06/0.2972, allocations: 0 / 417.3 MB, free: 20.32 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.765e-05/0.2972, allocations: 0 / 417.3 MB, free: 20.32 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.738e-05/0.2972, allocations: 9.312 kB / 417.3 MB, free: 20.31 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008086/0.298, allocations: 0.7495 MB / 418 MB, free: 19.58 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001793/0.2982, allocations: 141.2 kB / 418.2 MB, free: 19.45 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.927e-05/0.2983, allocations: 59.56 kB / 418.2 MB, free: 19.4 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.225e-05/0.2984, allocations: 13.78 kB / 418.2 MB, free: 19.39 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001262/0.2985, allocations: 130.6 kB / 418.4 MB, free: 19.27 MB / 314.7 MB Notification: Performance of pre-optimization done (n=15): time 2.024e-06/0.2985, allocations: 112 / 418.4 MB, free: 19.27 MB / 314.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002689/0.2988, allocations: 149.2 kB / 418.5 MB, free: 19.14 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.444e-05/0.2988, allocations: 85.09 kB / 418.6 MB, free: 19.04 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001083/0.2989, allocations: 164.6 kB / 418.8 MB, free: 18.89 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.849e-05/0.299, allocations: 33.58 kB / 418.8 MB, free: 18.86 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.193e-05/0.299, allocations: 122.4 kB / 418.9 MB, free: 18.74 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.652e-05/0.299, allocations: 46.69 kB / 419 MB, free: 18.7 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.357e-06/0.2991, allocations: 0 / 419 MB, free: 18.7 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.347e-05/0.2991, allocations: 333.7 kB / 419.3 MB, free: 18.38 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.707e-05/0.2992, allocations: 62.22 kB / 419.3 MB, free: 18.34 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.99e-05/0.2993, allocations: 102.9 kB / 419.4 MB, free: 18.23 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001025/0.2994, allocations: 71.25 kB / 419.5 MB, free: 18.18 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.2994, allocations: 0 / 419.5 MB, free: 18.18 MB / 314.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002613/0.2997, allocations: 199.6 kB / 419.7 MB, free: 18.02 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.679e-06/0.2997, allocations: 8 kB / 419.7 MB, free: 18.01 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.2997, allocations: 0 / 419.7 MB, free: 18.01 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.277e-05/0.2997, allocations: 4 kB / 419.7 MB, free: 18 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001775/0.2999, allocations: 47.16 kB / 419.8 MB, free: 17.96 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.142e-06/0.2999, allocations: 4 kB / 419.8 MB, free: 17.96 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001642/0.3001, allocations: 31.83 kB / 419.8 MB, free: 17.93 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.178e-05/0.3001, allocations: 11.19 kB / 419.8 MB, free: 17.92 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: 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 6.197e-05/0.3002, allocations: 112.7 kB / 419.9 MB, free: 17.8 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.47e-05/0.3002, allocations: 23.7 kB / 419.9 MB, free: 17.78 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002833/0.3005, allocations: 179.7 kB / 420.1 MB, free: 17.64 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-06/0.3005, allocations: 4 kB / 420.1 MB, free: 17.64 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.3005, allocations: 0 / 420.1 MB, free: 17.64 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.3005, allocations: 1.078 kB / 420.1 MB, free: 17.64 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001659/0.3007, allocations: 241.2 kB / 420.4 MB, free: 17.39 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.3007, allocations: 0 / 420.4 MB, free: 17.39 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000126/0.3008, allocations: 23.11 kB / 420.4 MB, free: 17.37 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.596e-06/0.3009, allocations: 4 kB / 420.4 MB, free: 17.37 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.394e-05/0.3009, allocations: 0 / 420.4 MB, free: 17.37 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.3009, allocations: 0 / 420.4 MB, free: 17.37 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.3009, allocations: 7.938 kB / 420.4 MB, free: 17.36 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002274/0.3011, allocations: 204.2 kB / 420.6 MB, free: 17.16 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.981e-05/0.3012, allocations: 96.86 kB / 420.7 MB, free: 17.05 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.142e-05/0.3012, allocations: 3.688 kB / 420.7 MB, free: 17.05 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001535/0.3014, allocations: 27.97 kB / 420.7 MB, free: 17.02 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.124e-05/0.3014, allocations: 19.52 kB / 420.7 MB, free: 17.01 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.321e-05/0.3014, allocations: 7.984 kB / 420.7 MB, free: 17 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.658e-05/0.3015, allocations: 132.1 kB / 420.9 MB, free: 16.89 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002401/0.3018, allocations: 28 kB / 420.9 MB, free: 16.86 MB / 314.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.0001247/0.3019, allocations: 102.7 kB / 421 MB, free: 16.76 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0002078/0.3021, allocations: 142.1 kB / 421.1 MB, free: 16.65 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.734e-06/0.3021, allocations: 4 kB / 421.1 MB, free: 16.65 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001338/0.3023, allocations: 73.05 kB / 421.2 MB, free: 16.6 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000262/0.3025, allocations: 35.2 kB / 421.2 MB, free: 16.57 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004717/0.303, allocations: 249 kB / 421.5 MB, free: 16.32 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000187/0.3032, allocations: 0.7612 MB / 422.3 MB, free: 15.54 MB / 314.7 MB Notification: Performance of SimCode: time 2.5e-07/0.3032, allocations: 0 / 422.3 MB, free: 15.54 MB / 314.7 MB Notification: Performance of Templates: time 0.004224/0.3075, allocations: 2.06 MB / 424.3 MB, free: 13.54 MB / 314.7 MB make -j1 -f Modelica_3.2.2_Modelica.Blocks.Examples.RealNetwork1.makefile (rm -f Modelica_3.2.2_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_3.2.2_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_3.2.2_Modelica.Blocks.Examples.RealNetwork1.sim & ./Modelica_3.2.2_Modelica.Blocks.Examples.RealNetwork1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1)