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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001375/0.001375, allocations: 109.5 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001392/0.001392, allocations: 184.3 kB / 23.71 MB, free: 4.695 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.441/1.441, allocations: 225.6 MB / 252.5 MB, free: 13 MB / 206.1 MB " [Timeout remaining time 178] 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=5012,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=5012,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") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001609/0.001609, allocations: 47.91 kB / 370.9 MB, free: 9.359 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2439/0.2455, allocations: 52.19 MB / 423.1 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004517/0.2501, allocations: 3.156 MB / 426.3 MB, free: 11.5 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001729/0.2518, allocations: 0.9661 MB / 427.2 MB, free: 10.53 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001934/0.252, allocations: 15.88 kB / 427.2 MB, free: 10.52 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003559/0.2523, allocations: 87.17 kB / 427.3 MB, free: 10.43 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002406/0.2526, allocations: 115 kB / 427.4 MB, free: 10.32 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000544/0.2531, allocations: 246.5 kB / 427.7 MB, free: 10.08 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005782/0.2537, allocations: 0.5224 MB / 428.2 MB, free: 9.551 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002491/0.2539, allocations: 117.7 kB / 428.3 MB, free: 9.438 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002485/0.2542, allocations: 203.2 kB / 428.5 MB, free: 9.238 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002707/0.2545, allocations: 214.9 kB / 428.7 MB, free: 9.027 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.157e-05/0.2545, allocations: 40 kB / 428.8 MB, free: 8.988 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.4e-05/0.2546, allocations: 40 kB / 428.8 MB, free: 8.949 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001236/0.2547, allocations: 107.6 kB / 428.9 MB, free: 8.844 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002159/0.255, allocations: 214.8 kB / 429.1 MB, free: 8.633 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005767/0.2555, allocations: 0.4912 MB / 429.6 MB, free: 8.148 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.2555, allocations: 0 / 429.6 MB, free: 8.148 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.2555, allocations: 4 kB / 429.6 MB, free: 8.145 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.184e-06/0.2556, allocations: 0 / 429.6 MB, free: 8.145 MB / 334.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.001429/0.257, allocations: 0.7154 MB / 430.3 MB, free: 7.395 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.607e-05/0.257, allocations: 12.03 kB / 430.3 MB, free: 7.383 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.335e-05/0.2571, allocations: 56.61 kB / 430.4 MB, free: 7.328 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005296/0.2576, allocations: 302.1 kB / 430.7 MB, free: 7.008 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.875e-05/0.2577, allocations: 29.38 kB / 430.7 MB, free: 6.98 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.443e-05/0.2577, allocations: 43.89 kB / 430.8 MB, free: 6.938 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009559/0.2587, allocations: 450.3 kB / 431.2 MB, free: 6.469 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.822e-05/0.2587, allocations: 0 / 431.2 MB, free: 6.469 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.62e-05/0.2588, allocations: 20 kB / 431.2 MB, free: 6.449 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.52e-05/0.2588, allocations: 12 kB / 431.2 MB, free: 6.438 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00105/0.2598, allocations: 371.6 kB / 431.6 MB, free: 6.074 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002186/0.262, allocations: 1.496 MB / 433.1 MB, free: 4.5 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008816/0.2629, allocations: 303.8 kB / 433.4 MB, free: 4.191 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004788/0.2634, allocations: 160.7 kB / 433.6 MB, free: 4.031 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.875e-05/0.2634, allocations: 4.5 kB / 433.6 MB, free: 4.027 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.162e-05/0.2634, allocations: 38.5 kB / 433.6 MB, free: 3.98 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 1.422e-06/0.2634, allocations: 0 / 433.6 MB, free: 3.98 MB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.003537/0.267, allocations: 1.229 MB / 434.8 MB, free: 2.695 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.348e-05/0.267, allocations: 85.11 kB / 434.9 MB, free: 2.594 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004139/0.2674, allocations: 353.7 kB / 435.3 MB, free: 2.238 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.08e-05/0.2675, allocations: 33.7 kB / 435.3 MB, free: 2.199 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001801/0.2677, allocations: 244.3 kB / 435.5 MB, free: 1.957 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000106/0.2678, allocations: 131.1 kB / 435.7 MB, free: 1.828 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001344/0.2679, allocations: 74.12 kB / 435.7 MB, free: 1.75 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001622/0.2681, allocations: 354.7 kB / 436.1 MB, free: 1.395 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005009/0.2686, allocations: 170.5 kB / 436.2 MB, free: 1.227 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005499/0.2691, allocations: 244.8 kB / 436.5 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009832/0.2701, allocations: 399.6 kB / 436.9 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.2701, allocations: 0 / 436.9 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001215/0.2713, allocations: 496.9 kB / 437.4 MB, free: 44 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.922e-05/0.2713, allocations: 8 kB / 437.4 MB, free: 36 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.2713, allocations: 4.219 kB / 437.4 MB, free: 32 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.943e-05/0.2713, allocations: 8 kB / 437.4 MB, free: 24 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009813/0.2723, allocations: 215.7 kB / 437.6 MB, free: 15.81 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001764/0.2741, allocations: 1.465 MB / 439 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003448/0.2744, allocations: 43.92 kB / 439.1 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.877e-05/0.2745, allocations: 12 kB / 439.1 MB, free: 14.18 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005709/0.275, allocations: 284.9 kB / 439.4 MB, free: 13.9 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005022/0.2755, allocations: 228.8 kB / 439.6 MB, free: 13.65 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008889/0.2764, allocations: 371.7 kB / 440 MB, free: 13.26 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.633e-06/0.2764, allocations: 0 / 440 MB, free: 13.26 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.001074/0.2775, allocations: 472.9 kB / 440.4 MB, free: 12.79 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.183e-05/0.2775, allocations: 7.984 kB / 440.4 MB, free: 12.78 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.695e-06/0.2775, allocations: 7.938 kB / 440.4 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.39e-06/0.2775, allocations: 4 kB / 440.4 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005249/0.2781, allocations: 124 kB / 440.6 MB, free: 12.65 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.101e-06/0.2781, allocations: 4 kB / 440.6 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003107/0.2784, allocations: 35.95 kB / 440.6 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.63e-05/0.2784, allocations: 16 kB / 440.6 MB, free: 12.59 MB / 350.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.000156/0.2786, allocations: 200.4 kB / 440.8 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.243e-05/0.2786, allocations: 43.7 kB / 440.9 MB, free: 12.35 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.623e-05/0.2787, allocations: 44.25 kB / 440.9 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/0.2787, allocations: 8 kB / 440.9 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.475e-06/0.2787, allocations: 0 / 440.9 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.816e-06/0.2787, allocations: 3.984 kB / 440.9 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001785/0.2805, allocations: 0.8878 MB / 441.8 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.19e-06/0.2805, allocations: 4 kB / 441.8 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004452/0.281, allocations: 83.88 kB / 441.9 MB, free: 11.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.775e-06/0.281, allocations: 4 kB / 441.9 MB, free: 11.25 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.719e-05/0.281, allocations: 12.12 kB / 441.9 MB, free: 11.24 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.755e-06/0.281, allocations: 0 / 441.9 MB, free: 11.24 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.46e-06/0.281, allocations: 7.984 kB / 441.9 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00156/0.2826, allocations: 0.6675 MB / 442.6 MB, free: 10.54 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001342/0.2827, allocations: 71.69 kB / 442.7 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.993e-05/0.2828, allocations: 8 kB / 442.7 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000321/0.2831, allocations: 35.95 kB / 442.7 MB, free: 10.42 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.189e-05/0.2832, allocations: 27.89 kB / 442.7 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.077e-05/0.2832, allocations: 12 kB / 442.7 MB, free: 10.38 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002921/0.2835, allocations: 247.1 kB / 443 MB, free: 10.14 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2835, allocations: 0 / 443 MB, free: 10.14 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005405/0.284, allocations: 140 kB / 443.1 MB, free: 10 MB / 350.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.0001223/0.2841, allocations: 111.1 kB / 443.2 MB, free: 9.883 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002143/0.2863, allocations: 0.652 MB / 443.9 MB, free: 9.23 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.2863, allocations: 0 / 443.9 MB, free: 9.23 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005041/0.2868, allocations: 176.3 kB / 444 MB, free: 9.059 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006563/0.2874, allocations: 105.4 kB / 444.1 MB, free: 8.961 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001919/0.2894, allocations: 1.02 MB / 445.2 MB, free: 7.902 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004932/0.2899, allocations: 0.8195 MB / 446 MB, free: 7.059 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.00024/0.2901, allocations: 59.25 kB / 446 MB, free: 7 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001193/0.2902, allocations: 39.42 kB / 446.1 MB, free: 6.961 MB / 350.1 MB Notification: Performance of SimCode: time 4.6e-07/0.2902, allocations: 0 / 446.1 MB, free: 6.961 MB / 350.1 MB Notification: Performance of Templates: time 0.0106/0.3008, allocations: 4.977 MB / 451.1 MB, free: 2.02 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.makefile [Timeout 660] (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) [Timeout 480] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.662126854993403]