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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001034/0.001034, allocations: 85.95 kB / 22.21 MB, free: 2.289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001212/0.001212, allocations: 161.2 kB / 25.6 MB, free: 8.895 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.03/1.03, allocations: 158.6 MB / 187.5 MB, free: 2.816 MB / 170.7 MB " [Timeout remaining time 179] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.PID_Controller,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,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=5012,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") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.975e-06/2.975e-06, allocations: 0 / 251.4 MB, free: 7.281 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.451e-05/4.749e-05, allocations: 6.312 kB / 251.5 MB, free: 7.273 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.00494/0.004987, allocations: 3.041 MB / 254.5 MB, free: 4.207 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002332/0.007319, allocations: 0.9902 MB / 255.5 MB, free: 3.207 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003405/0.00766, allocations: 23.81 kB / 255.5 MB, free: 3.184 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004038/0.008064, allocations: 91.11 kB / 255.6 MB, free: 3.094 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000299/0.008363, allocations: 118.9 kB / 255.7 MB, free: 2.977 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005941/0.008957, allocations: 227.6 kB / 255.9 MB, free: 2.754 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005279/0.009485, allocations: 0.5377 MB / 256.5 MB, free: 2.215 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002852/0.00977, allocations: 113.7 kB / 256.6 MB, free: 2.098 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003361/0.01011, allocations: 287.4 kB / 256.9 MB, free: 1.816 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002389/0.01034, allocations: 159.4 kB / 257 MB, free: 1.66 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 6.479e-05/0.01041, allocations: 40 kB / 257.1 MB, free: 1.621 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.773e-05/0.01047, allocations: 40 kB / 257.1 MB, free: 1.578 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001137/0.01058, allocations: 115.5 kB / 257.2 MB, free: 1.465 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001338/0.01071, allocations: 139.6 kB / 257.3 MB, free: 1.328 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004331/0.01115, allocations: 338.6 kB / 257.7 MB, free: 0.9961 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.818e-06/0.01115, allocations: 0 / 257.7 MB, free: 0.9961 MB / 234.7 MB Notification: Performance of FrontEnd: time 8.01e-07/0.01115, allocations: 4 kB / 257.7 MB, free: 0.9922 MB / 234.7 MB Notification: Performance of Transformations before backend: time 5.751e-06/0.01116, allocations: 0 / 257.7 MB, free: 0.9922 MB / 234.7 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.0009687/0.01213, allocations: 0.788 MB / 258.5 MB, free: 172 kB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.784e-05/0.01219, allocations: 11.98 kB / 258.5 MB, free: 160 kB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001278/0.01232, allocations: 88.61 kB / 258.6 MB, free: 72 kB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004708/0.01279, allocations: 332.1 kB / 258.9 MB, free: 15.72 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.652e-05/0.01283, allocations: 25.38 kB / 258.9 MB, free: 15.7 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.199e-05/0.01289, allocations: 36.38 kB / 258.9 MB, free: 15.66 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004856/0.01338, allocations: 377.1 kB / 259.3 MB, free: 15.25 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.795e-05/0.0134, allocations: 8.141 kB / 259.3 MB, free: 15.24 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.36e-05/0.01342, allocations: 12.38 kB / 259.3 MB, free: 15.23 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.189e-05/0.01343, allocations: 15.94 kB / 259.4 MB, free: 15.21 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001761/0.01361, allocations: 130.8 kB / 259.5 MB, free: 15.09 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001436/0.01504, allocations: 1.533 MB / 261 MB, free: 13.48 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003081/0.01535, allocations: 171.2 kB / 261.2 MB, free: 13.3 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.006e-05/0.01542, allocations: 59.66 kB / 261.2 MB, free: 13.24 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.341e-05/0.01545, allocations: 4 kB / 261.2 MB, free: 13.24 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.555e-05/0.01547, allocations: 37.39 kB / 261.3 MB, free: 13.19 MB / 250.7 MB Notification: Performance of pre-optimization done (n=30): time 1.783e-06/0.01547, allocations: 4 kB / 261.3 MB, free: 13.19 MB / 250.7 MB Notification: Performance of matching and sorting (n=32): time 0.0009481/0.01642, allocations: 0.6783 MB / 262 MB, free: 12.45 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.857e-05/0.01647, allocations: 81.11 kB / 262 MB, free: 12.35 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002774/0.01675, allocations: 370.5 kB / 262.4 MB, free: 11.98 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.393e-05/0.01677, allocations: 33.7 kB / 262.4 MB, free: 11.94 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001727/0.01694, allocations: 299.2 kB / 262.7 MB, free: 11.64 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.485e-05/0.01703, allocations: 115 kB / 262.8 MB, free: 11.53 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001129/0.01714, allocations: 87.77 kB / 262.9 MB, free: 11.43 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001969/0.01734, allocations: 0.5273 MB / 263.5 MB, free: 10.89 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.084e-05/0.01742, allocations: 57.64 kB / 263.5 MB, free: 10.83 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001408/0.01756, allocations: 187.5 kB / 263.7 MB, free: 10.6 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002004/0.01776, allocations: 201.5 kB / 263.9 MB, free: 10.36 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.01776, allocations: 0 / 263.9 MB, free: 10.36 MB / 250.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0003015/0.01806, allocations: 289.1 kB / 264.2 MB, free: 10.07 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.592e-05/0.01808, allocations: 8 kB / 264.2 MB, free: 10.07 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.071e-05/0.01809, allocations: 7.922 kB / 264.2 MB, free: 10.06 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.041e-05/0.01811, allocations: 8 kB / 264.2 MB, free: 10.05 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003785/0.01849, allocations: 160 kB / 264.4 MB, free: 9.895 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001153/0.01964, allocations: 1.826 MB / 266.2 MB, free: 7.953 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001409/0.01978, allocations: 28.11 kB / 266.2 MB, free: 7.926 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.703e-05/0.0198, allocations: 12 kB / 266.2 MB, free: 7.914 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001384/0.01994, allocations: 183.8 kB / 266.4 MB, free: 7.73 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001294/0.02007, allocations: 183.4 kB / 266.6 MB, free: 7.508 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001858/0.02025, allocations: 213.2 kB / 266.8 MB, free: 7.262 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.134e-06/0.02026, allocations: 4.031 kB / 266.8 MB, free: 7.258 MB / 250.7 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0002592/0.02051, allocations: 285 kB / 267.1 MB, free: 6.973 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.274e-05/0.02053, allocations: 8 kB / 267.1 MB, free: 6.965 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.406e-06/0.02053, allocations: 0 / 267.1 MB, free: 6.965 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.382e-06/0.02054, allocations: 4 kB / 267.1 MB, free: 6.961 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002157/0.02075, allocations: 107.9 kB / 267.2 MB, free: 6.855 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.763e-06/0.02076, allocations: 12.14 kB / 267.2 MB, free: 6.844 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001033/0.02086, allocations: 23.98 kB / 267.2 MB, free: 6.82 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.283e-05/0.02088, allocations: 12 kB / 267.2 MB, free: 6.809 MB / 250.7 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 (PI.I.local_reset,integrator.local_reset,kinematicPTP.noWphase) * 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.0001348/0.02101, allocations: 295.9 kB / 267.5 MB, free: 6.512 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.892e-05/0.02106, allocations: 47.77 kB / 267.6 MB, free: 6.465 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.077e-05/0.02111, allocations: 44.14 kB / 267.6 MB, free: 6.422 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.02111, allocations: 4 kB / 267.6 MB, free: 6.418 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/0.02112, allocations: 0 / 267.6 MB, free: 6.418 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.13e-06/0.02112, allocations: 3.984 kB / 267.6 MB, free: 6.414 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006732/0.0218, allocations: 0.6053 MB / 268.2 MB, free: 5.758 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/0.0218, allocations: 4 kB / 268.2 MB, free: 5.754 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001882/0.02199, allocations: 75.89 kB / 268.3 MB, free: 5.68 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.247e-06/0.02199, allocations: 0 / 268.3 MB, free: 5.68 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.498e-05/0.02201, allocations: 8 kB / 268.3 MB, free: 5.672 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.536e-06/0.02201, allocations: 7.938 kB / 268.3 MB, free: 5.664 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.235e-06/0.02201, allocations: 0 / 268.3 MB, free: 5.664 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003614/0.02237, allocations: 451.6 kB / 268.8 MB, free: 5.188 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.424e-05/0.02246, allocations: 55.73 kB / 268.8 MB, free: 5.133 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.583e-05/0.02248, allocations: 15.92 kB / 268.8 MB, free: 5.117 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001038/0.02259, allocations: 19.98 kB / 268.8 MB, free: 5.098 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.153e-05/0.02265, allocations: 31.83 kB / 268.9 MB, free: 5.066 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.959e-06/0.02266, allocations: 8 kB / 268.9 MB, free: 5.059 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001393/0.0228, allocations: 239 kB / 269.1 MB, free: 4.824 MB / 250.7 MB Notification: Performance of sort global known variables: time 7e-08/0.0228, allocations: 0 / 269.1 MB, free: 4.824 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0003549/0.02315, allocations: 140 kB / 269.3 MB, free: 4.688 MB / 250.7 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.0001206/0.02327, allocations: 107.3 kB / 269.4 MB, free: 4.57 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0005694/0.02384, allocations: 361.3 kB / 269.7 MB, free: 4.207 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.02385, allocations: 256 / 269.7 MB, free: 4.207 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 9.579e-05/0.02394, allocations: 91.72 kB / 269.8 MB, free: 4.113 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004206/0.02436, allocations: 120 kB / 269.9 MB, free: 4.008 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002104/0.02647, allocations: 0.8824 MB / 270.8 MB, free: 3.074 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001101/0.02658, allocations: 109.7 kB / 270.9 MB, free: 2.949 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0002659/0.02684, allocations: 47.27 kB / 271 MB, free: 2.906 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002883/0.02713, allocations: 162.1 kB / 271.1 MB, free: 2.746 MB / 250.7 MB Notification: Performance of SimCode: time 1.383e-06/0.02713, allocations: 4 kB / 271.1 MB, free: 2.742 MB / 250.7 MB Notification: Performance of Templates: time 0.01285/0.03999, allocations: 5.308 MB / 276.4 MB, free: 13.46 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.1301944800652564]