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.0008472/0.0008473, allocations: 112.5 kB / 17.28 MB, free: 6.199 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.001032/0.001032, allocations: 185.3 kB / 18.2 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.054/2.054, allocations: 205.1 MB / 224 MB, free: 12.43 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.001226/0.001226, allocations: 47.92 kB / 280.1 MB, free: 3.488 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1286/0.1298, allocations: 46.62 MB / 326.8 MB, free: 4.797 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004996/0.1349, allocations: 3.155 MB / 329.9 MB, free: 1.617 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001937/0.1369, allocations: 0.9942 MB / 330.9 MB, free: 0.6133 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000252/0.1372, allocations: 15.94 kB / 330.9 MB, free: 0.5977 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004305/0.1376, allocations: 71.48 kB / 331 MB, free: 0.5273 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000227/0.1378, allocations: 83.33 kB / 331.1 MB, free: 456 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000553/0.1384, allocations: 203.7 kB / 331.3 MB, free: 252 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005518/0.139, allocations: 0.5223 MB / 331.8 MB, free: 15.72 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003224/0.1393, allocations: 173.2 kB / 332 MB, free: 15.54 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002128/0.1395, allocations: 191.2 kB / 332.2 MB, free: 15.36 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002519/0.1398, allocations: 218.9 kB / 332.4 MB, free: 15.14 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.668e-05/0.1399, allocations: 40 kB / 332.4 MB, free: 15.1 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.765e-05/0.1399, allocations: 40 kB / 332.5 MB, free: 15.06 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001159/0.14, allocations: 103.7 kB / 332.6 MB, free: 14.96 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001791/0.1402, allocations: 218.8 kB / 332.8 MB, free: 14.75 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004784/0.1407, allocations: 490.5 kB / 333.2 MB, free: 14.27 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.1407, allocations: 0 / 333.2 MB, free: 14.27 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.406e-06/0.1407, allocations: 0 / 333.2 MB, free: 14.27 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.538e-06/0.1408, allocations: 3.938 kB / 333.3 MB, free: 14.26 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.001356/0.1421, allocations: 0.7639 MB / 334 MB, free: 13.45 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.923e-05/0.1422, allocations: 15.89 kB / 334 MB, free: 13.43 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.686e-05/0.1423, allocations: 48.38 kB / 334.1 MB, free: 13.39 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004921/0.1428, allocations: 367.6 kB / 334.4 MB, free: 12.99 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.986e-05/0.1428, allocations: 29.38 kB / 334.5 MB, free: 12.96 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.363e-05/0.1429, allocations: 40.28 kB / 334.5 MB, free: 12.92 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008404/0.1437, allocations: 454.7 kB / 334.9 MB, free: 12.45 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.322e-05/0.1438, allocations: 4 kB / 335 MB, free: 12.45 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.672e-05/0.1438, allocations: 20 kB / 335 MB, free: 12.43 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.17e-05/0.1438, allocations: 8 kB / 335 MB, free: 12.42 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008721/0.1447, allocations: 371.6 kB / 335.3 MB, free: 12.06 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002026/0.1468, allocations: 1.582 MB / 336.9 MB, free: 10.38 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007793/0.1476, allocations: 318.6 kB / 337.2 MB, free: 10.06 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003811/0.1479, allocations: 156.8 kB / 337.4 MB, free: 9.906 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.056e-05/0.148, allocations: 7.938 kB / 337.4 MB, free: 9.898 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.212e-05/0.148, allocations: 42.56 kB / 337.4 MB, free: 9.848 MB / 286.1 MB Notification: Performance of pre-optimization done (n=30): time 1.142e-06/0.148, allocations: 0 / 337.4 MB, free: 9.848 MB / 286.1 MB Notification: Performance of matching and sorting (n=32): time 0.00305/0.1511, allocations: 1.388 MB / 338.8 MB, free: 8.367 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.334e-05/0.1512, allocations: 77.11 kB / 338.9 MB, free: 8.273 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003671/0.1516, allocations: 365.6 kB / 339.3 MB, free: 7.906 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.918e-05/0.1516, allocations: 29.7 kB / 339.3 MB, free: 7.871 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001772/0.1518, allocations: 243.9 kB / 339.5 MB, free: 7.629 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001/0.1519, allocations: 122.4 kB / 339.6 MB, free: 7.508 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001225/0.152, allocations: 78.03 kB / 339.7 MB, free: 7.426 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001443/0.1522, allocations: 350.8 kB / 340.1 MB, free: 7.074 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004287/0.1526, allocations: 170.5 kB / 340.2 MB, free: 6.902 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004552/0.1531, allocations: 248.8 kB / 340.5 MB, free: 6.629 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008074/0.1539, allocations: 391.4 kB / 340.9 MB, free: 6.219 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.1539, allocations: 0 / 340.9 MB, free: 6.219 MB / 286.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0009832/0.1549, allocations: 0.4897 MB / 341.3 MB, free: 5.723 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.841e-05/0.1549, allocations: 8 kB / 341.4 MB, free: 5.715 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.054e-05/0.1549, allocations: 0 / 341.4 MB, free: 5.715 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.957e-05/0.1549, allocations: 11.94 kB / 341.4 MB, free: 5.703 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008015/0.1558, allocations: 203.8 kB / 341.6 MB, free: 5.504 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001651/0.1574, allocations: 1.576 MB / 343.1 MB, free: 3.789 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002957/0.1577, allocations: 39.98 kB / 343.2 MB, free: 3.75 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.647e-05/0.1578, allocations: 12.09 kB / 343.2 MB, free: 3.738 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000484/0.1583, allocations: 276.9 kB / 343.5 MB, free: 3.465 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004041/0.1587, allocations: 232.8 kB / 343.7 MB, free: 3.207 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007244/0.1594, allocations: 379.4 kB / 344.1 MB, free: 2.809 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.552e-06/0.1594, allocations: 0 / 344.1 MB, free: 2.809 MB / 286.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.000911/0.1603, allocations: 469 kB / 344.5 MB, free: 2.344 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.362e-05/0.1604, allocations: 7.125 kB / 344.5 MB, free: 2.34 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.1604, allocations: 8.156 kB / 344.5 MB, free: 2.332 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.509e-06/0.1604, allocations: 8 kB / 344.5 MB, free: 2.324 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004502/0.1608, allocations: 115.8 kB / 344.7 MB, free: 2.211 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.869e-06/0.1608, allocations: 7.938 kB / 344.7 MB, free: 2.203 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002755/0.1611, allocations: 35.97 kB / 344.7 MB, free: 2.168 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.35e-05/0.1612, allocations: 19.98 kB / 344.7 MB, free: 2.148 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.0001606/0.1613, allocations: 204.1 kB / 344.9 MB, free: 1.941 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.956e-05/0.1614, allocations: 39.53 kB / 345 MB, free: 1.902 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.314e-05/0.1615, allocations: 44.25 kB / 345 MB, free: 1.859 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.681e-06/0.1615, allocations: 7.938 kB / 345 MB, free: 1.852 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.566e-06/0.1615, allocations: 0 / 345 MB, free: 1.852 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.963e-06/0.1615, allocations: 3.984 kB / 345 MB, free: 1.848 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001539/0.1631, allocations: 0.922 MB / 345.9 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.1631, allocations: 0 / 345.9 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003974/0.1635, allocations: 88 kB / 346 MB, free: 0.7734 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.1635, allocations: 4 kB / 346 MB, free: 0.7695 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.438e-05/0.1635, allocations: 8 kB / 346 MB, free: 0.7617 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.13e-06/0.1635, allocations: 7.984 kB / 346 MB, free: 0.7539 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.1636, allocations: 0 / 346 MB, free: 0.7539 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001273/0.1648, allocations: 0.6774 MB / 346.7 MB, free: 48 kB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001417/0.165, allocations: 132.7 kB / 346.8 MB, free: 15.9 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.666e-05/0.165, allocations: 16.06 kB / 346.9 MB, free: 15.88 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002768/0.1653, allocations: 31.95 kB / 346.9 MB, free: 15.85 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.481e-05/0.1654, allocations: 31.97 kB / 346.9 MB, free: 15.82 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.473e-05/0.1654, allocations: 4 kB / 346.9 MB, free: 15.82 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002433/0.1657, allocations: 255.2 kB / 347.2 MB, free: 15.57 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1657, allocations: 0 / 347.2 MB, free: 15.57 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004876/0.1662, allocations: 139.9 kB / 347.3 MB, free: 15.43 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.0001456/0.1663, allocations: 103.1 kB / 347.4 MB, free: 15.32 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001786/0.1681, allocations: 0.7115 MB / 348.1 MB, free: 14.61 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.1682, allocations: 0 / 348.1 MB, free: 14.61 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004147/0.1686, allocations: 180.3 kB / 348.3 MB, free: 14.44 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007633/0.1693, allocations: 97.47 kB / 348.4 MB, free: 14.34 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001904/0.1713, allocations: 1.183 MB / 349.6 MB, free: 13.12 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003752/0.1717, allocations: 0.8234 MB / 350.4 MB, free: 12.27 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002485/0.1719, allocations: 59.25 kB / 350.5 MB, free: 12.21 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001009/0.172, allocations: 35.42 kB / 350.5 MB, free: 12.18 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.172, allocations: 0 / 350.5 MB, free: 12.18 MB / 302.1 MB Notification: Performance of Templates: time 0.009329/0.1814, allocations: 4.516 MB / 355 MB, free: 7.664 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