Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.00111/0.00111, allocations: 92.97 kB / 16.32 MB, free: 5.562 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.001291/0.001291, allocations: 181 kB / 17.21 MB, free: 5.484 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.495/1.495, allocations: 223.2 MB / 241.2 MB, free: 14.57 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002886/0.0002887, allocations: 4 kB / 300.8 MB, free: 6.203 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1188/0.1191, allocations: 50.42 MB / 351.2 MB, free: 3.773 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.00411/0.1233, allocations: 2.639 MB / 353.9 MB, free: 1.109 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002324/0.1257, allocations: 0.9119 MB / 354.8 MB, free: 200 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005386/0.1262, allocations: 15.94 kB / 354.8 MB, free: 184 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004404/0.1267, allocations: 63.48 kB / 354.9 MB, free: 120 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004321/0.1271, allocations: 79.33 kB / 354.9 MB, free: 40 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007469/0.1279, allocations: 171 kB / 355.1 MB, free: 15.88 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007424/0.1286, allocations: 467 kB / 355.6 MB, free: 15.41 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003642/0.129, allocations: 131.6 kB / 355.7 MB, free: 15.28 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003289/0.1294, allocations: 151.2 kB / 355.8 MB, free: 15.13 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003014/0.1297, allocations: 171.1 kB / 356 MB, free: 14.96 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.803e-05/0.1297, allocations: 16 kB / 356 MB, free: 14.95 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.532e-05/0.1298, allocations: 16 kB / 356 MB, free: 14.93 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.716e-05/0.1299, allocations: 67.69 kB / 356.1 MB, free: 14.87 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001102/0.13, allocations: 93.45 kB / 356.2 MB, free: 14.77 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003656/0.1304, allocations: 351.4 kB / 356.5 MB, free: 14.43 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.205e-06/0.1304, allocations: 4 kB / 356.5 MB, free: 14.42 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.1304, allocations: 0 / 356.5 MB, free: 14.42 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.172e-05/0.1305, allocations: 0 / 356.5 MB, free: 14.42 MB / 302.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.001417/0.1319, allocations: 0.7093 MB / 357.3 MB, free: 13.66 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.144e-05/0.1319, allocations: 8.031 kB / 357.3 MB, free: 13.66 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001386/0.1321, allocations: 55.42 kB / 357.3 MB, free: 13.6 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005323/0.1326, allocations: 342.6 kB / 357.7 MB, free: 13.23 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.234e-05/0.1327, allocations: 29 kB / 357.7 MB, free: 13.2 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.624e-05/0.1327, allocations: 47.92 kB / 357.7 MB, free: 13.16 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009486/0.1337, allocations: 458.4 kB / 358.2 MB, free: 12.68 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.252e-05/0.1337, allocations: 11.78 kB / 358.2 MB, free: 12.67 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.7e-05/0.1338, allocations: 19.95 kB / 358.2 MB, free: 12.65 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.293e-05/0.1338, allocations: 12 kB / 358.2 MB, free: 12.64 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009981/0.1348, allocations: 423.6 kB / 358.6 MB, free: 12.22 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00226/0.1371, allocations: 1.579 MB / 360.2 MB, free: 10.55 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008096/0.1379, allocations: 339.8 kB / 360.5 MB, free: 10.21 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004306/0.1383, allocations: 192.6 kB / 360.7 MB, free: 10.02 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.414e-05/0.1384, allocations: 4 kB / 360.7 MB, free: 10.02 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.457e-05/0.1384, allocations: 34.55 kB / 360.8 MB, free: 9.973 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.703e-06/0.1384, allocations: 8 kB / 360.8 MB, free: 9.965 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.003321/0.1417, allocations: 1.503 MB / 362.3 MB, free: 8.367 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.382e-05/0.1418, allocations: 81.11 kB / 362.4 MB, free: 8.27 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004553/0.1423, allocations: 361.6 kB / 362.7 MB, free: 7.91 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.909e-05/0.1423, allocations: 29.7 kB / 362.7 MB, free: 7.875 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001845/0.1425, allocations: 239.9 kB / 363 MB, free: 7.637 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001041/0.1426, allocations: 122.2 kB / 363.1 MB, free: 7.516 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.953e-05/0.1427, allocations: 12 kB / 363.1 MB, free: 7.504 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001553/0.1428, allocations: 346.8 kB / 363.4 MB, free: 7.156 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005515/0.1434, allocations: 184.8 kB / 363.6 MB, free: 6.973 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004856/0.1439, allocations: 276.8 kB / 363.9 MB, free: 6.676 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004642/0.1444, allocations: 199.9 kB / 364.1 MB, free: 6.48 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.534e-06/0.1444, allocations: 3.938 kB / 364.1 MB, free: 6.477 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001089/0.1455, allocations: 0.5281 MB / 364.6 MB, free: 5.941 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001057/0.1456, allocations: 144.5 kB / 364.8 MB, free: 5.77 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/0.1456, allocations: 0 / 364.8 MB, free: 5.77 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.982e-05/0.1456, allocations: 7.953 kB / 364.8 MB, free: 5.762 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000875/0.1465, allocations: 259.7 kB / 365 MB, free: 5.508 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001696/0.1482, allocations: 1.536 MB / 366.6 MB, free: 3.84 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003473/0.1486, allocations: 60.08 kB / 366.6 MB, free: 3.781 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.641e-05/0.1486, allocations: 16 kB / 366.6 MB, free: 3.766 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.501e-05/0.1486, allocations: 4 kB / 366.6 MB, free: 3.762 MB / 302.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009409/0.1496, allocations: 447.6 kB / 367.1 MB, free: 3.324 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.709e-06/0.1496, allocations: 0 / 367.1 MB, free: 3.324 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.635e-06/0.1496, allocations: 4.156 kB / 367.1 MB, free: 3.32 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004815/0.1501, allocations: 131.8 kB / 367.2 MB, free: 3.191 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.068e-05/0.1501, allocations: 4 kB / 367.2 MB, free: 3.188 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003047/0.1504, allocations: 47.97 kB / 367.3 MB, free: 3.141 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.67e-05/0.1505, allocations: 12 kB / 367.3 MB, free: 3.129 MB / 302.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 (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003394/0.1508, allocations: 248.9 kB / 367.5 MB, free: 2.875 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.16e-05/0.1509, allocations: 35.53 kB / 367.5 MB, free: 2.84 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.493e-05/0.151, allocations: 44.25 kB / 367.6 MB, free: 2.797 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.322e-06/0.151, allocations: 7.984 kB / 367.6 MB, free: 2.789 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.151, allocations: 0 / 367.6 MB, free: 2.789 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.195e-06/0.1511, allocations: 7.984 kB / 367.6 MB, free: 2.781 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00173/0.1528, allocations: 0.9619 MB / 368.6 MB, free: 1.754 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.918e-06/0.1528, allocations: 0 / 368.6 MB, free: 1.754 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004154/0.1532, allocations: 96 kB / 368.7 MB, free: 1.66 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.474e-06/0.1532, allocations: 4 kB / 368.7 MB, free: 1.656 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.901e-05/0.1533, allocations: 15.98 kB / 368.7 MB, free: 1.641 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.669e-06/0.1533, allocations: 4 kB / 368.7 MB, free: 1.637 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.529e-06/0.1533, allocations: 3.953 kB / 368.7 MB, free: 1.633 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00149/0.1548, allocations: 0.7324 MB / 369.4 MB, free: 0.8711 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001514/0.155, allocations: 136.7 kB / 369.6 MB, free: 0.7188 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.21e-05/0.155, allocations: 7.984 kB / 369.6 MB, free: 0.7109 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002863/0.1553, allocations: 47.97 kB / 369.6 MB, free: 0.6641 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.063e-05/0.1554, allocations: 27.86 kB / 369.6 MB, free: 0.6367 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.776e-05/0.1554, allocations: 11.98 kB / 369.7 MB, free: 0.625 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002648/0.1557, allocations: 243.2 kB / 369.9 MB, free: 400 kB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1557, allocations: 0 / 369.9 MB, free: 400 kB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005519/0.1563, allocations: 136 kB / 370 MB, free: 264 kB / 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001334/0.1564, allocations: 107.2 kB / 370.1 MB, free: 144 kB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.1906/0.347, allocations: 0.7876 MB / 370.9 MB, free: 25.54 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.481e-06/0.3471, allocations: 0 / 370.9 MB, free: 25.54 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000528/0.3476, allocations: 208.2 kB / 371.1 MB, free: 25.54 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008082/0.3484, allocations: 94.03 kB / 371.2 MB, free: 25.54 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002329/0.3508, allocations: 1.212 MB / 372.4 MB, free: 24.92 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003085/0.3511, allocations: 0.8175 MB / 373.2 MB, free: 24.21 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002858/0.3514, allocations: 65.48 kB / 373.3 MB, free: 24.2 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.512e-05/0.3515, allocations: 33.73 kB / 373.3 MB, free: 24.19 MB / 302.1 MB Notification: Performance of SimCode: time 9.92e-07/0.3515, allocations: 0 / 373.3 MB, free: 24.19 MB / 302.1 MB Notification: Performance of Templates: time 0.009761/0.3612, allocations: 4.113 MB / 377.4 MB, free: 23.94 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.makefile (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/PID_Controller/PID_Controller.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches