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.008934/0.008934, allocations: 101 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.001461/0.001461, allocations: 185.6 kB / 16.67 MB, free: 5.977 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.745/1.745, allocations: 205.1 MB / 222.6 MB, free: 4.508 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.001646/0.001646, allocations: 47.3 kB / 326.5 MB, free: 14.41 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1315/0.1332, allocations: 46.63 MB / 373.2 MB, free: 1.332 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.005877/0.1391, allocations: 3.11 MB / 376.3 MB, free: 14.2 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003472/0.1427, allocations: 1.017 MB / 377.3 MB, free: 13.17 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005711/0.1433, allocations: 15.94 kB / 377.3 MB, free: 13.15 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000665/0.1441, allocations: 87.17 kB / 377.4 MB, free: 13.07 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003909/0.1445, allocations: 107.1 kB / 377.5 MB, free: 12.96 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008391/0.1454, allocations: 243.5 kB / 377.7 MB, free: 12.72 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006565/0.146, allocations: 0.5146 MB / 378.2 MB, free: 12.21 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004446/0.1465, allocations: 177.2 kB / 378.4 MB, free: 12.04 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002747/0.1468, allocations: 199.1 kB / 378.6 MB, free: 11.84 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002587/0.147, allocations: 210.9 kB / 378.8 MB, free: 11.63 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.726e-05/0.1471, allocations: 40 kB / 378.9 MB, free: 11.59 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.138e-05/0.1472, allocations: 48 kB / 378.9 MB, free: 11.55 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001306/0.1473, allocations: 103.6 kB / 379 MB, free: 11.45 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002253/0.1475, allocations: 214.8 kB / 379.2 MB, free: 11.23 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006681/0.1482, allocations: 498.2 kB / 379.7 MB, free: 10.75 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.1482, allocations: 0 / 379.7 MB, free: 10.75 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.799e-06/0.1483, allocations: 0 / 379.7 MB, free: 10.75 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.105e-05/0.1483, allocations: 7.875 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.001597/0.1499, allocations: 0.7639 MB / 380.5 MB, free: 9.922 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.484e-05/0.1499, allocations: 8.031 kB / 380.5 MB, free: 9.914 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001192/0.1501, allocations: 56.28 kB / 380.5 MB, free: 9.859 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007524/0.1508, allocations: 383.6 kB / 380.9 MB, free: 9.441 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.016e-05/0.1509, allocations: 29.38 kB / 380.9 MB, free: 9.414 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.165e-05/0.151, allocations: 40.38 kB / 381 MB, free: 9.375 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001007/0.152, allocations: 450.7 kB / 381.4 MB, free: 8.906 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.898e-05/0.152, allocations: 7.906 kB / 381.4 MB, free: 8.898 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.225e-05/0.1521, allocations: 12 kB / 381.4 MB, free: 8.887 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.937e-05/0.1521, allocations: 12 kB / 381.4 MB, free: 8.875 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009909/0.1531, allocations: 375.6 kB / 381.8 MB, free: 8.508 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002147/0.1553, allocations: 1.563 MB / 383.4 MB, free: 6.852 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008509/0.1561, allocations: 311.7 kB / 383.7 MB, free: 6.539 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004276/0.1566, allocations: 160.8 kB / 383.8 MB, free: 6.379 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.192e-05/0.1566, allocations: 7.938 kB / 383.8 MB, free: 6.371 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.29e-05/0.1566, allocations: 38.55 kB / 383.9 MB, free: 6.324 MB / 318.1 MB Notification: Performance of pre-optimization done (n=30): time 1.713e-06/0.1566, allocations: 0 / 383.9 MB, free: 6.324 MB / 318.1 MB Notification: Performance of matching and sorting (n=32): time 0.003339/0.16, allocations: 1.396 MB / 385.3 MB, free: 4.836 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001012/0.1601, allocations: 81.11 kB / 385.4 MB, free: 4.738 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004253/0.1605, allocations: 365.6 kB / 385.7 MB, free: 4.371 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.027e-05/0.1606, allocations: 29.7 kB / 385.7 MB, free: 4.336 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001838/0.1608, allocations: 243.8 kB / 386 MB, free: 4.094 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001002/0.1609, allocations: 122.3 kB / 386.1 MB, free: 3.973 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001272/0.161, allocations: 78.12 kB / 386.2 MB, free: 3.891 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001903/0.1612, allocations: 346.8 kB / 386.5 MB, free: 3.543 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004719/0.1617, allocations: 170.5 kB / 386.7 MB, free: 3.375 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005075/0.1622, allocations: 252.8 kB / 386.9 MB, free: 3.094 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009071/0.1631, allocations: 395.9 kB / 387.3 MB, free: 2.68 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.1631, allocations: 0 / 387.3 MB, free: 2.68 MB / 318.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001153/0.1643, allocations: 488.8 kB / 387.8 MB, free: 2.195 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.143e-05/0.1643, allocations: 8 kB / 387.8 MB, free: 2.188 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.237e-06/0.1643, allocations: 0 / 387.8 MB, free: 2.188 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.973e-05/0.1644, allocations: 7.938 kB / 387.8 MB, free: 2.18 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000912/0.1653, allocations: 215.9 kB / 388 MB, free: 1.969 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001877/0.1672, allocations: 1.576 MB / 389.6 MB, free: 256 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000334/0.1675, allocations: 39.95 kB / 389.6 MB, free: 216 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.653e-05/0.1676, allocations: 12 kB / 389.7 MB, free: 204 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005976/0.1682, allocations: 276.8 kB / 389.9 MB, free: 15.93 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004626/0.1686, allocations: 240.9 kB / 390.2 MB, free: 15.66 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009468/0.1696, allocations: 371.7 kB / 390.5 MB, free: 15.27 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.924e-06/0.1696, allocations: 0 / 390.5 MB, free: 15.27 MB / 334.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.001045/0.1707, allocations: 464.9 kB / 391 MB, free: 14.81 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.271e-05/0.1707, allocations: 11.94 kB / 391 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.615e-06/0.1707, allocations: 0 / 391 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.256e-06/0.1707, allocations: 7.984 kB / 391 MB, free: 14.79 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004898/0.1712, allocations: 119.8 kB / 391.1 MB, free: 14.68 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.464e-06/0.1712, allocations: 7.938 kB / 391.1 MB, free: 14.67 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002936/0.1715, allocations: 44.11 kB / 391.2 MB, free: 14.62 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.26e-05/0.1715, allocations: 11.98 kB / 391.2 MB, free: 14.61 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.0001668/0.1717, allocations: 208.1 kB / 391.4 MB, free: 14.4 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.353e-05/0.1718, allocations: 39.53 kB / 391.4 MB, free: 14.36 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.893e-05/0.1719, allocations: 44.25 kB / 391.5 MB, free: 14.32 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.903e-06/0.1719, allocations: 7.938 kB / 391.5 MB, free: 14.31 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.1719, allocations: 0 / 391.5 MB, free: 14.31 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.168e-06/0.1719, allocations: 7.984 kB / 391.5 MB, free: 14.3 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00196/0.1739, allocations: 0.9225 MB / 392.4 MB, free: 13.32 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.05e-06/0.1739, allocations: 4 kB / 392.4 MB, free: 13.31 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004101/0.1743, allocations: 79.88 kB / 392.5 MB, free: 13.23 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.684e-06/0.1744, allocations: 7.984 kB / 392.5 MB, free: 13.23 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.7e-05/0.1744, allocations: 8 kB / 392.5 MB, free: 13.22 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.374e-06/0.1744, allocations: 0 / 392.5 MB, free: 13.22 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.1744, allocations: 4.125 kB / 392.5 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00143/0.1759, allocations: 0.6708 MB / 393.2 MB, free: 12.51 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001454/0.176, allocations: 128.7 kB / 393.3 MB, free: 12.37 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.062e-05/0.1761, allocations: 15.98 kB / 393.3 MB, free: 12.35 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002935/0.1764, allocations: 35.97 kB / 393.3 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.172e-05/0.1765, allocations: 23.95 kB / 393.4 MB, free: 12.29 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.769e-05/0.1765, allocations: 11.98 kB / 393.4 MB, free: 12.28 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002821/0.1768, allocations: 247.2 kB / 393.6 MB, free: 12.04 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1768, allocations: 4 kB / 393.6 MB, free: 12.04 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005416/0.1774, allocations: 135.9 kB / 393.8 MB, free: 11.9 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.0001691/0.1775, allocations: 115.7 kB / 393.9 MB, free: 11.78 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001955/0.1795, allocations: 0.6995 MB / 394.6 MB, free: 11.08 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.048e-06/0.1795, allocations: 0 / 394.6 MB, free: 11.08 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004589/0.18, allocations: 175.8 kB / 394.7 MB, free: 10.91 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006902/0.1807, allocations: 106.1 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.001919/0.1826, 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.0004345/0.1831, allocations: 0.8234 MB / 396.7 MB, free: 8.918 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002465/0.1833, allocations: 55.25 kB / 396.7 MB, free: 8.863 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000103/0.1834, allocations: 31.44 kB / 396.8 MB, free: 8.836 MB / 334.1 MB Notification: Performance of SimCode: time 1.062e-06/0.1834, allocations: 0 / 396.8 MB, free: 8.836 MB / 334.1 MB Notification: Performance of Templates: time 0.009513/0.1929, allocations: 4.736 MB / 401.5 MB, free: 4.094 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)