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.001183/0.001183, allocations: 105.9 kB / 16.5 MB, free: 6.688 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.001324/0.001324, allocations: 193.9 kB / 17.42 MB, free: 6.09 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.587/1.587, allocations: 205.1 MB / 223.3 MB, free: 12.4 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.001952/0.001952, allocations: 55.92 kB / 279.3 MB, free: 3.586 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1291/0.131, allocations: 46.62 MB / 325.9 MB, free: 4.895 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.005873/0.1369, allocations: 3.155 MB / 329.1 MB, free: 1.715 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002403/0.1394, allocations: 0.9865 MB / 330.1 MB, free: 0.7188 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002594/0.1397, allocations: 19.94 kB / 330.1 MB, free: 0.6992 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003845/0.1401, allocations: 71.47 kB / 330.2 MB, free: 0.6289 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002245/0.1403, allocations: 79.34 kB / 330.3 MB, free: 0.5508 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005402/0.1409, allocations: 211.7 kB / 330.5 MB, free: 352 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005023/0.1414, allocations: 0.4911 MB / 331 MB, free: 15.85 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002758/0.1417, allocations: 161.2 kB / 331.1 MB, free: 15.68 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001961/0.1419, allocations: 171.2 kB / 331.3 MB, free: 15.52 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002179/0.1421, allocations: 195 kB / 331.5 MB, free: 15.32 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.11e-05/0.1422, allocations: 20 kB / 331.5 MB, free: 15.3 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.231e-05/0.1422, allocations: 24 kB / 331.5 MB, free: 15.28 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.634e-05/0.1423, allocations: 95.59 kB / 331.6 MB, free: 15.19 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001599/0.1425, allocations: 194.8 kB / 331.8 MB, free: 15 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004016/0.1429, allocations: 466.5 kB / 332.2 MB, free: 14.54 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.1429, allocations: 0 / 332.2 MB, free: 14.54 MB / 286.1 MB Notification: Performance of FrontEnd: time 6.41e-07/0.1429, allocations: 0 / 332.2 MB, free: 14.54 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.324e-06/0.143, allocations: 0 / 332.2 MB, free: 14.54 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.001233/0.1442, allocations: 0.7716 MB / 333 MB, free: 13.72 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.817e-05/0.1442, allocations: 12.03 kB / 333 MB, free: 13.71 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.72e-05/0.1443, allocations: 52.31 kB / 333.1 MB, free: 13.66 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004109/0.1447, allocations: 359.7 kB / 333.4 MB, free: 13.27 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.757e-05/0.1448, allocations: 29.38 kB / 333.5 MB, free: 13.24 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.805e-05/0.1449, allocations: 44.28 kB / 333.5 MB, free: 13.2 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008455/0.1457, allocations: 450.7 kB / 333.9 MB, free: 12.73 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.928e-05/0.1457, allocations: 8 kB / 334 MB, free: 12.72 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.38e-05/0.1458, allocations: 16 kB / 334 MB, free: 12.71 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.809e-06/0.1458, allocations: 8 kB / 334 MB, free: 12.7 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009133/0.1467, allocations: 379.6 kB / 334.3 MB, free: 12.33 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001982/0.1487, allocations: 1.575 MB / 335.9 MB, free: 10.66 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007636/0.1495, allocations: 318.6 kB / 336.2 MB, free: 10.34 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004059/0.1499, allocations: 156.8 kB / 336.4 MB, free: 10.18 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.237e-05/0.1499, allocations: 11.94 kB / 336.4 MB, free: 10.17 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.444e-05/0.15, allocations: 38.56 kB / 336.4 MB, free: 10.12 MB / 286.1 MB Notification: Performance of pre-optimization done (n=30): time 1.483e-06/0.15, allocations: 0 / 336.4 MB, free: 10.12 MB / 286.1 MB Notification: Performance of matching and sorting (n=32): time 0.003042/0.153, allocations: 1.387 MB / 337.8 MB, free: 8.645 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.14e-05/0.1531, allocations: 77.11 kB / 337.9 MB, free: 8.551 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003727/0.1535, allocations: 369.6 kB / 338.3 MB, free: 8.18 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.546e-05/0.1535, allocations: 29.7 kB / 338.3 MB, free: 8.145 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001594/0.1537, allocations: 239.9 kB / 338.5 MB, free: 7.906 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.406e-05/0.1538, allocations: 122.4 kB / 338.6 MB, free: 7.785 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001238/0.1539, allocations: 78.03 kB / 338.7 MB, free: 7.703 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001408/0.1541, allocations: 354.8 kB / 339.1 MB, free: 7.348 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004916/0.1546, allocations: 174.5 kB / 339.2 MB, free: 7.172 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005026/0.1551, allocations: 256.8 kB / 339.5 MB, free: 6.891 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008312/0.1559, allocations: 391.3 kB / 339.9 MB, free: 6.48 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.1559, allocations: 0 / 339.9 MB, free: 6.48 MB / 286.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001019/0.157, allocations: 0.4897 MB / 340.4 MB, free: 5.984 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.719e-05/0.157, allocations: 4 kB / 340.4 MB, free: 5.98 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.617e-06/0.157, allocations: 4 kB / 340.4 MB, free: 5.977 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.814e-05/0.157, allocations: 4 kB / 340.4 MB, free: 5.973 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008117/0.1578, allocations: 207.8 kB / 340.6 MB, free: 5.77 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001597/0.1594, allocations: 1.47 MB / 342 MB, free: 4.168 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003052/0.1598, allocations: 39.89 kB / 342.1 MB, free: 4.129 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.711e-05/0.1598, allocations: 12 kB / 342.1 MB, free: 4.117 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005776/0.1604, allocations: 272.9 kB / 342.4 MB, free: 3.848 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004554/0.1609, allocations: 244.8 kB / 342.6 MB, free: 3.578 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007701/0.1616, allocations: 371.4 kB / 343 MB, free: 3.188 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.044e-06/0.1616, allocations: 0 / 343 MB, free: 3.188 MB / 286.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0009572/0.1626, allocations: 469.1 kB / 343.4 MB, free: 2.723 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.181e-05/0.1626, allocations: 11.12 kB / 343.4 MB, free: 2.715 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.529e-06/0.1626, allocations: 3.984 kB / 343.4 MB, free: 2.711 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.9e-06/0.1627, allocations: 4 kB / 343.4 MB, free: 2.707 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004753/0.1631, allocations: 115.9 kB / 343.6 MB, free: 2.594 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.255e-05/0.1632, allocations: 12.09 kB / 343.6 MB, free: 2.582 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000279/0.1634, allocations: 35.95 kB / 343.6 MB, free: 2.547 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.838e-05/0.1635, allocations: 19.94 kB / 343.6 MB, free: 2.527 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.000191/0.1637, allocations: 208.1 kB / 343.8 MB, free: 2.316 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.409e-05/0.1638, allocations: 35.53 kB / 343.9 MB, free: 2.281 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.602e-05/0.1639, allocations: 48.25 kB / 343.9 MB, free: 2.234 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.208e-06/0.1639, allocations: 4 kB / 343.9 MB, free: 2.23 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.1639, allocations: 4 kB / 343.9 MB, free: 2.227 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.425e-06/0.1639, allocations: 7.922 kB / 343.9 MB, free: 2.219 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001624/0.1655, allocations: 0.9104 MB / 344.8 MB, free: 1.242 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.1655, allocations: 0 / 344.8 MB, free: 1.242 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004147/0.1659, allocations: 99.8 kB / 344.9 MB, free: 1.145 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.799e-06/0.166, allocations: 4 kB / 344.9 MB, free: 1.141 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.562e-05/0.166, allocations: 8.125 kB / 344.9 MB, free: 1.133 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/0.166, allocations: 4 kB / 344.9 MB, free: 1.129 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.166, allocations: 0 / 344.9 MB, free: 1.129 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001381/0.1674, allocations: 0.6697 MB / 345.6 MB, free: 440 kB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001311/0.1675, allocations: 140.6 kB / 345.7 MB, free: 280 kB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.444e-05/0.1676, allocations: 11.98 kB / 345.8 MB, free: 268 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002831/0.1679, allocations: 31.97 kB / 345.8 MB, free: 236 kB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.54e-05/0.168, allocations: 23.95 kB / 345.8 MB, free: 212 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.488e-05/0.168, allocations: 15.98 kB / 345.8 MB, free: 196 kB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002715/0.1683, allocations: 247.1 kB / 346.1 MB, free: 15.95 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.1683, allocations: 4 kB / 346.1 MB, free: 15.95 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005469/0.1689, allocations: 140 kB / 346.2 MB, free: 15.81 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.0001321/0.169, allocations: 107.2 kB / 346.3 MB, free: 15.7 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001849/0.1709, allocations: 0.696 MB / 347 MB, free: 15 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.257e-06/0.1709, allocations: 0 / 347 MB, free: 15 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000449/0.1713, allocations: 176.3 kB / 347.2 MB, free: 14.83 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007506/0.1721, allocations: 93.44 kB / 347.3 MB, free: 14.74 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001942/0.174, allocations: 1.173 MB / 348.4 MB, free: 13.53 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004338/0.1745, allocations: 0.8159 MB / 349.3 MB, free: 12.69 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002555/0.1748, allocations: 67.17 kB / 349.3 MB, free: 12.62 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001174/0.1749, allocations: 31.44 kB / 349.4 MB, free: 12.59 MB / 302.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1749, allocations: 0 / 349.4 MB, free: 12.59 MB / 302.1 MB Notification: Performance of Templates: time 0.009424/0.1843, allocations: 4.305 MB / 353.7 MB, free: 8.289 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)