Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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="mat",numberOfIntervals=5000,variableFilter="time|PI.I.y|inertia1.phi|inertia1.w|integrator.y|spring.phi_rel|spring.w_rel",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller") translateModel(Modelica.Blocks.Examples.PID_Controller,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|PI.I.y|inertia1.phi|inertia1.w|integrator.y|spring.phi_rel|spring.w_rel",fileNamePrefix="Modelica_3.2.3_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.001233/0.001233, allocations: 102.5 kB / 17.15 MB, free: 6.324 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.001551/0.001551, allocations: 198 kB / 18.07 MB, free: 5.422 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.591/1.591, allocations: 205.1 MB / 223.9 MB, free: 12.48 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.002879/0.00288, allocations: 47.94 kB / 280 MB, free: 3.613 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1307/0.1336, allocations: 46.64 MB / 326.6 MB, free: 4.914 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.005309/0.139, allocations: 3.159 MB / 329.7 MB, free: 1.73 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002329/0.1414, allocations: 0.9904 MB / 330.7 MB, free: 0.7305 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002662/0.1417, allocations: 11.94 kB / 330.7 MB, free: 0.7188 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004313/0.1421, allocations: 59.5 kB / 330.8 MB, free: 0.6602 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002333/0.1424, allocations: 95.31 kB / 330.9 MB, free: 0.5664 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000585/0.143, allocations: 199.7 kB / 331.1 MB, free: 380 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005402/0.1435, allocations: 0.495 MB / 331.6 MB, free: 15.87 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003111/0.1438, allocations: 161.1 kB / 331.7 MB, free: 15.71 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002159/0.1441, allocations: 179.1 kB / 331.9 MB, free: 15.53 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002582/0.1443, allocations: 187 kB / 332.1 MB, free: 15.35 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.264e-05/0.1444, allocations: 27.98 kB / 332.1 MB, free: 15.32 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.786e-05/0.1445, allocations: 23.94 kB / 332.2 MB, free: 15.3 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001236/0.1446, allocations: 91.62 kB / 332.2 MB, free: 15.21 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001809/0.1448, allocations: 194.8 kB / 332.4 MB, free: 15.02 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004542/0.1452, allocations: 470.5 kB / 332.9 MB, free: 14.55 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.794e-06/0.1453, allocations: 7.984 kB / 332.9 MB, free: 14.55 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.1453, allocations: 0 / 332.9 MB, free: 14.55 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.568e-06/0.1453, allocations: 0 / 332.9 MB, free: 14.55 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.00164/0.1469, allocations: 0.7677 MB / 333.7 MB, free: 13.73 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.667e-05/0.147, allocations: 11.97 kB / 333.7 MB, free: 13.72 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001111/0.1471, allocations: 48.38 kB / 333.7 MB, free: 13.67 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005056/0.1476, allocations: 363.7 kB / 334.1 MB, free: 13.28 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.436e-05/0.1477, allocations: 29.38 kB / 334.1 MB, free: 13.25 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.93e-05/0.1477, allocations: 40.28 kB / 334.2 MB, free: 13.21 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009043/0.1487, allocations: 454.7 kB / 334.6 MB, free: 12.74 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.042e-05/0.1487, allocations: 0 / 334.6 MB, free: 12.74 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.459e-05/0.1487, allocations: 19.98 kB / 334.6 MB, free: 12.72 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.256e-05/0.1488, allocations: 12 kB / 334.6 MB, free: 12.71 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009517/0.1497, allocations: 379.6 kB / 335 MB, free: 12.34 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002153/0.1519, allocations: 1.575 MB / 336.6 MB, free: 10.67 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008151/0.1527, allocations: 310.6 kB / 336.9 MB, free: 10.36 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004002/0.1531, allocations: 164.7 kB / 337 MB, free: 10.2 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.249e-05/0.1532, allocations: 7.938 kB / 337 MB, free: 10.19 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.742e-05/0.1532, allocations: 38.56 kB / 337.1 MB, free: 10.14 MB / 286.1 MB Notification: Performance of pre-optimization done (n=30): time 1.433e-06/0.1532, allocations: 0 / 337.1 MB, free: 10.14 MB / 286.1 MB Notification: Performance of matching and sorting (n=32): time 0.003182/0.1564, allocations: 1.376 MB / 338.5 MB, free: 8.672 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.366e-05/0.1565, allocations: 85.09 kB / 338.5 MB, free: 8.57 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003934/0.1569, allocations: 357.6 kB / 338.9 MB, free: 8.211 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.869e-05/0.1569, allocations: 33.7 kB / 338.9 MB, free: 8.172 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001858/0.1571, allocations: 252 kB / 339.2 MB, free: 7.922 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001011/0.1572, allocations: 114.3 kB / 339.3 MB, free: 7.809 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001236/0.1573, allocations: 78.05 kB / 339.4 MB, free: 7.727 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001565/0.1575, allocations: 350.8 kB / 339.7 MB, free: 7.375 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00046/0.158, allocations: 174.5 kB / 339.9 MB, free: 7.199 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000477/0.1585, allocations: 252.7 kB / 340.1 MB, free: 6.922 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008612/0.1593, allocations: 399.4 kB / 340.5 MB, free: 6.504 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.1593, allocations: 0 / 340.5 MB, free: 6.504 MB / 286.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001042/0.1604, allocations: 497.2 kB / 341 MB, free: 6.012 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/0.1604, allocations: 4 kB / 341 MB, free: 6.008 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.284e-06/0.1604, allocations: 4.219 kB / 341 MB, free: 6.004 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.964e-05/0.1605, allocations: 8 kB / 341 MB, free: 5.996 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008204/0.1613, allocations: 203.7 kB / 341.2 MB, free: 5.797 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001544/0.1629, allocations: 1.47 MB / 342.7 MB, free: 4.195 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003248/0.1632, allocations: 44.06 kB / 342.7 MB, free: 4.152 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.069e-05/0.1632, allocations: 19.98 kB / 342.7 MB, free: 4.133 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005143/0.1638, allocations: 272.8 kB / 343 MB, free: 3.863 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004358/0.1642, allocations: 240.8 kB / 343.2 MB, free: 3.598 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007713/0.165, allocations: 375.4 kB / 343.6 MB, free: 3.203 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.946e-06/0.165, allocations: 0 / 343.6 MB, free: 3.203 MB / 286.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.001026/0.166, allocations: 469.1 kB / 344.1 MB, free: 2.738 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.196e-05/0.1661, allocations: 4 kB / 344.1 MB, free: 2.734 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.688e-06/0.1661, allocations: 4 kB / 344.1 MB, free: 2.73 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.12e-06/0.1661, allocations: 4 kB / 344.1 MB, free: 2.727 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004748/0.1666, allocations: 119.8 kB / 344.2 MB, free: 2.609 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.111e-05/0.1666, allocations: 7.938 kB / 344.2 MB, free: 2.602 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003518/0.1669, allocations: 40.06 kB / 344.2 MB, free: 2.562 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.246e-05/0.167, allocations: 16 kB / 344.3 MB, free: 2.547 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.0001993/0.1672, allocations: 204.1 kB / 344.5 MB, free: 2.34 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.248e-05/0.1673, allocations: 39.53 kB / 344.5 MB, free: 2.301 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001208/0.1674, allocations: 48.25 kB / 344.5 MB, free: 2.254 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.809e-06/0.1674, allocations: 0 / 344.5 MB, free: 2.254 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.479e-06/0.1674, allocations: 0 / 344.5 MB, free: 2.254 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/0.1674, allocations: 7.938 kB / 344.6 MB, free: 2.246 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001778/0.1692, allocations: 0.9182 MB / 345.5 MB, free: 1.262 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.915e-06/0.1692, allocations: 0 / 345.5 MB, free: 1.262 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004029/0.1696, allocations: 91.81 kB / 345.6 MB, free: 1.172 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.947e-06/0.1697, allocations: 0 / 345.6 MB, free: 1.172 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.885e-05/0.1697, allocations: 8 kB / 345.6 MB, free: 1.164 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.931e-06/0.1697, allocations: 4 kB / 345.6 MB, free: 1.16 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.1697, allocations: 3.938 kB / 345.6 MB, free: 1.156 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001378/0.1711, allocations: 0.6699 MB / 346.2 MB, free: 468 kB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001471/0.1713, allocations: 140.5 kB / 346.4 MB, free: 308 kB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.351e-05/0.1713, allocations: 8 kB / 346.4 MB, free: 300 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002889/0.1716, allocations: 35.95 kB / 346.4 MB, free: 264 kB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.602e-05/0.1717, allocations: 27.91 kB / 346.5 MB, free: 236 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.146e-05/0.1717, allocations: 12 kB / 346.5 MB, free: 224 kB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002998/0.1721, allocations: 251.2 kB / 346.7 MB, free: 15.97 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1721, allocations: 0 / 346.7 MB, free: 15.97 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005855/0.1727, allocations: 140 kB / 346.8 MB, free: 15.84 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.0001353/0.1728, allocations: 111.1 kB / 347 MB, free: 15.72 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001862/0.1747, allocations: 0.6884 MB / 347.6 MB, free: 15.03 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.1747, allocations: 0 / 347.6 MB, free: 15.03 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004515/0.1751, allocations: 183.8 kB / 347.8 MB, free: 14.85 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007868/0.1759, allocations: 93.06 kB / 347.9 MB, free: 14.77 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002128/0.1781, allocations: 1.184 MB / 349.1 MB, free: 13.54 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004862/0.1786, allocations: 0.8198 MB / 349.9 MB, free: 12.7 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002967/0.1789, allocations: 55.25 kB / 350 MB, free: 12.65 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001082/0.179, allocations: 35.44 kB / 350 MB, free: 12.61 MB / 302.1 MB Notification: Performance of SimCode: time 5.71e-07/0.179, allocations: 0 / 350 MB, free: 12.61 MB / 302.1 MB Notification: Performance of Templates: time 0.009661/0.1887, allocations: 4.302 MB / 354.3 MB, free: 8.312 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.makefile (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/PID_Controller/PID_Controller.csv","../files/Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches