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.01035/0.01035, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.0024/0.0024, allocations: 201.9 kB / 16.68 MB, free: 5.969 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.851/1.851, allocations: 205.1 MB / 222.6 MB, free: 4.555 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.00129/0.001291, allocations: 49.72 kB / 326.5 MB, free: 14.26 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1409/0.1422, allocations: 46.62 MB / 373.2 MB, free: 1.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.005139/0.1475, allocations: 3.118 MB / 376.3 MB, free: 14.2 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0025/0.15, allocations: 1.013 MB / 377.3 MB, free: 13.17 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002749/0.1503, allocations: 15.94 kB / 377.3 MB, free: 13.16 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004893/0.1508, allocations: 87.17 kB / 377.4 MB, free: 13.07 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002882/0.1511, allocations: 111.1 kB / 377.5 MB, free: 12.96 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006586/0.1518, allocations: 235.6 kB / 377.7 MB, free: 12.73 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000645/0.1524, allocations: 0.5107 MB / 378.2 MB, free: 12.22 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004042/0.1528, allocations: 181.2 kB / 378.4 MB, free: 12.04 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002553/0.1531, allocations: 199.1 kB / 378.6 MB, free: 11.85 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002678/0.1534, allocations: 214.9 kB / 378.8 MB, free: 11.64 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.533e-05/0.1534, allocations: 44 kB / 378.9 MB, free: 11.59 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.665e-05/0.1535, allocations: 40 kB / 378.9 MB, free: 11.55 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001228/0.1536, allocations: 99.62 kB / 379 MB, free: 11.46 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002173/0.1539, allocations: 222.8 kB / 379.2 MB, free: 11.24 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006426/0.1545, allocations: 497.8 kB / 379.7 MB, free: 10.75 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.321e-06/0.1545, allocations: 0 / 379.7 MB, free: 10.75 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1545, allocations: 3.938 kB / 379.7 MB, free: 10.75 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.993e-05/0.1546, allocations: 4 kB / 379.7 MB, free: 10.74 MB / 318.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.001551/0.1561, allocations: 0.7906 MB / 380.5 MB, free: 9.898 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.723e-05/0.1562, allocations: 12.03 kB / 380.5 MB, free: 9.887 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001014/0.1563, allocations: 52.61 kB / 380.6 MB, free: 9.836 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006648/0.157, allocations: 379.9 kB / 380.9 MB, free: 9.422 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.456e-05/0.157, allocations: 37.36 kB / 381 MB, free: 9.387 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.999e-05/0.1571, allocations: 36.38 kB / 381 MB, free: 9.352 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001005/0.1581, allocations: 450.7 kB / 381.4 MB, free: 8.883 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.267e-05/0.1582, allocations: 11.94 kB / 381.5 MB, free: 8.871 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.186e-05/0.1582, allocations: 16 kB / 381.5 MB, free: 8.855 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.433e-05/0.1582, allocations: 8 kB / 381.5 MB, free: 8.848 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001018/0.1593, allocations: 371.7 kB / 381.8 MB, free: 8.484 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00291/0.1622, allocations: 1.563 MB / 383.4 MB, free: 6.828 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009196/0.1631, allocations: 311.7 kB / 383.7 MB, free: 6.516 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004993/0.1636, allocations: 164.7 kB / 383.9 MB, free: 6.352 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.153e-05/0.1637, allocations: 12.09 kB / 383.9 MB, free: 6.34 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.535e-05/0.1637, allocations: 30.56 kB / 383.9 MB, free: 6.301 MB / 318.1 MB Notification: Performance of pre-optimization done (n=30): time 1.392e-06/0.1637, allocations: 0 / 383.9 MB, free: 6.301 MB / 318.1 MB Notification: Performance of matching and sorting (n=32): time 0.003541/0.1673, allocations: 1.401 MB / 385.3 MB, free: 4.809 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.13e-05/0.1674, allocations: 85.11 kB / 385.4 MB, free: 4.707 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004206/0.1678, allocations: 357.7 kB / 385.7 MB, free: 4.348 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.782e-05/0.1678, allocations: 29.7 kB / 385.8 MB, free: 4.312 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002163/0.1681, allocations: 248.3 kB / 386 MB, free: 4.066 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001273/0.1682, allocations: 123 kB / 386.1 MB, free: 3.945 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001298/0.1683, allocations: 82.02 kB / 386.2 MB, free: 3.859 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001971/0.1685, allocations: 354.8 kB / 386.6 MB, free: 3.504 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004849/0.169, allocations: 174.5 kB / 386.7 MB, free: 3.332 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005428/0.1696, allocations: 244.8 kB / 387 MB, free: 3.059 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009382/0.1705, allocations: 391.9 kB / 387.4 MB, free: 2.648 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.1705, allocations: 4 kB / 387.4 MB, free: 2.645 MB / 318.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001199/0.1717, allocations: 497 kB / 387.8 MB, free: 2.152 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.911e-05/0.1718, allocations: 11.98 kB / 387.9 MB, free: 2.141 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.658e-06/0.1718, allocations: 3.938 kB / 387.9 MB, free: 2.137 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.909e-05/0.1718, allocations: 4 kB / 387.9 MB, free: 2.133 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009574/0.1728, allocations: 211.8 kB / 388.1 MB, free: 1.926 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002022/0.1748, allocations: 1.572 MB / 389.6 MB, free: 216 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003311/0.1752, allocations: 35.91 kB / 389.7 MB, free: 180 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.298e-05/0.1752, allocations: 16 kB / 389.7 MB, free: 164 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005995/0.1758, allocations: 276.9 kB / 390 MB, free: 15.89 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005205/0.1764, allocations: 244.8 kB / 390.2 MB, free: 15.62 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008487/0.1772, allocations: 363.7 kB / 390.6 MB, free: 15.24 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.338e-06/0.1772, allocations: 4 kB / 390.6 MB, free: 15.23 MB / 334.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.001042/0.1783, allocations: 473 kB / 391 MB, free: 14.77 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.768e-05/0.1783, allocations: 11.94 kB / 391 MB, free: 14.75 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.1783, allocations: 7.938 kB / 391 MB, free: 14.75 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.783e-06/0.1783, allocations: 8.219 kB / 391.1 MB, free: 14.74 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004748/0.1788, allocations: 111.9 kB / 391.2 MB, free: 14.63 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.51e-05/0.1789, allocations: 15.92 kB / 391.2 MB, free: 14.61 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000304/0.1792, allocations: 35.97 kB / 391.2 MB, free: 14.58 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.42e-05/0.1792, allocations: 12 kB / 391.2 MB, free: 14.57 MB / 334.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.0002205/0.1794, allocations: 208.1 kB / 391.4 MB, free: 14.36 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.561e-05/0.1795, allocations: 39.77 kB / 391.5 MB, free: 14.32 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001067/0.1796, allocations: 48.23 kB / 391.5 MB, free: 14.27 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.627e-06/0.1796, allocations: 7.938 kB / 391.5 MB, free: 14.26 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.1797, allocations: 0 / 391.5 MB, free: 14.26 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.109e-06/0.1797, allocations: 0 / 391.5 MB, free: 14.26 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001869/0.1815, allocations: 0.9186 MB / 392.4 MB, free: 13.28 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.87e-06/0.1816, allocations: 4 kB / 392.4 MB, free: 13.27 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004317/0.182, allocations: 88 kB / 392.5 MB, free: 13.19 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.851e-06/0.182, allocations: 4 kB / 392.5 MB, free: 13.18 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.337e-05/0.182, allocations: 8 kB / 392.5 MB, free: 13.18 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.205e-06/0.1821, allocations: 0 / 392.5 MB, free: 13.18 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.108e-06/0.1821, allocations: 4 kB / 392.5 MB, free: 13.17 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001575/0.1836, allocations: 0.671 MB / 393.2 MB, free: 12.47 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001813/0.1838, allocations: 140.8 kB / 393.4 MB, free: 12.31 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.119e-05/0.1839, allocations: 8 kB / 393.4 MB, free: 12.3 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003038/0.1842, allocations: 35.95 kB / 393.4 MB, free: 12.27 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001016/0.1843, allocations: 19.97 kB / 393.4 MB, free: 12.25 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.934e-05/0.1843, allocations: 16 kB / 393.4 MB, free: 12.23 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002961/0.1846, allocations: 251.2 kB / 393.7 MB, free: 11.99 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1846, allocations: 0 / 393.7 MB, free: 11.99 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005726/0.1852, allocations: 139.9 kB / 393.8 MB, free: 11.85 MB / 334.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.0001589/0.1854, allocations: 111.6 kB / 393.9 MB, free: 11.73 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002022/0.1874, allocations: 0.6949 MB / 394.6 MB, free: 11.04 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.978e-06/0.1874, allocations: 0 / 394.6 MB, free: 11.04 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004574/0.1879, allocations: 188.4 kB / 394.8 MB, free: 10.85 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006984/0.1886, allocations: 109.4 kB / 394.9 MB, free: 10.75 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00207/0.1907, allocations: 1.009 MB / 395.9 MB, free: 9.699 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005679/0.1913, allocations: 0.8156 MB / 396.7 MB, free: 8.859 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002753/0.1916, allocations: 67.23 kB / 396.8 MB, free: 8.793 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.961e-05/0.1917, allocations: 27.44 kB / 396.8 MB, free: 8.77 MB / 334.1 MB Notification: Performance of SimCode: time 2.244e-06/0.1917, allocations: 0 / 396.8 MB, free: 8.77 MB / 334.1 MB Notification: Performance of Templates: time 0.01041/0.2021, allocations: 4.728 MB / 401.6 MB, free: 4.035 MB / 334.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)