Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Blocks.Examples.PID_Controller.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.PID_Controller,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Blocks.Examples.PID_Controller") translateModel(Modelica.Blocks.Examples.PID_Controller,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Blocks.Examples.PID_Controller") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.0009583/0.0009584, allocations: 164.4 kB / 7.635 MB, free: 1.418 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.218/1.218, allocations: 170.7 MB / 178.7 MB, free: 15.64 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.001533/0.001533, allocations: 107.5 kB / 218 MB, free: 8.406 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 1.447e-05/1.448e-05, allocations: 4 kB / 262.2 MB, free: 26.41 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06782/0.06785, allocations: 38.78 MB / 301 MB, free: 3.652 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2477/0.3156, allocations: 70.65 MB / 371.6 MB, free: 13.78 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001955/0.3158, allocations: 71.59 kB / 371.7 MB, free: 13.75 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02541/0.3412, allocations: 8.279 MB / 380 MB, free: 6.895 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.3413, allocations: 0 / 380 MB, free: 6.895 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.101e-05/0.3413, allocations: 8 kB / 380 MB, free: 6.887 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.001811/0.3432, allocations: 0.6521 MB / 380.6 MB, free: 6.215 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.711e-05/0.3432, allocations: 15.91 kB / 380.6 MB, free: 6.199 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002249/0.3435, allocations: 51.44 kB / 380.7 MB, free: 6.148 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001019/0.3445, allocations: 366.2 kB / 381.1 MB, free: 5.785 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.512e-05/0.3446, allocations: 42.48 kB / 381.1 MB, free: 5.738 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.725e-05/0.3447, allocations: 27.89 kB / 381.1 MB, free: 5.711 MB / 266.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006936/0.3454, allocations: 223.2 kB / 381.3 MB, free: 5.574 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007722/0.3462, allocations: 309.2 kB / 381.6 MB, free: 5.328 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.008e-05/0.3463, allocations: 4 kB / 381.6 MB, free: 5.324 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.691e-05/0.3463, allocations: 0 / 381.6 MB, free: 5.324 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.651e-05/0.3464, allocations: 8 kB / 381.7 MB, free: 5.316 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002798/0.3492, allocations: 1.101 MB / 382.8 MB, free: 4.387 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007255/0.3499, allocations: 242.9 kB / 383 MB, free: 4.215 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002355/0.3502, allocations: 97.23 kB / 383.1 MB, free: 4.152 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.557e-05/0.3502, allocations: 7.938 kB / 383.1 MB, free: 4.145 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.843e-05/0.3503, allocations: 38.88 kB / 383.1 MB, free: 4.102 MB / 266.7 MB Notification: Performance of pre-optimization done (n=29): time 6.663e-06/0.3503, allocations: 7.984 kB / 383.1 MB, free: 4.094 MB / 266.7 MB Notification: Performance of matching and sorting (n=31): time 0.00211/0.3524, allocations: 0.892 MB / 384 MB, free: 3.246 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.554e-05/0.3525, allocations: 106.8 kB / 384.1 MB, free: 3.117 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003959/0.3529, allocations: 256.9 kB / 384.4 MB, free: 2.906 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.107e-05/0.353, allocations: 29.7 kB / 384.4 MB, free: 2.871 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001934/0.3532, allocations: 219.3 kB / 384.6 MB, free: 2.699 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001198/0.3533, allocations: 106.3 kB / 384.7 MB, free: 2.609 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.163e-05/0.3533, allocations: 0 / 384.7 MB, free: 2.609 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000211/0.3536, allocations: 348.4 kB / 385.1 MB, free: 2.273 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002422/0.3538, allocations: 106 kB / 385.2 MB, free: 2.207 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003172/0.3541, allocations: 162.2 kB / 385.3 MB, free: 2.074 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002741/0.3544, allocations: 112.7 kB / 385.4 MB, free: 2 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/0.3545, allocations: 0 / 385.4 MB, free: 2 MB / 266.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007304/0.3552, allocations: 310.3 kB / 385.7 MB, free: 1.766 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.253e-05/0.3552, allocations: 8 kB / 385.8 MB, free: 1.758 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.115e-06/0.3552, allocations: 0 / 385.8 MB, free: 1.758 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.19e-05/0.3553, allocations: 4 kB / 385.8 MB, free: 1.754 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008954/0.3562, allocations: 154.9 kB / 385.9 MB, free: 1.605 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.936e-06/0.3562, allocations: 7.938 kB / 385.9 MB, free: 1.598 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003701/0.3566, allocations: 35.97 kB / 386 MB, free: 1.562 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.373e-05/0.3566, allocations: 11.44 kB / 386 MB, free: 1.555 MB / 266.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 (46): * Single equations (assignments): 46 * 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.0001114/0.3567, allocations: 116.9 kB / 386.1 MB, free: 1.434 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.8e-05/0.3568, allocations: 35.56 kB / 386.1 MB, free: 1.398 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000105/0.3569, allocations: 37.73 kB / 386.2 MB, free: 1.375 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.589e-06/0.3569, allocations: 4 kB / 386.2 MB, free: 1.371 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.086e-06/0.357, allocations: 3.984 kB / 386.2 MB, free: 1.367 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.558e-06/0.357, allocations: 0 / 386.2 MB, free: 1.367 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001019/0.358, allocations: 0.7216 MB / 386.9 MB, free: 0.7422 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.936e-06/0.358, allocations: 0 / 386.9 MB, free: 0.7422 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000462/0.3585, allocations: 103.3 kB / 387 MB, free: 0.6445 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.905e-06/0.3585, allocations: 4.125 kB / 387 MB, free: 0.6406 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.418e-05/0.3585, allocations: 8 kB / 387 MB, free: 0.6328 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.025e-06/0.3585, allocations: 0 / 387 MB, free: 0.6328 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.368e-06/0.3585, allocations: 15.94 kB / 387 MB, free: 0.6172 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006554/0.3592, allocations: 0.5298 MB / 387.5 MB, free: 156 kB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001476/0.3594, allocations: 142 kB / 387.7 MB, free: 8 kB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.94e-05/0.3594, allocations: 0 / 387.7 MB, free: 8 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000413/0.3598, allocations: 57.08 kB / 387.7 MB, free: 15.96 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.66e-05/0.3599, allocations: 23.34 kB / 387.8 MB, free: 15.94 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.279e-05/0.36, allocations: 11.98 kB / 387.8 MB, free: 15.93 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001943/0.3602, allocations: 194.1 kB / 388 MB, free: 15.77 MB / 282.7 MB Notification: Performance of sort global known variables: time 2.6e-07/0.3602, allocations: 4 kB / 388 MB, free: 15.77 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003865/0.3606, allocations: 68 kB / 388 MB, free: 15.7 MB / 282.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.0001823/0.3608, allocations: 106.5 kB / 388.1 MB, free: 15.59 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003864/0.3612, allocations: 240.2 kB / 388.4 MB, free: 15.43 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.3612, allocations: 0 / 388.4 MB, free: 15.43 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001726/0.3613, allocations: 115.2 kB / 388.5 MB, free: 15.36 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005087/0.3619, allocations: 76.97 kB / 388.6 MB, free: 15.3 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001638/0.3635, allocations: 0.8182 MB / 389.4 MB, free: 14.5 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004042/0.3639, allocations: 0.8142 MB / 390.2 MB, free: 13.66 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.000205/0.3641, allocations: 47.27 kB / 390.2 MB, free: 13.61 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.494e-05/0.3642, allocations: 27.44 kB / 390.3 MB, free: 13.59 MB / 282.7 MB Notification: Performance of SimCode: time 2.81e-07/0.3642, allocations: 0 / 390.3 MB, free: 13.59 MB / 282.7 MB Notification: Performance of Templates: time 0.007722/0.372, allocations: 3.704 MB / 394 MB, free: 9.887 MB / 282.7 MB make -j1 -f Modelica_3.2.1_Modelica.Blocks.Examples.PID_Controller.makefile (rm -f Modelica_3.2.1_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_3.2.1_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_3.2.1_Modelica.Blocks.Examples.PID_Controller.sim & ./Modelica_3.2.1_Modelica.Blocks.Examples.PID_Controller -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1)