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.001659/0.001659, allocations: 84.69 kB / 21.44 MB, free: 296 kB / 14.72 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.001676/0.001676, allocations: 160.9 kB / 24.7 MB, free: 3.551 MB / 14.72 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.399/1.399, allocations: 158.6 MB / 186.5 MB, free: 6.402 MB / 174.1 MB " [Timeout remaining time 178] 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 1.593e-06/1.593e-06, allocations: 0 / 298.9 MB, free: 8.758 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.482e-05/2.641e-05, allocations: 6.281 kB / 298.9 MB, free: 8.75 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.005166/0.005193, allocations: 2.907 MB / 301.8 MB, free: 5.816 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00251/0.007702, allocations: 0.9824 MB / 302.8 MB, free: 4.824 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005397/0.008242, allocations: 15.88 kB / 302.8 MB, free: 4.809 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005393/0.008782, allocations: 87.17 kB / 302.9 MB, free: 4.723 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005432/0.009325, allocations: 118.9 kB / 303 MB, free: 4.605 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007864/0.01011, allocations: 239.4 kB / 303.3 MB, free: 4.371 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009232/0.01103, allocations: 0.5339 MB / 303.8 MB, free: 3.836 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003259/0.01136, allocations: 117.6 kB / 303.9 MB, free: 3.719 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005106/0.01187, allocations: 287.3 kB / 304.2 MB, free: 3.438 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002964/0.01217, allocations: 151.5 kB / 304.4 MB, free: 3.289 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001041/0.01227, allocations: 44 kB / 304.4 MB, free: 3.246 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.403e-05/0.01236, allocations: 40 kB / 304.4 MB, free: 3.207 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001365/0.01249, allocations: 115.6 kB / 304.5 MB, free: 3.094 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003119/0.0128, allocations: 143.6 kB / 304.7 MB, free: 2.953 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007105/0.01351, allocations: 0.5099 MB / 305.2 MB, free: 2.441 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.01352, allocations: 0 / 305.2 MB, free: 2.441 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.01352, allocations: 3.938 kB / 305.2 MB, free: 2.438 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.53e-05/0.01355, allocations: 0 / 305.2 MB, free: 2.438 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.001803/0.01535, allocations: 0.7037 MB / 305.9 MB, free: 1.699 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.699e-05/0.0154, allocations: 15.98 kB / 305.9 MB, free: 1.684 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001268/0.01552, allocations: 56.59 kB / 306 MB, free: 1.629 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007068/0.01623, allocations: 313.4 kB / 306.3 MB, free: 1.297 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.997e-05/0.01627, allocations: 29.31 kB / 306.3 MB, free: 1.27 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.214e-05/0.01636, allocations: 36.38 kB / 306.3 MB, free: 1.234 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001038/0.0174, allocations: 472.7 kB / 306.8 MB, free: 0.7422 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.377e-05/0.01743, allocations: 16.08 kB / 306.8 MB, free: 0.7266 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.83e-05/0.01747, allocations: 12.38 kB / 306.8 MB, free: 0.7148 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.458e-05/0.01749, allocations: 11.94 kB / 306.8 MB, free: 0.7031 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001083/0.01857, allocations: 375.6 kB / 307.2 MB, free: 344 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002372/0.02094, allocations: 1.345 MB / 308.6 MB, free: 14.92 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009064/0.02185, allocations: 309.3 kB / 308.9 MB, free: 14.61 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004652/0.02231, allocations: 160.7 kB / 309 MB, free: 14.45 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.398e-05/0.02235, allocations: 4 kB / 309 MB, free: 14.45 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.251e-05/0.02238, allocations: 34.56 kB / 309.1 MB, free: 14.4 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.593e-06/0.02238, allocations: 4 kB / 309.1 MB, free: 14.4 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.003642/0.02602, allocations: 1.239 MB / 310.3 MB, free: 13.11 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.354e-05/0.02612, allocations: 81.11 kB / 310.4 MB, free: 13.01 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004607/0.02658, allocations: 353.5 kB / 310.7 MB, free: 12.65 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.019e-05/0.02662, allocations: 33.7 kB / 310.8 MB, free: 12.61 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001932/0.02681, allocations: 240.6 kB / 311 MB, free: 12.38 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001132/0.02692, allocations: 122.9 kB / 311.1 MB, free: 12.25 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001517/0.02707, allocations: 78.2 kB / 311.2 MB, free: 12.17 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001913/0.02727, allocations: 354.8 kB / 311.5 MB, free: 11.82 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005128/0.02778, allocations: 174.7 kB / 311.7 MB, free: 11.64 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005658/0.02834, allocations: 267.2 kB / 312 MB, free: 11.34 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001013/0.02936, allocations: 387.5 kB / 312.3 MB, free: 10.94 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.659e-06/0.02936, allocations: 4 kB / 312.3 MB, free: 10.93 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0012/0.03056, allocations: 0.4934 MB / 312.8 MB, free: 10.43 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.161e-05/0.03058, allocations: 11.92 kB / 312.9 MB, free: 10.42 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.077e-05/0.03059, allocations: 4 kB / 312.9 MB, free: 10.42 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.143e-05/0.03062, allocations: 4 kB / 312.9 MB, free: 10.41 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009267/0.03154, allocations: 207.8 kB / 313.1 MB, free: 10.21 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001881/0.03342, allocations: 1.442 MB / 314.5 MB, free: 8.672 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003513/0.03377, allocations: 43.89 kB / 314.5 MB, free: 8.629 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.116e-05/0.03381, allocations: 12 kB / 314.6 MB, free: 8.617 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005767/0.03438, allocations: 277 kB / 314.8 MB, free: 8.344 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005044/0.03489, allocations: 255.2 kB / 315.1 MB, free: 8.059 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008643/0.03575, allocations: 375.4 kB / 315.4 MB, free: 7.664 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.954e-06/0.03575, allocations: 4 kB / 315.4 MB, free: 7.66 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.001101/0.03685, allocations: 469.2 kB / 315.9 MB, free: 7.195 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.426e-05/0.03687, allocations: 8 kB / 315.9 MB, free: 7.188 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.016e-06/0.03687, allocations: 0 / 315.9 MB, free: 7.188 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.272e-06/0.03688, allocations: 4 kB / 315.9 MB, free: 7.184 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005116/0.03739, allocations: 124 kB / 316 MB, free: 7.062 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.868e-06/0.0374, allocations: 11.98 kB / 316.1 MB, free: 7.051 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003206/0.03772, allocations: 35.95 kB / 316.1 MB, free: 7.016 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.665e-05/0.03775, allocations: 16 kB / 316.1 MB, free: 7 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 (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.0001759/0.03792, allocations: 204.1 kB / 316.3 MB, free: 6.793 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.171e-05/0.03799, allocations: 35.77 kB / 316.3 MB, free: 6.758 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.128e-05/0.03809, allocations: 48.14 kB / 316.4 MB, free: 6.707 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.598e-06/0.03809, allocations: 4 kB / 316.4 MB, free: 6.703 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.03809, allocations: 4 kB / 316.4 MB, free: 6.699 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.03e-05/0.0381, allocations: 7.969 kB / 316.4 MB, free: 6.691 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001778/0.03988, allocations: 0.7935 MB / 317.2 MB, free: 5.852 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.04e-06/0.03989, allocations: 7.938 kB / 317.2 MB, free: 5.844 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004767/0.04036, allocations: 83.94 kB / 317.3 MB, free: 5.762 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.719e-06/0.04037, allocations: 0 / 317.3 MB, free: 5.762 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.252e-05/0.0404, allocations: 8 kB / 317.3 MB, free: 5.754 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.143e-06/0.04041, allocations: 7.938 kB / 317.3 MB, free: 5.746 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.74e-06/0.04041, allocations: 3.938 kB / 317.3 MB, free: 5.742 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001571/0.04198, allocations: 0.6709 MB / 318 MB, free: 5.043 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001427/0.04213, allocations: 67.73 kB / 318 MB, free: 4.977 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.387e-05/0.04218, allocations: 8 kB / 318 MB, free: 4.969 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003164/0.0425, allocations: 39.89 kB / 318.1 MB, free: 4.93 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.04e-05/0.04259, allocations: 23.91 kB / 318.1 MB, free: 4.906 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.668e-05/0.04261, allocations: 11.98 kB / 318.1 MB, free: 4.895 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002777/0.04289, allocations: 239.2 kB / 318.4 MB, free: 4.668 MB / 302.1 MB Notification: Performance of sort global known variables: time 8e-08/0.04289, allocations: 0 / 318.4 MB, free: 4.668 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005521/0.04344, allocations: 132 kB / 318.5 MB, free: 4.539 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.0001409/0.04359, allocations: 115.1 kB / 318.6 MB, free: 4.418 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002068/0.04565, allocations: 0.6577 MB / 319.3 MB, free: 3.762 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.04566, allocations: 0 / 319.3 MB, free: 3.762 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005033/0.04616, allocations: 183.7 kB / 319.4 MB, free: 3.582 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006767/0.04684, allocations: 97.75 kB / 319.5 MB, free: 3.484 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001972/0.04881, allocations: 0.9015 MB / 320.4 MB, free: 2.539 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002344/0.04904, allocations: 220.2 kB / 320.6 MB, free: 2.305 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002344/0.04928, allocations: 63.22 kB / 320.7 MB, free: 2.246 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001132/0.04939, allocations: 32.5 kB / 320.7 MB, free: 2.215 MB / 302.1 MB Notification: Performance of SimCode: time 8.31e-07/0.04939, allocations: 0 / 320.7 MB, free: 2.215 MB / 302.1 MB Notification: Performance of Templates: time 0.1477/0.1971, allocations: 4.809 MB / 325.5 MB, free: 33.72 MB / 302.1 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=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.347114369273186]