Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Blocks.Examples.PID_Controller.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo", uses=false) Using package ModelicaServices with version 1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo) Using package Modelica with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.PID_Controller,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Blocks.Examples.PID_Controller") translateModel(Modelica.Blocks.Examples.PID_Controller,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Blocks.Examples.PID_Controller") [: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/Modelica 3.1.0+maint.om/package.mo): time 0.6984/0.6984, allocations: 110.8 MB / 118 MB, free: 14.54 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.002025/0.002025, allocations: 156 kB / 143.7 MB, free: 4.871 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 9.157e-06/9.287e-06, allocations: 0 / 173.4 MB, free: 23.04 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05978/0.05981, allocations: 25.17 MB / 198.6 MB, free: 13.94 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1603/0.2202, allocations: 37.27 MB / 235.9 MB, free: 4.438 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002084/0.2204, allocations: 60.44 kB / 235.9 MB, free: 4.438 MB / 170.7 MB Notification: Performance of FrontEnd: time 0.0209/0.2414, allocations: 7.555 MB / 243.5 MB, free: 3.062 MB / 170.7 MB Notification: Performance of Transformations before backend: time 3.235e-05/0.2414, allocations: 7.844 kB / 243.5 MB, free: 3.062 MB / 170.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001144/0.2426, allocations: 0.6562 MB / 244.2 MB, free: 2.543 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.103e-05/0.2426, allocations: 7.781 kB / 244.2 MB, free: 2.543 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001665/0.2428, allocations: 46.62 kB / 244.2 MB, free: 2.52 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006602/0.2435, allocations: 343.4 kB / 244.6 MB, free: 2.25 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.95e-05/0.2436, allocations: 41.64 kB / 244.6 MB, free: 2.219 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.416e-05/0.2436, allocations: 19.06 kB / 244.6 MB, free: 2.219 MB / 170.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004258/0.2441, allocations: 226.6 kB / 244.8 MB, free: 2.199 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004485/0.2445, allocations: 298.5 kB / 245.1 MB, free: 2.082 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.997e-05/0.2446, allocations: 0 / 245.1 MB, free: 2.082 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.851e-05/0.2446, allocations: 3.969 kB / 245.1 MB, free: 2.082 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.678e-06/0.2446, allocations: 7.781 kB / 245.1 MB, free: 2.082 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001776/0.2464, allocations: 1.169 MB / 246.3 MB, free: 1.34 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003831/0.2468, allocations: 161.4 kB / 246.5 MB, free: 1.312 MB / 170.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001309/0.2469, allocations: 93.53 kB / 246.6 MB, free: 1.301 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.319e-05/0.247, allocations: 3.938 kB / 246.6 MB, free: 1.301 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.794e-05/0.247, allocations: 34.5 kB / 246.6 MB, free: 1.258 MB / 170.7 MB Notification: Performance of pre-optimization done (n=26): time 1.673e-06/0.247, allocations: 0 / 246.6 MB, free: 1.258 MB / 170.7 MB Notification: Performance of matching and sorting (n=28): time 0.001259/0.2483, allocations: 0.8647 MB / 247.5 MB, free: 0.6914 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.375e-05/0.2483, allocations: 110.5 kB / 247.6 MB, free: 0.5625 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002434/0.2486, allocations: 248.4 kB / 247.8 MB, free: 452 kB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 2.687e-05/0.2486, allocations: 25.7 kB / 247.8 MB, free: 420 kB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.92e-05/0.2487, allocations: 180.2 kB / 248 MB, free: 268 kB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.28e-05/0.2487, allocations: 95.5 kB / 248.1 MB, free: 196 kB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.542e-05/0.2488, allocations: 7.875 kB / 248.1 MB, free: 192 kB / 170.7 MB Notification: Performance of setup shared object (initialization): time 0.0001134/0.2489, allocations: 337.7 kB / 248.4 MB, free: 15.87 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001432/0.249, allocations: 95.58 kB / 248.5 MB, free: 15.86 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001827/0.2492, allocations: 163.9 kB / 248.7 MB, free: 15.79 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00016/0.2494, allocations: 109.1 kB / 248.8 MB, free: 15.77 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.2494, allocations: 0 / 248.8 MB, free: 15.77 MB / 186.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0004269/0.2498, allocations: 305.2 kB / 249.1 MB, free: 15.69 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.42e-05/0.2498, allocations: 3.875 kB / 249.1 MB, free: 15.69 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.785e-06/0.2499, allocations: 0 / 249.1 MB, free: 15.69 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.565e-05/0.2499, allocations: 7.844 kB / 249.1 MB, free: 15.68 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006112/0.2505, allocations: 161.1 kB / 249.3 MB, free: 15.64 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.038e-05/0.2505, allocations: 2.5 kB / 249.3 MB, free: 15.64 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003109/0.2508, allocations: 46.91 kB / 249.3 MB, free: 15.62 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.671e-05/0.2509, allocations: 12.59 kB / 249.3 MB, free: 15.62 MB / 186.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 1 (kinematicPTP.noWphase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 43 * 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.0001085/0.251, allocations: 114.1 kB / 249.4 MB, free: 15.5 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.398e-05/0.2511, allocations: 35.25 kB / 249.5 MB, free: 15.48 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.685e-05/0.2512, allocations: 37.2 kB / 249.5 MB, free: 15.48 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.679e-06/0.2512, allocations: 3.719 kB / 249.5 MB, free: 15.48 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.65e-06/0.2512, allocations: 0 / 249.5 MB, free: 15.48 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.923e-06/0.2512, allocations: 3.984 kB / 249.5 MB, free: 15.47 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001263/0.2525, allocations: 0.6926 MB / 250.2 MB, free: 15.06 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.327e-06/0.2525, allocations: 0 / 250.2 MB, free: 15.06 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006388/0.2531, allocations: 103.6 kB / 250.3 MB, free: 15.04 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.867e-06/0.2531, allocations: 7.75 kB / 250.3 MB, free: 15.03 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.216e-05/0.2532, allocations: 3.906 kB / 250.3 MB, free: 15.03 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.938e-06/0.2532, allocations: 3.875 kB / 250.3 MB, free: 15.03 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.939e-06/0.2532, allocations: 3.938 kB / 250.3 MB, free: 15.02 MB / 186.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006046/0.2538, allocations: 0.505 MB / 250.8 MB, free: 14.75 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.154e-05/0.2539, allocations: 108.1 kB / 250.9 MB, free: 14.64 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.322e-05/0.254, allocations: 0 / 250.9 MB, free: 14.64 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000388/0.2544, allocations: 65.97 kB / 251 MB, free: 14.62 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.594e-05/0.2545, allocations: 27.23 kB / 251 MB, free: 14.6 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.368e-05/0.2545, allocations: 15.45 kB / 251 MB, free: 14.59 MB / 186.7 MB Notification: Performance of sort global known variables: time 0.0001954/0.2547, allocations: 192.4 kB / 251.2 MB, free: 14.5 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0003808/0.2551, allocations: 62.84 kB / 251.3 MB, free: 14.5 MB / 186.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (PI.I.y,inertia1.phi,spring.phi_rel,spring.w_rel,inertia2.w,integrator.y) * Number of discrete variables: 1 (kinematicPTP.noWphase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 28 * 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 Backend phase and start with SimCode phase: time 0.0001552/0.2552, allocations: 106.8 kB / 251.4 MB, free: 14.41 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.0004195/0.2557, allocations: 231.9 kB / 251.6 MB, free: 14.39 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.2557, allocations: 0 / 251.6 MB, free: 14.39 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001834/0.2559, allocations: 109.4 kB / 251.7 MB, free: 14.38 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005298/0.2564, allocations: 61.19 kB / 251.8 MB, free: 14.36 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002134/0.2585, allocations: 0.8808 MB / 252.7 MB, free: 13.85 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005948/0.2592, allocations: 0.8377 MB / 253.5 MB, free: 13.08 MB / 186.7 MB Notification: Performance of SimCode: time 2.7e-07/0.2592, allocations: 5.281 kB / 253.5 MB, free: 13.07 MB / 186.7 MB Notification: Performance of Templates: time 0.01021/0.2694, allocations: 4.008 MB / 257.5 MB, free: 11.09 MB / 186.7 MB make -j1 -f Modelica_3.1_Modelica.Blocks.Examples.PID_Controller.makefile (rm -f Modelica_3.1_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_3.1_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_3.1_Modelica.Blocks.Examples.PID_Controller.sim & ./Modelica_3.1_Modelica.Blocks.Examples.PID_Controller -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1)