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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002095/0.002095, allocations: 107.3 kB / 16.92 MB, free: 6.117 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.003083/0.003082, allocations: 191.3 kB / 17.85 MB, free: 5.277 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.74/1.74, allocations: 205.1 MB / 223.7 MB, free: 12.26 MB / 190.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.001659/0.001659, allocations: 55.91 kB / 280 MB, free: 3.18 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1418/0.1434, allocations: 46.63 MB / 326.6 MB, free: 4.477 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.005987/0.1495, allocations: 3.117 MB / 329.7 MB, free: 1.332 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002562/0.1521, allocations: 1.002 MB / 330.7 MB, free: 328 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003541/0.1525, allocations: 19.88 kB / 330.8 MB, free: 308 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005015/0.153, allocations: 87.17 kB / 330.8 MB, free: 220 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003065/0.1533, allocations: 119 kB / 331 MB, free: 100 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007735/0.1541, allocations: 219.6 kB / 331.2 MB, free: 15.88 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005721/0.1547, allocations: 0.5223 MB / 331.7 MB, free: 15.36 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003316/0.1551, allocations: 161.3 kB / 331.8 MB, free: 15.19 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002314/0.1553, allocations: 199.1 kB / 332 MB, free: 15 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002574/0.1556, allocations: 207 kB / 332.2 MB, free: 14.79 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.721e-05/0.1556, allocations: 40 kB / 332.3 MB, free: 14.75 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.785e-05/0.1557, allocations: 40 kB / 332.3 MB, free: 14.71 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001472/0.1559, allocations: 107.5 kB / 332.4 MB, free: 14.61 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002364/0.1561, allocations: 218.8 kB / 332.6 MB, free: 14.39 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005621/0.1567, allocations: 486.5 kB / 333.1 MB, free: 13.92 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.012e-06/0.1567, allocations: 0 / 333.1 MB, free: 13.92 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.1567, allocations: 0 / 333.1 MB, free: 13.92 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.148e-05/0.1567, allocations: 0 / 333.1 MB, free: 13.92 MB / 286.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.00143/0.1582, allocations: 0.7755 MB / 333.9 MB, free: 13.09 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.367e-05/0.1582, allocations: 12.03 kB / 333.9 MB, free: 13.08 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001166/0.1583, allocations: 56.36 kB / 334 MB, free: 13.03 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000558/0.1589, allocations: 359.7 kB / 334.3 MB, free: 12.64 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.185e-05/0.1589, allocations: 29.38 kB / 334.3 MB, free: 12.61 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.038e-05/0.159, allocations: 40.28 kB / 334.4 MB, free: 12.57 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009516/0.16, allocations: 454.7 kB / 334.8 MB, free: 12.1 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.951e-05/0.16, allocations: 4 kB / 334.8 MB, free: 12.09 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.753e-05/0.1601, allocations: 19.94 kB / 334.8 MB, free: 12.07 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.492e-05/0.1601, allocations: 8 kB / 334.9 MB, free: 12.07 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001033/0.1612, allocations: 375.6 kB / 335.2 MB, free: 11.7 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002222/0.1634, allocations: 1.582 MB / 336.8 MB, free: 10.02 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008111/0.1642, allocations: 302.7 kB / 337.1 MB, free: 9.719 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004559/0.1647, allocations: 164.8 kB / 337.3 MB, free: 9.555 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.73e-05/0.1647, allocations: 11.88 kB / 337.3 MB, free: 9.543 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.532e-05/0.1648, allocations: 42.5 kB / 337.3 MB, free: 9.492 MB / 286.1 MB Notification: Performance of pre-optimization done (n=30): time 2.114e-06/0.1648, allocations: 0 / 337.3 MB, free: 9.492 MB / 286.1 MB Notification: Performance of matching and sorting (n=32): time 0.003351/0.1681, allocations: 1.377 MB / 338.7 MB, free: 8.023 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.678e-05/0.1682, allocations: 81.11 kB / 338.8 MB, free: 7.926 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004499/0.1687, allocations: 365.6 kB / 339.1 MB, free: 7.562 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.234e-05/0.1687, allocations: 29.7 kB / 339.2 MB, free: 7.527 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002124/0.1689, allocations: 244 kB / 339.4 MB, free: 7.285 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000109/0.1691, allocations: 122.2 kB / 339.5 MB, free: 7.164 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001604/0.1692, allocations: 85.97 kB / 339.6 MB, free: 7.074 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002081/0.1694, allocations: 350.8 kB / 339.9 MB, free: 6.723 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004715/0.1699, allocations: 166.5 kB / 340.1 MB, free: 6.555 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006034/0.1705, allocations: 256.8 kB / 340.4 MB, free: 6.273 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009453/0.1715, allocations: 395.9 kB / 340.7 MB, free: 5.859 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.1715, allocations: 0 / 340.7 MB, free: 5.859 MB / 286.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001224/0.1727, allocations: 488.7 kB / 341.2 MB, free: 5.375 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.368e-05/0.1728, allocations: 8 kB / 341.2 MB, free: 5.367 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.139e-05/0.1728, allocations: 0 / 341.2 MB, free: 5.367 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.709e-05/0.1728, allocations: 4 kB / 341.2 MB, free: 5.363 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009776/0.1738, allocations: 215.9 kB / 341.4 MB, free: 5.152 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002413/0.1762, allocations: 1.576 MB / 343 MB, free: 3.438 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004027/0.1766, allocations: 39.95 kB / 343.1 MB, free: 3.398 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.657e-05/0.1767, allocations: 16 kB / 343.1 MB, free: 3.383 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006435/0.1774, allocations: 272.9 kB / 343.3 MB, free: 3.113 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005071/0.1779, allocations: 236.9 kB / 343.6 MB, free: 2.852 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009963/0.1789, allocations: 379.7 kB / 343.9 MB, free: 2.453 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.523e-06/0.1789, allocations: 0 / 343.9 MB, free: 2.453 MB / 286.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.001165/0.1801, allocations: 468.8 kB / 344.4 MB, free: 1.988 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.128e-05/0.1801, allocations: 7.984 kB / 344.4 MB, free: 1.98 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.71e-06/0.1801, allocations: 4 kB / 344.4 MB, free: 1.977 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.673e-06/0.1801, allocations: 4 kB / 344.4 MB, free: 1.973 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000478/0.1806, allocations: 115.8 kB / 344.5 MB, free: 1.859 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.597e-06/0.1806, allocations: 8.094 kB / 344.5 MB, free: 1.852 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003058/0.1809, allocations: 43.95 kB / 344.6 MB, free: 1.809 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.146e-05/0.181, allocations: 12 kB / 344.6 MB, free: 1.797 MB / 286.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.000182/0.1812, allocations: 200.2 kB / 344.8 MB, free: 1.594 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.031e-05/0.1812, allocations: 39.53 kB / 344.8 MB, free: 1.555 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001128/0.1814, allocations: 44.25 kB / 344.9 MB, free: 1.512 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.296e-06/0.1814, allocations: 7.938 kB / 344.9 MB, free: 1.504 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.317e-06/0.1814, allocations: 4 kB / 344.9 MB, free: 1.5 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.516e-06/0.1814, allocations: 3.984 kB / 344.9 MB, free: 1.496 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001878/0.1833, allocations: 0.922 MB / 345.8 MB, free: 0.5078 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.1833, allocations: 4 kB / 345.8 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004129/0.1837, allocations: 79.92 kB / 345.9 MB, free: 436 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.502e-06/0.1837, allocations: 7.938 kB / 345.9 MB, free: 428 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.687e-05/0.1838, allocations: 8 kB / 345.9 MB, free: 420 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.875e-06/0.1838, allocations: 8.062 kB / 345.9 MB, free: 412 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-05/0.1838, allocations: 4 kB / 345.9 MB, free: 408 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00161/0.1854, allocations: 0.6735 MB / 346.6 MB, free: 15.7 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001681/0.1856, allocations: 136.7 kB / 346.7 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.864e-05/0.1857, allocations: 8 kB / 346.7 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002974/0.186, allocations: 35.97 kB / 346.8 MB, free: 15.5 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001119/0.1861, allocations: 23.97 kB / 346.8 MB, free: 15.48 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.944e-05/0.1861, allocations: 7.984 kB / 346.8 MB, free: 15.47 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003461/0.1865, allocations: 255.1 kB / 347 MB, free: 15.22 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1865, allocations: 0 / 347 MB, free: 15.22 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005983/0.1871, allocations: 143.9 kB / 347.2 MB, free: 15.08 MB / 302.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.0001654/0.1873, allocations: 103.7 kB / 347.3 MB, free: 14.97 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002429/0.1897, allocations: 0.7108 MB / 348 MB, free: 14.26 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.47e-06/0.1897, allocations: 0 / 348 MB, free: 14.26 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000474/0.1902, allocations: 175.8 kB / 348.2 MB, free: 14.09 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008618/0.1911, allocations: 119 kB / 348.3 MB, free: 13.98 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002505/0.1936, allocations: 1.018 MB / 349.3 MB, free: 12.91 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000602/0.1942, allocations: 0.8156 MB / 350.1 MB, free: 12.07 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003967/0.1946, allocations: 63.23 kB / 350.2 MB, free: 12.02 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001139/0.1947, allocations: 31.44 kB / 350.2 MB, free: 11.98 MB / 302.1 MB Notification: Performance of SimCode: time 8.01e-07/0.1947, allocations: 0 / 350.2 MB, free: 11.98 MB / 302.1 MB Notification: Performance of Templates: time 0.01134/0.2061, allocations: 4.651 MB / 354.9 MB, free: 7.336 MB / 302.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)