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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001303/0.001303, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001485/0.001485, allocations: 199.1 kB / 16.54 MB, free: 6.672 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.601/1.601, allocations: 205.1 MB / 222.4 MB, free: 4.621 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.002482/0.002482, allocations: 55.92 kB / 278.7 MB, free: 12.38 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3433/0.3458, allocations: 46.63 MB / 325.3 MB, free: 1.832 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004433/0.3503, allocations: 3.117 MB / 328.4 MB, free: 15.38 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002995/0.3534, allocations: 1.01 MB / 329.4 MB, free: 14.55 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005679/0.354, allocations: 13.38 kB / 329.4 MB, free: 14.55 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005788/0.3546, allocations: 91.61 kB / 329.5 MB, free: 14.47 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003785/0.355, allocations: 103.6 kB / 329.6 MB, free: 14.38 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008916/0.3559, allocations: 233.7 kB / 329.9 MB, free: 14.19 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008322/0.3567, allocations: 0.5159 MB / 330.4 MB, free: 13.88 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000475/0.3572, allocations: 169.8 kB / 330.5 MB, free: 13.77 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003388/0.3576, allocations: 202.9 kB / 330.7 MB, free: 13.64 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003378/0.3579, allocations: 199.8 kB / 330.9 MB, free: 13.5 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001038/0.358, allocations: 40.84 kB / 331 MB, free: 13.5 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001035/0.3582, allocations: 41.31 kB / 331 MB, free: 13.5 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002212/0.3584, allocations: 107.4 kB / 331.1 MB, free: 13.41 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003012/0.3587, allocations: 212.7 kB / 331.3 MB, free: 13.25 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007601/0.3595, allocations: 496.2 kB / 331.8 MB, free: 12.88 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.298e-05/0.3595, allocations: 0 / 331.8 MB, free: 12.88 MB / 270.1 MB Notification: Performance of FrontEnd: time 3.116e-06/0.3595, allocations: 3.938 kB / 331.8 MB, free: 12.88 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.255e-05/0.3595, allocations: 0 / 331.8 MB, free: 12.88 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.001683/0.3612, allocations: 0.7637 MB / 332.6 MB, free: 12.23 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.901e-05/0.3613, allocations: 14.09 kB / 332.6 MB, free: 12.23 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001268/0.3614, allocations: 49.69 kB / 332.6 MB, free: 12.21 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005094/0.3619, allocations: 369.6 kB / 333 MB, free: 11.86 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.265e-05/0.362, allocations: 27.56 kB / 333 MB, free: 11.85 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.59e-05/0.3621, allocations: 41.62 kB / 333.1 MB, free: 11.84 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001002/0.3631, allocations: 451.2 kB / 333.5 MB, free: 11.54 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.428e-05/0.3631, allocations: 5.125 kB / 333.5 MB, free: 11.53 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.868e-05/0.3632, allocations: 12.5 kB / 333.5 MB, free: 11.52 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.571e-05/0.3632, allocations: 8.719 kB / 333.5 MB, free: 11.52 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009629/0.3642, allocations: 376.8 kB / 333.9 MB, free: 11.17 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002177/0.3664, allocations: 1.586 MB / 335.5 MB, free: 9.488 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009194/0.3673, allocations: 314.6 kB / 335.8 MB, free: 9.172 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004603/0.3678, allocations: 160.8 kB / 336 MB, free: 9.012 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.581e-05/0.3678, allocations: 7.938 kB / 336 MB, free: 9.004 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.377e-05/0.3679, allocations: 34.56 kB / 336 MB, free: 8.961 MB / 270.1 MB Notification: Performance of pre-optimization done (n=30): time 5.881e-06/0.3679, allocations: 0 / 336 MB, free: 8.961 MB / 270.1 MB Notification: Performance of matching and sorting (n=32): time 0.003384/0.3713, allocations: 1.389 MB / 337.4 MB, free: 7.48 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.345e-05/0.3714, allocations: 77.11 kB / 337.5 MB, free: 7.387 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004306/0.3718, allocations: 365.5 kB / 337.8 MB, free: 7.023 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.027e-05/0.3718, allocations: 29.7 kB / 337.8 MB, free: 6.988 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001843/0.372, allocations: 243.9 kB / 338.1 MB, free: 6.746 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.148e-05/0.3721, allocations: 122.5 kB / 338.2 MB, free: 6.625 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001286/0.3723, allocations: 78.06 kB / 338.3 MB, free: 6.543 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001672/0.3725, allocations: 354.8 kB / 338.6 MB, free: 6.188 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004797/0.3729, allocations: 166.5 kB / 338.8 MB, free: 6.02 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005595/0.3735, allocations: 248.8 kB / 339 MB, free: 5.746 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001006/0.3745, allocations: 395.9 kB / 339.4 MB, free: 5.332 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.3745, allocations: 0 / 339.4 MB, free: 5.332 MB / 270.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001223/0.3758, allocations: 0.4889 MB / 339.9 MB, free: 4.836 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.732e-05/0.3758, allocations: 4 kB / 339.9 MB, free: 4.832 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.183e-05/0.3758, allocations: 7.938 kB / 339.9 MB, free: 4.824 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.188e-05/0.3759, allocations: 4 kB / 339.9 MB, free: 4.82 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009739/0.3768, allocations: 207.9 kB / 340.1 MB, free: 4.617 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002224/0.3791, allocations: 1.568 MB / 341.7 MB, free: 2.91 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003737/0.3795, allocations: 35.98 kB / 341.7 MB, free: 2.875 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.134e-05/0.3795, allocations: 16 kB / 341.7 MB, free: 2.859 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006141/0.3801, allocations: 272.9 kB / 342 MB, free: 2.59 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005002/0.3806, allocations: 236.9 kB / 342.2 MB, free: 2.328 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008216/0.3815, allocations: 375.8 kB / 342.6 MB, free: 1.934 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.683e-06/0.3815, allocations: 0 / 342.6 MB, free: 1.934 MB / 270.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.001043/0.3825, allocations: 476.7 kB / 343.1 MB, free: 1.461 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.253e-05/0.3826, allocations: 7.938 kB / 343.1 MB, free: 1.453 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.3826, allocations: 4 kB / 343.1 MB, free: 1.449 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.216e-06/0.3826, allocations: 8 kB / 343.1 MB, free: 1.441 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000474/0.3831, allocations: 115.9 kB / 343.2 MB, free: 1.328 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.636e-06/0.3831, allocations: 12.09 kB / 343.2 MB, free: 1.316 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003032/0.3834, allocations: 35.95 kB / 343.3 MB, free: 1.281 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.493e-05/0.3834, allocations: 16 kB / 343.3 MB, free: 1.266 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.0001851/0.3836, allocations: 200.1 kB / 343.5 MB, free: 1.062 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.068e-05/0.3837, allocations: 39.53 kB / 343.5 MB, free: 1.023 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001075/0.3838, allocations: 48.23 kB / 343.6 MB, free: 0.9766 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.571e-06/0.3838, allocations: 11.94 kB / 343.6 MB, free: 0.9648 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.122e-06/0.3839, allocations: 3.984 kB / 343.6 MB, free: 0.9609 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/0.3839, allocations: 0 / 343.6 MB, free: 0.9609 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001717/0.3856, allocations: 0.9221 MB / 344.5 MB, free: 15.97 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.866e-06/0.3856, allocations: 0 / 344.5 MB, free: 15.97 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004124/0.386, allocations: 87.81 kB / 344.6 MB, free: 15.89 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.277e-06/0.386, allocations: 4 kB / 344.6 MB, free: 15.88 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.587e-05/0.3861, allocations: 8.125 kB / 344.6 MB, free: 15.88 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.398e-06/0.3861, allocations: 8 kB / 344.6 MB, free: 15.87 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.3861, allocations: 3.938 kB / 344.6 MB, free: 15.86 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001594/0.3877, allocations: 0.6705 MB / 345.3 MB, free: 15.16 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001503/0.3879, allocations: 144.7 kB / 345.4 MB, free: 15 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.02e-05/0.3879, allocations: 8 kB / 345.4 MB, free: 15 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002936/0.3882, allocations: 31.95 kB / 345.4 MB, free: 14.96 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.094e-05/0.3883, allocations: 23.97 kB / 345.5 MB, free: 14.94 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.406e-05/0.3883, allocations: 8 kB / 345.5 MB, free: 14.93 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002736/0.3886, allocations: 247.2 kB / 345.7 MB, free: 14.69 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.563e-06/0.3886, allocations: 0 / 345.7 MB, free: 14.69 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005422/0.3892, allocations: 151.9 kB / 345.9 MB, free: 14.54 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.0001612/0.3894, allocations: 107.7 kB / 346 MB, free: 14.43 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.00197/0.3913, allocations: 0.7028 MB / 346.7 MB, free: 13.73 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.676e-06/0.3913, allocations: 0 / 346.7 MB, free: 13.73 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004502/0.3918, allocations: 180.3 kB / 346.9 MB, free: 13.55 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007532/0.3926, allocations: 104.7 kB / 347 MB, free: 13.45 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001933/0.3945, allocations: 1.011 MB / 348 MB, free: 12.4 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005131/0.395, allocations: 0.8156 MB / 348.8 MB, free: 11.56 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0002472/0.3953, allocations: 67.22 kB / 348.8 MB, free: 11.5 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001064/0.3954, allocations: 35.44 kB / 348.9 MB, free: 11.46 MB / 286.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3954, allocations: 0 / 348.9 MB, free: 11.46 MB / 286.1 MB Notification: Performance of Templates: time 0.009865/0.4053, allocations: 4.667 MB / 353.6 MB, free: 6.789 MB / 286.1 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)