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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001117/0.001117, allocations: 188.5 kB / 8.353 MB, free: 0.707 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.444/1.444, allocations: 194.3 MB / 203.1 MB, free: 9.25 MB / 171.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001662/0.001662, allocations: 115.4 kB / 248.1 MB, free: 6.371 MB / 203.1 MB Notification: Performance of FrontEnd - loaded program: time 2.628e-05/2.626e-05, allocations: 8 kB / 298.1 MB, free: 8.23 MB / 251.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1196/0.1196, allocations: 44.5 MB / 342.6 MB, free: 11.63 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2705/0.3902, allocations: 75.86 MB / 418.4 MB, free: 20.04 MB / 315.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002393/0.3905, allocations: 73.91 kB / 418.5 MB, free: 20 MB / 315.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.01843/0.4089, allocations: 7.447 MB / 425.9 MB, free: 13.92 MB / 315.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.4089, allocations: 0 / 425.9 MB, free: 13.92 MB / 315.1 MB Notification: Performance of Transformations before backend: time 3.451e-05/0.409, allocations: 8.75 kB / 426 MB, free: 13.91 MB / 315.1 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.001049/0.4101, allocations: 0.6493 MB / 426.6 MB, free: 13.24 MB / 315.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.73e-05/0.4101, allocations: 12.03 kB / 426.6 MB, free: 13.23 MB / 315.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001256/0.4102, allocations: 42.8 kB / 426.7 MB, free: 13.19 MB / 315.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004605/0.4107, allocations: 323 kB / 427 MB, free: 12.86 MB / 315.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.383e-05/0.4107, allocations: 12 kB / 427 MB, free: 12.85 MB / 315.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.606e-05/0.4108, allocations: 23.25 kB / 427 MB, free: 12.83 MB / 315.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003991/0.4112, allocations: 227.4 kB / 427.2 MB, free: 12.69 MB / 315.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004412/0.4117, allocations: 294.6 kB / 427.5 MB, free: 12.46 MB / 315.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.371e-05/0.4117, allocations: 3.375 kB / 427.5 MB, free: 12.46 MB / 315.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.005e-05/0.4117, allocations: 4.172 kB / 427.5 MB, free: 12.46 MB / 315.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.907e-06/0.4117, allocations: 11.95 kB / 427.5 MB, free: 12.45 MB / 315.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001678/0.4134, allocations: 1.111 MB / 428.6 MB, free: 11.49 MB / 315.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004653/0.4139, allocations: 247.3 kB / 428.9 MB, free: 11.32 MB / 315.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001503/0.4141, allocations: 100 kB / 429 MB, free: 11.25 MB / 315.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.514e-05/0.4141, allocations: 4 kB / 429 MB, free: 11.25 MB / 315.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.6e-05/0.4142, allocations: 39.58 kB / 429 MB, free: 11.21 MB / 315.1 MB Notification: Performance of pre-optimization done (n=29): time 1.924e-06/0.4142, allocations: 0 / 429 MB, free: 11.21 MB / 315.1 MB Notification: Performance of matching and sorting (n=31): time 0.0013/0.4155, allocations: 0.9149 MB / 429.9 MB, free: 10.35 MB / 315.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.877e-05/0.4155, allocations: 82.61 kB / 430 MB, free: 10.25 MB / 315.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002245/0.4157, allocations: 246.1 kB / 430.3 MB, free: 10.05 MB / 315.1 MB Notification: Performance of collectPreVariables (initialization): time 2.097e-05/0.4158, allocations: 25.7 kB / 430.3 MB, free: 10.02 MB / 315.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001033/0.4159, allocations: 225.3 kB / 430.5 MB, free: 9.84 MB / 315.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.448e-05/0.416, allocations: 105.7 kB / 430.6 MB, free: 9.75 MB / 315.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.628e-05/0.416, allocations: 4 kB / 430.6 MB, free: 9.746 MB / 315.1 MB Notification: Performance of setup shared object (initialization): time 8.558e-05/0.4161, allocations: 342.2 kB / 430.9 MB, free: 9.414 MB / 315.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001456/0.4162, allocations: 98.92 kB / 431 MB, free: 9.355 MB / 315.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001641/0.4164, allocations: 151.6 kB / 431.2 MB, free: 9.234 MB / 315.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001645/0.4166, allocations: 114.6 kB / 431.3 MB, free: 9.16 MB / 315.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.4166, allocations: 0 / 431.3 MB, free: 9.16 MB / 315.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0004068/0.417, allocations: 317.9 kB / 431.6 MB, free: 8.918 MB / 315.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.97e-05/0.4171, allocations: 453.4 kB / 432.1 MB, free: 8.449 MB / 315.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.4171, allocations: 0 / 432.1 MB, free: 8.449 MB / 315.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.804e-05/0.4172, allocations: 7.953 kB / 432.1 MB, free: 8.441 MB / 315.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008811/0.418, allocations: 255.5 kB / 432.3 MB, free: 8.195 MB / 315.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004075/0.4185, allocations: 0.6563 MB / 433 MB, free: 7.527 MB / 315.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003222/0.4188, allocations: 39.98 kB / 433 MB, free: 7.488 MB / 315.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.071e-05/0.4188, allocations: 22.28 kB / 433 MB, free: 7.473 MB / 315.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.999e-06/0.4188, allocations: 4 kB / 433 MB, free: 7.469 MB / 315.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003412/0.4192, allocations: 248.8 kB / 433.3 MB, free: 7.293 MB / 315.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.544e-06/0.4192, allocations: 0 / 433.3 MB, free: 7.293 MB / 315.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.861e-06/0.4192, allocations: 4 kB / 433.3 MB, free: 7.289 MB / 315.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004308/0.4197, allocations: 119.8 kB / 433.4 MB, free: 7.176 MB / 315.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.308e-06/0.4197, allocations: 4 kB / 433.4 MB, free: 7.172 MB / 315.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002684/0.4199, allocations: 44.22 kB / 433.4 MB, free: 7.133 MB / 315.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.165e-05/0.42, allocations: 8 kB / 433.5 MB, free: 7.125 MB / 315.1 MB Warning: Iteration variables with default zero start attribute in equation system with 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.0001415/0.4201, allocations: 116.3 kB / 433.6 MB, free: 7.008 MB / 315.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001026/0.4202, allocations: 35.56 kB / 433.6 MB, free: 6.973 MB / 315.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.452e-05/0.4203, allocations: 36.45 kB / 433.6 MB, free: 6.949 MB / 315.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-06/0.4203, allocations: 4 kB / 433.6 MB, free: 6.945 MB / 315.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.4204, allocations: 0 / 433.6 MB, free: 6.945 MB / 315.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.961e-06/0.4204, allocations: 7.938 kB / 433.6 MB, free: 6.938 MB / 315.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000819/0.4212, allocations: 0.7142 MB / 434.4 MB, free: 6.316 MB / 315.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.4212, allocations: 0 / 434.4 MB, free: 6.316 MB / 315.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004018/0.4216, allocations: 95.75 kB / 434.5 MB, free: 6.227 MB / 315.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.32e-06/0.4216, allocations: 8.875 kB / 434.5 MB, free: 6.219 MB / 315.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.242e-05/0.4217, allocations: 7.953 kB / 434.5 MB, free: 6.211 MB / 315.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/0.4217, allocations: 1.375 kB / 434.5 MB, free: 6.211 MB / 315.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.644e-06/0.4217, allocations: 3.938 kB / 434.5 MB, free: 6.207 MB / 315.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005053/0.4222, allocations: 0.5264 MB / 435 MB, free: 5.746 MB / 315.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001055/0.4223, allocations: 125.7 kB / 435.1 MB, free: 5.617 MB / 315.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.008e-05/0.4224, allocations: 4 kB / 435.1 MB, free: 5.613 MB / 315.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002927/0.4227, allocations: 43.95 kB / 435.2 MB, free: 5.57 MB / 315.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.047e-05/0.4227, allocations: 27.42 kB / 435.2 MB, free: 5.547 MB / 315.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.662e-05/0.4228, allocations: 15.19 kB / 435.2 MB, free: 5.535 MB / 315.1 MB Notification: Performance of sorting global known variables: time 0.0001624/0.4229, allocations: 204 kB / 435.4 MB, free: 5.375 MB / 315.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4229, allocations: 0 / 435.4 MB, free: 5.375 MB / 315.1 MB Notification: Performance of remove unused functions: time 0.0004945/0.4234, allocations: 115.9 kB / 435.5 MB, free: 5.262 MB / 315.1 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.0001455/0.4236, allocations: 104 kB / 435.6 MB, free: 5.152 MB / 315.1 MB Notification: Performance of simCode: created initialization part: time 0.0009867/0.4246, allocations: 0.5086 MB / 436.1 MB, free: 4.77 MB / 315.1 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.4246, allocations: 0 / 436.1 MB, free: 4.77 MB / 315.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001669/0.4248, allocations: 115.7 kB / 436.3 MB, free: 4.691 MB / 315.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004951/0.4253, allocations: 78.31 kB / 436.3 MB, free: 4.641 MB / 315.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001565/0.4269, allocations: 0.8153 MB / 437.1 MB, free: 3.852 MB / 315.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002397/0.4271, allocations: 0.8224 MB / 438 MB, free: 3.004 MB / 315.1 MB Notification: Performance of simCode: alias equations: time 0.000326/0.4274, allocations: 65.17 kB / 438 MB, free: 2.945 MB / 315.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.184e-05/0.4275, allocations: 31.44 kB / 438.1 MB, free: 2.914 MB / 315.1 MB Notification: Performance of SimCode: time 4.31e-07/0.4275, allocations: 0.6562 kB / 438.1 MB, free: 2.914 MB / 315.1 MB Notification: Performance of Templates: time 0.007582/0.4351, allocations: 4.016 MB / 442.1 MB, free: 14.97 MB / 331.1 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)