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.01074/0.01074, allocations: 106.3 kB / 15.74 MB, free: 6.004 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.001877/0.001878, allocations: 196.5 kB / 16.68 MB, free: 5.93 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.746/1.746, allocations: 205.1 MB / 222.6 MB, free: 4.492 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.001239/0.001239, allocations: 52.02 kB / 326.5 MB, free: 14.39 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1437/0.1449, allocations: 46.62 MB / 373.2 MB, free: 1.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.006164/0.1512, allocations: 3.11 MB / 376.3 MB, free: 14.18 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002505/0.1537, allocations: 1.017 MB / 377.3 MB, free: 13.16 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003061/0.154, allocations: 15.88 kB / 377.3 MB, free: 13.14 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004824/0.1546, allocations: 87.17 kB / 377.4 MB, free: 13.05 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002818/0.1548, allocations: 103.1 kB / 377.5 MB, free: 12.95 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006911/0.1555, allocations: 243.5 kB / 377.7 MB, free: 12.71 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006249/0.1562, allocations: 0.5146 MB / 378.2 MB, free: 12.2 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000335/0.1565, allocations: 173.2 kB / 378.4 MB, free: 12.03 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000215/0.1568, allocations: 195.1 kB / 378.6 MB, free: 11.84 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002911/0.1571, allocations: 215 kB / 378.8 MB, free: 11.63 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.694e-05/0.1571, allocations: 40 kB / 378.8 MB, free: 11.59 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.172e-05/0.1572, allocations: 40 kB / 378.9 MB, free: 11.55 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001247/0.1573, allocations: 111.5 kB / 379 MB, free: 11.44 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000193/0.1575, allocations: 214.8 kB / 379.2 MB, free: 11.23 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005637/0.1581, allocations: 494.2 kB / 379.7 MB, free: 10.75 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.1581, allocations: 0 / 379.7 MB, free: 10.75 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.1581, allocations: 0 / 379.7 MB, free: 10.75 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.521e-05/0.1581, allocations: 7.938 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.001598/0.1598, allocations: 0.7638 MB / 380.5 MB, free: 9.922 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.862e-05/0.1598, allocations: 12.03 kB / 380.5 MB, free: 9.91 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001153/0.1599, allocations: 56.28 kB / 380.5 MB, free: 9.855 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007108/0.1607, allocations: 375.7 kB / 380.9 MB, free: 9.445 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.333e-05/0.1607, allocations: 33.31 kB / 380.9 MB, free: 9.414 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.892e-05/0.1608, allocations: 40.38 kB / 381 MB, free: 9.375 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001003/0.1618, allocations: 450.7 kB / 381.4 MB, free: 8.906 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.903e-05/0.1619, allocations: 7.844 kB / 381.4 MB, free: 8.898 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.332e-05/0.1619, allocations: 20 kB / 381.4 MB, free: 8.879 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.286e-05/0.1619, allocations: 8 kB / 381.4 MB, free: 8.871 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00101/0.163, allocations: 371.6 kB / 381.8 MB, free: 8.508 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002303/0.1653, allocations: 1.567 MB / 383.4 MB, free: 6.848 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008784/0.1662, allocations: 318.7 kB / 383.7 MB, free: 6.527 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004299/0.1666, allocations: 160.7 kB / 383.8 MB, free: 6.367 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.591e-05/0.1666, allocations: 7.938 kB / 383.8 MB, free: 6.359 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.38e-05/0.1667, allocations: 42.56 kB / 383.9 MB, free: 6.309 MB / 318.1 MB Notification: Performance of pre-optimization done (n=30): time 1.603e-06/0.1667, allocations: 0 / 383.9 MB, free: 6.309 MB / 318.1 MB Notification: Performance of matching and sorting (n=32): time 0.003464/0.1702, allocations: 1.377 MB / 385.3 MB, free: 4.84 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.706e-05/0.1702, allocations: 81.09 kB / 385.3 MB, free: 4.742 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003973/0.1707, allocations: 365.5 kB / 385.7 MB, free: 4.375 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.397e-05/0.1707, allocations: 33.7 kB / 385.7 MB, free: 4.336 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002014/0.1709, allocations: 247.8 kB / 386 MB, free: 4.09 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.609e-05/0.171, allocations: 118.5 kB / 386.1 MB, free: 3.973 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001326/0.1711, allocations: 74.08 kB / 386.2 MB, free: 3.895 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001776/0.1713, allocations: 354.8 kB / 386.5 MB, free: 3.539 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004718/0.1718, allocations: 170.5 kB / 386.7 MB, free: 3.371 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005195/0.1723, allocations: 248.8 kB / 386.9 MB, free: 3.094 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009788/0.1733, allocations: 395.9 kB / 387.3 MB, free: 2.68 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.1733, allocations: 0 / 387.3 MB, free: 2.68 MB / 318.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001213/0.1746, allocations: 492.8 kB / 387.8 MB, free: 2.191 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.049e-05/0.1746, allocations: 4.219 kB / 387.8 MB, free: 2.188 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.16e-05/0.1746, allocations: 8 kB / 387.8 MB, free: 2.18 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.756e-05/0.1746, allocations: 4 kB / 387.8 MB, free: 2.176 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009117/0.1756, allocations: 211.6 kB / 388 MB, free: 1.969 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002024/0.1776, allocations: 1.576 MB / 389.6 MB, free: 256 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003289/0.1779, allocations: 36 kB / 389.6 MB, free: 220 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.057e-05/0.178, allocations: 19.98 kB / 389.6 MB, free: 200 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005732/0.1786, allocations: 276.9 kB / 389.9 MB, free: 15.92 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004892/0.1791, allocations: 236.8 kB / 390.1 MB, free: 15.66 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008331/0.1799, allocations: 375.7 kB / 390.5 MB, free: 15.27 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.693e-06/0.1799, allocations: 0 / 390.5 MB, free: 15.27 MB / 334.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.00106/0.181, allocations: 464.9 kB / 391 MB, free: 14.81 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.504e-05/0.181, allocations: 4 kB / 391 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.438e-06/0.181, allocations: 7.938 kB / 391 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.299e-06/0.181, allocations: 4 kB / 391 MB, free: 14.79 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004878/0.1815, allocations: 128 kB / 391.1 MB, free: 14.67 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.476e-06/0.1816, allocations: 7.938 kB / 391.1 MB, free: 14.66 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002958/0.1819, allocations: 31.97 kB / 391.1 MB, free: 14.63 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.412e-05/0.1819, allocations: 12 kB / 391.2 MB, free: 14.62 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.0002019/0.1821, allocations: 204.1 kB / 391.4 MB, free: 14.41 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.889e-05/0.1822, allocations: 39.53 kB / 391.4 MB, free: 14.37 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001114/0.1823, allocations: 52.25 kB / 391.4 MB, free: 14.32 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.012e-05/0.1823, allocations: 7.938 kB / 391.5 MB, free: 14.31 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.68e-06/0.1823, allocations: 3.938 kB / 391.5 MB, free: 14.31 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.224e-06/0.1823, allocations: 4 kB / 391.5 MB, free: 14.3 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001802/0.1842, allocations: 0.9225 MB / 392.4 MB, free: 13.32 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.327e-06/0.1842, allocations: 0 / 392.4 MB, free: 13.32 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004211/0.1846, allocations: 79.88 kB / 392.5 MB, free: 13.24 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.336e-06/0.1846, allocations: 4.125 kB / 392.5 MB, free: 13.23 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.897e-05/0.1846, allocations: 12 kB / 392.5 MB, free: 13.22 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.1e-06/0.1847, allocations: 4 kB / 392.5 MB, free: 13.22 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.818e-06/0.1847, allocations: 3.984 kB / 392.5 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001499/0.1862, allocations: 0.6786 MB / 393.2 MB, free: 12.5 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001876/0.1864, allocations: 132.7 kB / 393.3 MB, free: 12.36 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.744e-05/0.1864, allocations: 12 kB / 393.3 MB, free: 12.34 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003054/0.1867, allocations: 31.95 kB / 393.3 MB, free: 12.31 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001258/0.1869, allocations: 23.97 kB / 393.4 MB, free: 12.29 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.84e-05/0.1869, allocations: 4 kB / 393.4 MB, free: 12.29 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003477/0.1873, allocations: 255.2 kB / 393.6 MB, free: 12.04 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1873, allocations: 4 kB / 393.6 MB, free: 12.03 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000622/0.1879, allocations: 139.9 kB / 393.8 MB, free: 11.89 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.0002551/0.1882, allocations: 107.8 kB / 393.9 MB, free: 11.78 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002101/0.1903, allocations: 0.6987 MB / 394.6 MB, free: 11.08 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.1903, allocations: 0 / 394.6 MB, free: 11.08 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005052/0.1908, allocations: 188.4 kB / 394.7 MB, free: 10.89 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006882/0.1915, allocations: 93.53 kB / 394.8 MB, free: 10.8 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002386/0.1939, allocations: 1.002 MB / 395.8 MB, free: 9.766 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004855/0.1944, allocations: 0.8195 MB / 396.7 MB, free: 8.922 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002984/0.1947, allocations: 63.22 kB / 396.7 MB, free: 8.859 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001221/0.1949, allocations: 31.44 kB / 396.7 MB, free: 8.832 MB / 334.1 MB Notification: Performance of SimCode: time 1.683e-06/0.1949, allocations: 4 kB / 396.7 MB, free: 8.828 MB / 334.1 MB Notification: Performance of Templates: time 0.01093/0.2058, allocations: 4.736 MB / 401.5 MB, free: 4.086 MB / 334.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)