Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.00138/0.00138, allocations: 81.8 kB / 20.68 MB, free: 1.039 MB / 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.001625/0.001625, allocations: 168.5 kB / 23.95 MB, free: 4.172 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.471/1.471, allocations: 177.2 MB / 204.3 MB, free: 9.191 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.0_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_4.1.0_Modelica.Blocks.Examples.PID_Controller") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.553e-06/1.553e-06, allocations: 0 / 325 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.863e-05/2.018e-05, allocations: 2.281 kB / 325.1 MB, free: 0.543 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004342/0.004362, allocations: 2.931 MB / 328 MB, free: 14.58 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001922/0.006284, allocations: 0.9762 MB / 329 MB, free: 13.89 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000219/0.006503, allocations: 17.47 kB / 329 MB, free: 13.89 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003475/0.00685, allocations: 87.62 kB / 329.1 MB, free: 13.83 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003183/0.007168, allocations: 110.7 kB / 329.2 MB, free: 13.75 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006255/0.007794, allocations: 232.7 kB / 329.4 MB, free: 13.62 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006555/0.008449, allocations: 0.5303 MB / 329.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002659/0.008715, allocations: 119 kB / 330 MB, free: 13.28 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003787/0.009094, allocations: 279.9 kB / 330.3 MB, free: 13.16 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002602/0.009354, allocations: 155.4 kB / 330.5 MB, free: 13.1 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.309e-05/0.009427, allocations: 40.41 kB / 330.5 MB, free: 13.1 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.771e-05/0.009505, allocations: 41.84 kB / 330.5 MB, free: 13.1 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000141/0.009646, allocations: 107 kB / 330.7 MB, free: 13.03 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001849/0.009831, allocations: 139.7 kB / 330.8 MB, free: 12.96 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006315/0.01046, allocations: 0.5058 MB / 331.3 MB, free: 12.59 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.01047, allocations: 0 / 331.3 MB, free: 12.59 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.32e-07/0.01047, allocations: 0 / 331.3 MB, free: 12.59 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.203e-05/0.01048, allocations: 0 / 331.3 MB, free: 12.59 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.001444/0.01192, allocations: 0.7029 MB / 332 MB, free: 12.02 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.526e-05/0.01196, allocations: 13.91 kB / 332 MB, free: 12.02 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001029/0.01206, allocations: 53.7 kB / 332.1 MB, free: 11.99 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005601/0.01262, allocations: 302.2 kB / 332.4 MB, free: 11.72 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.686e-05/0.01266, allocations: 28.28 kB / 332.4 MB, free: 11.71 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.448e-05/0.01273, allocations: 36.84 kB / 332.4 MB, free: 11.7 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001006/0.01374, allocations: 0.4993 MB / 332.9 MB, free: 11.33 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.705e-05/0.01376, allocations: 10.16 kB / 332.9 MB, free: 11.32 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.284e-05/0.01381, allocations: 15.69 kB / 332.9 MB, free: 11.31 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.355e-05/0.01382, allocations: 13 kB / 333 MB, free: 11.31 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001098/0.01492, allocations: 378.3 kB / 333.3 MB, free: 11.13 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002129/0.01705, allocations: 1.352 MB / 334.7 MB, free: 9.992 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008961/0.01794, allocations: 303.1 kB / 335 MB, free: 9.836 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004632/0.01841, allocations: 154.7 kB / 335.1 MB, free: 9.758 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.91e-05/0.01844, allocations: 3.031 kB / 335.1 MB, free: 9.758 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.048e-05/0.01848, allocations: 37.81 kB / 335.2 MB, free: 9.715 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.603e-06/0.01848, allocations: 0 / 335.2 MB, free: 9.715 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.003519/0.022, allocations: 1.244 MB / 336.4 MB, free: 8.938 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.163e-05/0.02208, allocations: 111 kB / 336.5 MB, free: 8.809 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004113/0.02249, allocations: 345.4 kB / 336.9 MB, free: 8.582 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.666e-05/0.02253, allocations: 30.61 kB / 336.9 MB, free: 8.547 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000195/0.02272, allocations: 245.1 kB / 337.1 MB, free: 8.328 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001007/0.02282, allocations: 120.6 kB / 337.2 MB, free: 8.223 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001356/0.02296, allocations: 76.94 kB / 337.3 MB, free: 8.172 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001746/0.02313, allocations: 352.2 kB / 337.7 MB, free: 7.828 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004959/0.02363, allocations: 168.2 kB / 337.8 MB, free: 7.746 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006853/0.02431, allocations: 313.8 kB / 338.1 MB, free: 7.492 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009915/0.02531, allocations: 392.5 kB / 338.5 MB, free: 7.254 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.459e-06/0.02531, allocations: 4.938 kB / 338.5 MB, free: 7.25 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.00135/0.02666, allocations: 488 kB / 339 MB, free: 6.836 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.975e-05/0.02668, allocations: 15.92 kB / 339 MB, free: 6.82 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.836e-06/0.02669, allocations: 4 kB / 339 MB, free: 6.816 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.003e-05/0.02671, allocations: 8.219 kB / 339 MB, free: 6.809 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009746/0.02768, allocations: 199.7 kB / 339.2 MB, free: 6.613 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002005/0.02969, allocations: 1.45 MB / 340.7 MB, free: 5.066 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004228/0.03011, allocations: 35.95 kB / 340.7 MB, free: 5.031 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.327e-05/0.03015, allocations: 16 kB / 340.7 MB, free: 5.016 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006415/0.03079, allocations: 281 kB / 341 MB, free: 4.738 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005549/0.03134, allocations: 293.7 kB / 341.3 MB, free: 4.406 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008977/0.03224, allocations: 375.7 kB / 341.6 MB, free: 4.012 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.954e-06/0.03224, allocations: 3.938 kB / 341.7 MB, free: 4.008 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.001122/0.03336, allocations: 465 kB / 342.1 MB, free: 3.547 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.295e-05/0.03338, allocations: 4 kB / 342.1 MB, free: 3.543 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.207e-06/0.03339, allocations: 16.19 kB / 342.1 MB, free: 3.527 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.133e-06/0.03339, allocations: 4 kB / 342.1 MB, free: 3.523 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000532/0.03392, allocations: 111.9 kB / 342.2 MB, free: 3.414 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.348e-06/0.03393, allocations: 4 kB / 342.2 MB, free: 3.41 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003396/0.03427, allocations: 39.95 kB / 342.3 MB, free: 3.371 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.741e-05/0.0343, allocations: 16 kB / 342.3 MB, free: 3.355 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.0001751/0.03447, allocations: 212.1 kB / 342.5 MB, free: 3.137 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.278e-05/0.03454, allocations: 35.77 kB / 342.5 MB, free: 3.102 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000102/0.03465, allocations: 44.09 kB / 342.6 MB, free: 3.051 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/0.03465, allocations: 4 kB / 342.6 MB, free: 3.047 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.339e-06/0.03465, allocations: 0 / 342.6 MB, free: 3.047 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.863e-06/0.03466, allocations: 3.984 kB / 342.6 MB, free: 3.043 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001744/0.03641, allocations: 0.7912 MB / 343.4 MB, free: 2.207 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.13e-06/0.03641, allocations: 7.938 kB / 343.4 MB, free: 2.199 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004581/0.03687, allocations: 83.88 kB / 343.5 MB, free: 2.117 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.316e-06/0.03688, allocations: 7.938 kB / 343.5 MB, free: 2.109 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.917e-05/0.03691, allocations: 16.12 kB / 343.5 MB, free: 2.094 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.899e-06/0.03691, allocations: 3.938 kB / 343.5 MB, free: 2.09 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/0.03692, allocations: 4 kB / 343.5 MB, free: 2.086 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001649/0.03856, allocations: 0.6679 MB / 344.2 MB, free: 1.391 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001448/0.03871, allocations: 59.78 kB / 344.2 MB, free: 1.332 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.503e-05/0.03876, allocations: 8 kB / 344.2 MB, free: 1.324 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003327/0.0391, allocations: 39.89 kB / 344.3 MB, free: 1.285 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.316e-05/0.03919, allocations: 27.95 kB / 344.3 MB, free: 1.258 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.875e-05/0.03921, allocations: 8 kB / 344.3 MB, free: 1.25 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003002/0.03951, allocations: 239.2 kB / 344.5 MB, free: 1.023 MB / 302.1 MB Notification: Performance of sort global known variables: time 2e-07/0.03951, allocations: 0 / 344.5 MB, free: 1.023 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006625/0.04017, allocations: 132 kB / 344.7 MB, free: 0.8945 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.0001436/0.04032, allocations: 103.2 kB / 344.8 MB, free: 0.7852 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00222/0.04254, allocations: 0.6522 MB / 345.4 MB, free: 136 kB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 7.614e-06/0.04254, allocations: 7.938 kB / 345.4 MB, free: 128 kB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005409/0.04308, allocations: 180.4 kB / 345.6 MB, free: 15.95 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007141/0.0438, allocations: 91.27 kB / 345.7 MB, free: 15.86 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002115/0.04591, allocations: 0.9055 MB / 346.6 MB, free: 14.91 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000241/0.04615, allocations: 216.1 kB / 346.8 MB, free: 14.68 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002599/0.04641, allocations: 55.25 kB / 346.9 MB, free: 14.62 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001168/0.04653, allocations: 32.48 kB / 346.9 MB, free: 14.59 MB / 318.1 MB Notification: Performance of SimCode: time 1.062e-06/0.04653, allocations: 11.88 kB / 346.9 MB, free: 14.58 MB / 318.1 MB Notification: Performance of Templates: time 0.01129/0.05782, allocations: 4.799 MB / 351.7 MB, free: 9.867 MB / 318.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.sim & ./Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/PID_Controller/PID_Controller.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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.629902023822069]