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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001194/0.001194, allocations: 103.4 kB / 15.33 MB, free: 0.5078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001198/0.001198, allocations: 192.8 kB / 16.25 MB, free: 6.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.591/1.591, allocations: 205.1 MB / 222.1 MB, free: 4.715 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001514/0.001514, allocations: 51.92 kB / 278.2 MB, free: 12.67 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3302/0.3317, allocations: 46.63 MB / 324.8 MB, free: 1.941 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004879/0.3367, allocations: 3.155 MB / 328 MB, free: 15.46 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003101/0.3398, allocations: 0.9903 MB / 329 MB, free: 14.66 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003206/0.3401, allocations: 18.03 kB / 329 MB, free: 14.65 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004185/0.3406, allocations: 67.92 kB / 329.1 MB, free: 14.6 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002513/0.3409, allocations: 86.7 kB / 329.1 MB, free: 14.52 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005641/0.3415, allocations: 203.7 kB / 329.3 MB, free: 14.37 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000624/0.3421, allocations: 0.5252 MB / 329.9 MB, free: 14.04 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003393/0.3424, allocations: 172.2 kB / 330 MB, free: 13.94 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002414/0.3427, allocations: 199.2 kB / 330.2 MB, free: 13.81 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002458/0.343, allocations: 200.8 kB / 330.4 MB, free: 13.67 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.779e-05/0.343, allocations: 45.45 kB / 330.5 MB, free: 13.66 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.008e-05/0.3431, allocations: 41.09 kB / 330.5 MB, free: 13.66 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001536/0.3433, allocations: 108.5 kB / 330.6 MB, free: 13.57 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002483/0.3435, allocations: 213 kB / 330.8 MB, free: 13.42 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005961/0.3441, allocations: 498.7 kB / 331.3 MB, free: 13.04 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.762e-06/0.3442, allocations: 0 / 331.3 MB, free: 13.04 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.736e-06/0.3442, allocations: 1.156 kB / 331.3 MB, free: 13.04 MB / 270.1 MB Notification: Performance of Transformations before backend: time 9.207e-06/0.3442, allocations: 0 / 331.3 MB, free: 13.04 MB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.001365/0.3456, allocations: 0.7672 MB / 332.1 MB, free: 12.39 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.404e-05/0.3456, allocations: 9.219 kB / 332.1 MB, free: 12.39 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001028/0.3457, allocations: 54.44 kB / 332.1 MB, free: 12.37 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005386/0.3463, allocations: 357.7 kB / 332.5 MB, free: 12.04 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.714e-05/0.3463, allocations: 28.62 kB / 332.5 MB, free: 12.02 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.683e-05/0.3464, allocations: 39.91 kB / 332.6 MB, free: 12.01 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009477/0.3473, allocations: 452.3 kB / 333 MB, free: 11.71 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.376e-05/0.3474, allocations: 1.312 kB / 333 MB, free: 11.71 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.221e-05/0.3474, allocations: 15.28 kB / 333 MB, free: 11.7 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.624e-05/0.3474, allocations: 16.75 kB / 333 MB, free: 11.69 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009469/0.3484, allocations: 375 kB / 333.4 MB, free: 11.4 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002215/0.3506, allocations: 1.59 MB / 335 MB, free: 9.715 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008106/0.3515, allocations: 310.7 kB / 335.3 MB, free: 9.402 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004116/0.3519, allocations: 160.8 kB / 335.5 MB, free: 9.242 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.462e-05/0.3519, allocations: 11.88 kB / 335.5 MB, free: 9.23 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.05e-05/0.352, allocations: 38.5 kB / 335.5 MB, free: 9.184 MB / 270.1 MB Notification: Performance of pre-optimization done (n=30): time 1.382e-06/0.352, allocations: 0 / 335.5 MB, free: 9.184 MB / 270.1 MB Notification: Performance of matching and sorting (n=32): time 0.003251/0.3552, allocations: 1.38 MB / 336.9 MB, free: 7.711 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.036e-05/0.3553, allocations: 85.05 kB / 337 MB, free: 7.609 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004268/0.3558, allocations: 369.5 kB / 337.3 MB, free: 7.238 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 4.136e-05/0.3558, allocations: 29.7 kB / 337.4 MB, free: 7.203 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001961/0.356, allocations: 244 kB / 337.6 MB, free: 6.961 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.374e-05/0.3561, allocations: 114.3 kB / 337.7 MB, free: 6.848 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001236/0.3562, allocations: 78.12 kB / 337.8 MB, free: 6.766 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001751/0.3564, allocations: 354.7 kB / 338.1 MB, free: 6.41 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004456/0.3569, allocations: 174.5 kB / 338.3 MB, free: 6.234 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004737/0.3574, allocations: 248.8 kB / 338.5 MB, free: 5.961 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008409/0.3582, allocations: 387.4 kB / 338.9 MB, free: 5.555 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.3582, allocations: 0 / 338.9 MB, free: 5.555 MB / 270.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001023/0.3593, allocations: 0.4894 MB / 339.4 MB, free: 5.059 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.992e-05/0.3593, allocations: 12.22 kB / 339.4 MB, free: 5.047 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.193e-06/0.3593, allocations: 0 / 339.4 MB, free: 5.047 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.825e-05/0.3593, allocations: 4 kB / 339.4 MB, free: 5.043 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008466/0.3602, allocations: 215.7 kB / 339.6 MB, free: 4.832 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001816/0.362, allocations: 1.564 MB / 341.2 MB, free: 3.129 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003332/0.3623, allocations: 35.95 kB / 341.2 MB, free: 3.094 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.779e-05/0.3624, allocations: 12 kB / 341.2 MB, free: 3.082 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005035/0.3629, allocations: 277 kB / 341.5 MB, free: 2.809 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004826/0.3634, allocations: 236.8 kB / 341.8 MB, free: 2.547 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007904/0.3642, allocations: 371.4 kB / 342.1 MB, free: 2.156 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.443e-06/0.3642, allocations: 0 / 342.1 MB, free: 2.156 MB / 270.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0009483/0.3652, allocations: 473 kB / 342.6 MB, free: 1.688 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.357e-05/0.3652, allocations: 8 kB / 342.6 MB, free: 1.68 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.56e-06/0.3652, allocations: 4 kB / 342.6 MB, free: 1.676 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.703e-06/0.3652, allocations: 8.203 kB / 342.6 MB, free: 1.668 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005284/0.3657, allocations: 123.8 kB / 342.7 MB, free: 1.547 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.26e-05/0.3658, allocations: 7.938 kB / 342.7 MB, free: 1.539 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00035/0.3661, allocations: 35.95 kB / 342.8 MB, free: 1.504 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.497e-05/0.3662, allocations: 16 kB / 342.8 MB, free: 1.488 MB / 270.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 3 (kinematicPTP.noWphase,integrator.local_reset,PI.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002016/0.3664, allocations: 204.2 kB / 343 MB, free: 1.281 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.776e-05/0.3664, allocations: 35.53 kB / 343 MB, free: 1.246 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.986e-05/0.3666, allocations: 52.23 kB / 343.1 MB, free: 1.195 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.414e-06/0.3666, allocations: 7.938 kB / 343.1 MB, free: 1.188 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.648e-06/0.3666, allocations: 0 / 343.1 MB, free: 1.188 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.859e-05/0.3666, allocations: 3.984 kB / 343.1 MB, free: 1.184 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001633/0.3682, allocations: 0.9181 MB / 344 MB, free: 204 kB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/0.3683, allocations: 7.938 kB / 344 MB, free: 196 kB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003951/0.3687, allocations: 84.06 kB / 344.1 MB, free: 112 kB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.949e-06/0.3687, allocations: 7.984 kB / 344.1 MB, free: 104 kB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.606e-05/0.3687, allocations: 11.94 kB / 344.1 MB, free: 92 kB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.475e-06/0.3687, allocations: 0 / 344.1 MB, free: 92 kB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.3687, allocations: 0 / 344.1 MB, free: 92 kB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001372/0.3701, allocations: 0.6745 MB / 344.8 MB, free: 15.39 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001792/0.3703, allocations: 136.6 kB / 344.9 MB, free: 15.23 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.302e-05/0.3704, allocations: 11.98 kB / 344.9 MB, free: 15.22 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002789/0.3706, allocations: 31.97 kB / 344.9 MB, free: 15.19 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.325e-05/0.3707, allocations: 19.97 kB / 345 MB, free: 15.17 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.322e-05/0.3708, allocations: 19.98 kB / 345 MB, free: 15.15 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002481/0.371, allocations: 247.1 kB / 345.2 MB, free: 14.91 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.371, allocations: 4 kB / 345.2 MB, free: 14.91 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000647/0.3717, allocations: 139.9 kB / 345.4 MB, free: 14.77 MB / 286.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001606/0.3719, allocations: 103.2 kB / 345.5 MB, free: 14.66 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.002529/0.3744, allocations: 0.7158 MB / 346.2 MB, free: 13.95 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 5.541e-06/0.3744, allocations: 0 / 346.2 MB, free: 13.95 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005861/0.375, allocations: 180.5 kB / 346.4 MB, free: 13.77 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001027/0.3761, allocations: 100.4 kB / 346.5 MB, free: 13.68 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0027/0.3788, allocations: 1.175 MB / 347.6 MB, free: 12.46 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005793/0.3794, allocations: 0.8234 MB / 348.5 MB, free: 11.61 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0003683/0.3798, allocations: 63.22 kB / 348.5 MB, free: 11.55 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001371/0.3799, allocations: 35.44 kB / 348.6 MB, free: 11.52 MB / 286.1 MB Notification: Performance of SimCode: time 8.12e-07/0.3799, allocations: 0 / 348.6 MB, free: 11.52 MB / 286.1 MB Notification: Performance of Templates: time 0.01246/0.3924, allocations: 4.507 MB / 353.1 MB, free: 7.008 MB / 286.1 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)