Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Blocks.Examples.PID_Controller.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.PID_Controller,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Blocks.Examples.PID_Controller") translateModel(Modelica.Blocks.Examples.PID_Controller,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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/Complex 3.2.2+maint.om/package.mo): time 0.001602/0.001602, allocations: 190.4 kB / 8.137 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.215/1.215, allocations: 194.2 MB / 202.8 MB, free: 8.82 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.001788/0.001788, allocations: 117.2 kB / 247.7 MB, free: 6.195 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 7.575e-06/7.705e-06, allocations: 4 kB / 297.6 MB, free: 8.008 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0801/0.08012, allocations: 44.49 MB / 342 MB, free: 11.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1984/0.2785, allocations: 75.79 MB / 417.8 MB, free: 19.35 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001725/0.2788, allocations: 67.97 kB / 417.9 MB, free: 19.32 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.0187/0.2975, allocations: 7.164 MB / 425.1 MB, free: 13.51 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.503e-05/0.2975, allocations: 11.94 kB / 425.1 MB, free: 13.5 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.0009216/0.2985, allocations: 0.6628 MB / 425.7 MB, free: 12.82 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.212e-05/0.2985, allocations: 8.031 kB / 425.7 MB, free: 12.81 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.771e-05/0.2986, allocations: 47.44 kB / 425.8 MB, free: 12.77 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003795/0.299, allocations: 319.6 kB / 426.1 MB, free: 12.45 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.474e-05/0.299, allocations: 12 kB / 426.1 MB, free: 12.43 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.221e-05/0.2991, allocations: 27.84 kB / 426.1 MB, free: 12.41 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003866/0.2995, allocations: 228.6 kB / 426.4 MB, free: 12.27 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004078/0.2999, allocations: 296 kB / 426.7 MB, free: 12.03 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.9e-05/0.2999, allocations: 0 / 426.7 MB, free: 12.03 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.846e-05/0.2999, allocations: 0 / 426.7 MB, free: 12.03 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.277e-06/0.3, allocations: 11.38 kB / 426.7 MB, free: 12.02 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001552/0.3015, allocations: 1.193 MB / 427.9 MB, free: 10.97 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003652/0.3019, allocations: 184.5 kB / 428 MB, free: 10.84 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001388/0.302, allocations: 96.92 kB / 428.1 MB, free: 10.78 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.786e-05/0.3021, allocations: 11.98 kB / 428.1 MB, free: 10.77 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.255e-05/0.3021, allocations: 34.31 kB / 428.2 MB, free: 10.73 MB / 314.7 MB Notification: Performance of pre-optimization done (n=29): time 2.124e-06/0.3021, allocations: 0 / 428.2 MB, free: 10.73 MB / 314.7 MB Notification: Performance of matching and sorting (n=31): time 0.001181/0.3033, allocations: 0.9073 MB / 429.1 MB, free: 9.863 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.37e-05/0.3033, allocations: 90.61 kB / 429.2 MB, free: 9.762 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002077/0.3035, allocations: 247 kB / 429.4 MB, free: 9.562 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.039e-05/0.3036, allocations: 29.02 kB / 429.4 MB, free: 9.531 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.551e-05/0.3036, allocations: 186 kB / 429.6 MB, free: 9.359 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.24e-05/0.3037, allocations: 104.7 kB / 429.7 MB, free: 9.27 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.522e-05/0.3037, allocations: 0 / 429.7 MB, free: 9.27 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.452e-05/0.3038, allocations: 349.4 kB / 430.1 MB, free: 8.934 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001465/0.3039, allocations: 100.5 kB / 430.2 MB, free: 8.871 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001693/0.3041, allocations: 162.7 kB / 430.3 MB, free: 8.742 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001581/0.3043, allocations: 103.3 kB / 430.4 MB, free: 8.68 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.222e-06/0.3043, allocations: 0 / 430.4 MB, free: 8.68 MB / 314.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0004187/0.3047, allocations: 323.8 kB / 430.7 MB, free: 8.43 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.119e-05/0.3048, allocations: 450.2 kB / 431.2 MB, free: 7.965 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.3048, allocations: 0 / 431.2 MB, free: 7.965 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.442e-05/0.3048, allocations: 7.984 kB / 431.2 MB, free: 7.957 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009263/0.3057, allocations: 270.7 kB / 431.5 MB, free: 7.695 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005224/0.3063, allocations: 0.6893 MB / 432.1 MB, free: 6.996 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003503/0.3066, allocations: 52.08 kB / 432.2 MB, free: 6.945 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.165e-05/0.3067, allocations: 11.44 kB / 432.2 MB, free: 6.938 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.914e-06/0.3067, allocations: 4 kB / 432.2 MB, free: 6.934 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003672/0.3071, allocations: 251.1 kB / 432.5 MB, free: 6.758 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.336e-06/0.3071, allocations: 4 kB / 432.5 MB, free: 6.754 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.031e-06/0.3071, allocations: 0 / 432.5 MB, free: 6.754 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004897/0.3076, allocations: 127.3 kB / 432.6 MB, free: 6.633 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.751e-06/0.3076, allocations: 7.906 kB / 432.6 MB, free: 6.625 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002854/0.3079, allocations: 43.97 kB / 432.6 MB, free: 6.582 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.214e-05/0.3079, allocations: 11.88 kB / 432.6 MB, free: 6.574 MB / 314.7 MB Warning: Iteration variables with default zero start attribute in equation system w/o analytic Jacobian: PI.addSat.u2:VARIABLE() "Connector of Real input signal 2" type: Real 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 (46): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001142/0.308, allocations: 118.9 kB / 432.8 MB, free: 6.453 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.887e-05/0.3081, allocations: 35.56 kB / 432.8 MB, free: 6.418 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.151e-05/0.3082, allocations: 35.86 kB / 432.8 MB, free: 6.398 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.466e-06/0.3082, allocations: 3.906 kB / 432.8 MB, free: 6.395 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.3082, allocations: 4 kB / 432.8 MB, free: 6.391 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.3082, allocations: 3.984 kB / 432.8 MB, free: 6.387 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008388/0.3091, allocations: 0.7086 MB / 433.6 MB, free: 5.773 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.3091, allocations: 4 kB / 433.6 MB, free: 5.77 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004461/0.3095, allocations: 94.94 kB / 433.7 MB, free: 5.68 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.06e-06/0.3096, allocations: 4 kB / 433.7 MB, free: 5.676 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.482e-05/0.3096, allocations: 11.98 kB / 433.7 MB, free: 5.664 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.016e-06/0.3096, allocations: 3.938 kB / 433.7 MB, free: 5.66 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.3096, allocations: 7.906 kB / 433.7 MB, free: 5.652 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005235/0.3101, allocations: 0.5218 MB / 434.2 MB, free: 5.195 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001099/0.3103, allocations: 135.2 kB / 434.3 MB, free: 5.059 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.726e-05/0.3103, allocations: 4 kB / 434.3 MB, free: 5.055 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003247/0.3106, allocations: 45.08 kB / 434.4 MB, free: 5.012 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.927e-05/0.3107, allocations: 31.22 kB / 434.4 MB, free: 4.984 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.749e-05/0.3108, allocations: 7.438 kB / 434.4 MB, free: 4.98 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.0001453/0.3109, allocations: 196.4 kB / 434.6 MB, free: 4.828 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004683/0.3114, allocations: 119.9 kB / 434.7 MB, free: 4.711 MB / 314.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 (31): * Single equations (assignments): 31 * 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.0001166/0.3115, allocations: 108.4 kB / 434.8 MB, free: 4.598 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001146/0.3127, allocations: 0.5887 MB / 435.4 MB, free: 4.137 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.3127, allocations: 8 kB / 435.4 MB, free: 4.129 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001625/0.3128, allocations: 120.5 kB / 435.5 MB, free: 4.047 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004482/0.3133, allocations: 71.28 kB / 435.6 MB, free: 3.996 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001541/0.3148, allocations: 0.8243 MB / 436.4 MB, free: 3.199 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003029/0.3152, allocations: 0.8549 MB / 437.3 MB, free: 2.32 MB / 314.7 MB Notification: Performance of SimCode: time 2.81e-07/0.3152, allocations: 0 / 437.3 MB, free: 2.32 MB / 314.7 MB Notification: Performance of Templates: time 0.009553/0.3247, allocations: 5.398 MB / 442.7 MB, free: 13 MB / 330.7 MB make -j1 -f Modelica_3.2.2_Modelica.Blocks.Examples.PID_Controller.makefile (rm -f Modelica_3.2.2_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_3.2.2_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_3.2.2_Modelica.Blocks.Examples.PID_Controller.sim & ./Modelica_3.2.2_Modelica.Blocks.Examples.PID_Controller -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1)