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.0009019/0.0009019, allocations: 80.8 kB / 21.5 MB, free: 2.988 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.001307/0.001307, allocations: 173.4 kB / 24.92 MB, free: 9.129 MB / 18.57 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 0.9474/0.9474, allocations: 177.1 MB / 205.3 MB, free: 5.488 MB / 186.7 MB " [Timeout remaining time 179] 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.453e-06/1.453e-06, allocations: 0 / 273.5 MB, free: 1.277 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.594e-05/1.739e-05, allocations: 6.312 kB / 273.5 MB, free: 1.27 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.003091/0.003109, allocations: 3.092 MB / 276.6 MB, free: 14.16 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00187/0.004978, allocations: 1.004 MB / 277.6 MB, free: 13.14 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000224/0.005202, allocations: 23.81 kB / 277.6 MB, free: 13.12 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004371/0.005639, allocations: 95.09 kB / 277.7 MB, free: 13.03 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002108/0.00585, allocations: 111 kB / 277.8 MB, free: 12.92 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004427/0.006293, allocations: 223.6 kB / 278 MB, free: 12.7 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005106/0.006803, allocations: 0.53 MB / 278.6 MB, free: 12.17 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002188/0.007022, allocations: 126.3 kB / 278.7 MB, free: 12.04 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002254/0.007248, allocations: 279.4 kB / 278.9 MB, free: 11.77 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001721/0.00742, allocations: 155.5 kB / 279.1 MB, free: 11.62 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.503e-05/0.007465, allocations: 47.94 kB / 279.1 MB, free: 11.57 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.66e-05/0.007501, allocations: 40 kB / 279.2 MB, free: 11.53 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.618e-05/0.007578, allocations: 107.6 kB / 279.3 MB, free: 11.43 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.789e-05/0.007675, allocations: 143.6 kB / 279.4 MB, free: 11.29 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002884/0.007964, allocations: 338.6 kB / 279.8 MB, free: 10.95 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.893e-06/0.007966, allocations: 0 / 279.8 MB, free: 10.95 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.007967, allocations: 0 / 279.8 MB, free: 10.95 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.441e-06/0.007972, allocations: 0 / 279.8 MB, free: 10.95 MB / 266.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.0006453/0.008618, allocations: 0.6594 MB / 280.4 MB, free: 10.27 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.893e-05/0.008646, allocations: 12.03 kB / 280.4 MB, free: 10.25 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.732e-05/0.008714, allocations: 64.88 kB / 280.5 MB, free: 10.19 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002815/0.008995, allocations: 269.5 kB / 280.8 MB, free: 9.902 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.552e-05/0.009021, allocations: 33.36 kB / 280.8 MB, free: 9.871 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.476e-05/0.009066, allocations: 36.38 kB / 280.8 MB, free: 9.836 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003644/0.00943, allocations: 394.7 kB / 281.2 MB, free: 9.406 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.551e-05/0.009446, allocations: 8.141 kB / 281.2 MB, free: 9.398 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.011e-05/0.009466, allocations: 16.38 kB / 281.2 MB, free: 9.383 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.446e-06/0.009474, allocations: 15.94 kB / 281.3 MB, free: 9.367 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001485/0.009623, allocations: 113.7 kB / 281.4 MB, free: 9.254 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001022/0.01064, allocations: 1.101 MB / 282.5 MB, free: 8.102 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002483/0.01089, allocations: 204.3 kB / 282.7 MB, free: 7.887 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.803e-05/0.01095, allocations: 48.78 kB / 282.7 MB, free: 7.836 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.01e-05/0.01097, allocations: 8 kB / 282.7 MB, free: 7.828 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.018e-05/0.01099, allocations: 34.56 kB / 282.8 MB, free: 7.785 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 1.593e-06/0.01099, allocations: 0 / 282.8 MB, free: 7.785 MB / 266.7 MB Notification: Performance of matching and sorting (n=32): time 0.0007967/0.01179, allocations: 0.6525 MB / 283.4 MB, free: 7.074 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.948e-05/0.01183, allocations: 110.8 kB / 283.5 MB, free: 6.941 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000171/0.012, allocations: 307.3 kB / 283.8 MB, free: 6.629 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.65e-05/0.01202, allocations: 29.7 kB / 283.8 MB, free: 6.594 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001313/0.01215, allocations: 213.2 kB / 284.1 MB, free: 6.379 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.684e-05/0.0122, allocations: 118.9 kB / 284.2 MB, free: 6.262 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.014e-05/0.01229, allocations: 74.16 kB / 284.2 MB, free: 6.184 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.921e-05/0.01237, allocations: 354.7 kB / 284.6 MB, free: 5.828 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.75e-05/0.01244, allocations: 61.66 kB / 284.6 MB, free: 5.766 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001246/0.01257, allocations: 181.8 kB / 284.8 MB, free: 5.539 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001719/0.01274, allocations: 197.6 kB / 285 MB, free: 5.316 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.01274, allocations: 4 kB / 285 MB, free: 5.312 MB / 266.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0002387/0.01298, allocations: 228.2 kB / 285.2 MB, free: 5.082 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.348e-05/0.01299, allocations: 4 kB / 285.2 MB, free: 5.078 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.723e-06/0.013, allocations: 4 kB / 285.3 MB, free: 5.074 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.66e-05/0.01302, allocations: 7.938 kB / 285.3 MB, free: 5.066 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004277/0.01344, allocations: 186.4 kB / 285.4 MB, free: 4.887 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006713/0.01412, allocations: 1.242 MB / 286.7 MB, free: 3.562 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001296/0.01424, allocations: 28.11 kB / 286.7 MB, free: 3.535 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.777e-05/0.01426, allocations: 15.98 kB / 286.7 MB, free: 3.52 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001124/0.01437, allocations: 134.7 kB / 286.9 MB, free: 3.383 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001137/0.01449, allocations: 189.7 kB / 287 MB, free: 3.152 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001495/0.01464, allocations: 190.6 kB / 287.2 MB, free: 2.938 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.072e-06/0.01464, allocations: 0 / 287.2 MB, free: 2.938 MB / 266.7 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.000204/0.01484, allocations: 216.2 kB / 287.4 MB, free: 2.719 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.764e-06/0.01485, allocations: 8 kB / 287.4 MB, free: 2.711 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.036e-06/0.01485, allocations: 0 / 287.4 MB, free: 2.711 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.547e-06/0.01486, allocations: 4 kB / 287.5 MB, free: 2.707 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002751/0.01513, allocations: 144 kB / 287.6 MB, free: 2.566 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.669e-06/0.01514, allocations: 7.938 kB / 287.6 MB, free: 2.559 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001094/0.01525, allocations: 23.92 kB / 287.6 MB, free: 2.535 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.387e-05/0.01526, allocations: 15.98 kB / 287.6 MB, free: 2.52 MB / 266.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 9.038e-05/0.01535, allocations: 200.2 kB / 287.8 MB, free: 2.316 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.862e-05/0.01539, allocations: 31.97 kB / 287.9 MB, free: 2.285 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.398e-05/0.01543, allocations: 48.09 kB / 287.9 MB, free: 2.238 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.947e-06/0.01544, allocations: 4 kB / 287.9 MB, free: 2.234 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.086e-06/0.01544, allocations: 3.938 kB / 287.9 MB, free: 2.23 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.439e-06/0.01545, allocations: 0 / 287.9 MB, free: 2.23 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004896/0.01593, allocations: 0.4895 MB / 288.4 MB, free: 1.707 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.045e-06/0.01594, allocations: 4 kB / 288.4 MB, free: 1.703 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003504/0.01629, allocations: 85.86 kB / 288.5 MB, free: 1.621 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.083e-05/0.0163, allocations: 12.06 kB / 288.5 MB, free: 1.609 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.84e-05/0.01635, allocations: 8 kB / 288.5 MB, free: 1.602 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.058e-06/0.01635, allocations: 0 / 288.5 MB, free: 1.602 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.158e-06/0.01636, allocations: 7.938 kB / 288.5 MB, free: 1.594 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004178/0.01677, allocations: 390.6 kB / 288.9 MB, free: 1.184 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.527e-05/0.01686, allocations: 43.69 kB / 288.9 MB, free: 1.141 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.997e-05/0.01689, allocations: 8 kB / 289 MB, free: 1.133 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001371/0.01703, allocations: 19.98 kB / 289 MB, free: 1.113 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.318e-05/0.01709, allocations: 28.12 kB / 289 MB, free: 1.086 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.17e-05/0.0171, allocations: 12 kB / 289 MB, free: 1.074 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001146/0.01722, allocations: 120.7 kB / 289.1 MB, free: 0.9531 MB / 266.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.01722, allocations: 0 / 289.1 MB, free: 0.9531 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003514/0.01757, allocations: 136 kB / 289.3 MB, free: 0.8203 MB / 266.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.0001027/0.01767, allocations: 88.34 kB / 289.4 MB, free: 0.7266 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005325/0.0182, allocations: 344.3 kB / 289.7 MB, free: 396 kB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 8.757e-06/0.01821, allocations: 4 kB / 289.7 MB, free: 392 kB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 8.621e-05/0.0183, allocations: 80.92 kB / 289.8 MB, free: 308 kB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003393/0.01864, allocations: 124.1 kB / 289.9 MB, free: 196 kB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001213/0.01985, allocations: 0.8029 MB / 290.7 MB, free: 15.34 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.336e-05/0.01992, allocations: 113.6 kB / 290.8 MB, free: 15.21 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001808/0.0201, allocations: 47.27 kB / 290.9 MB, free: 15.17 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002108/0.02031, allocations: 137.3 kB / 291 MB, free: 15.03 MB / 282.7 MB Notification: Performance of SimCode: time 1.853e-06/0.02032, allocations: 0 / 291 MB, free: 15.03 MB / 282.7 MB Notification: Performance of Templates: time 0.008802/0.02912, allocations: 5.556 MB / 296.5 MB, free: 9.578 MB / 282.7 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=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.7773832487873733]