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.0009786/0.0009786, allocations: 85.05 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.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.001563/0.001563, allocations: 144.1 kB / 24.89 MB, free: 9.164 MB / 18.57 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 0.9904/0.9904, allocations: 173.3 MB / 201.5 MB, free: 9.234 MB / 186.7 MB " [Timeout remaining time 179] 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 1.363e-06/1.363e-06, allocations: 0 / 268.5 MB, free: 6.195 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.854e-05/1.991e-05, allocations: 2.312 kB / 268.5 MB, free: 6.191 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.003199/0.003219, allocations: 3.07 MB / 271.6 MB, free: 3.098 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001387/0.004607, allocations: 1.001 MB / 272.6 MB, free: 2.094 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001725/0.004779, allocations: 15.88 kB / 272.6 MB, free: 2.078 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000291/0.00507, allocations: 83.17 kB / 272.7 MB, free: 1.996 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001941/0.005264, allocations: 111 kB / 272.8 MB, free: 1.887 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003987/0.005663, allocations: 239.5 kB / 273 MB, free: 1.652 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003948/0.006058, allocations: 0.53 MB / 273.5 MB, free: 1.117 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001947/0.006252, allocations: 118.3 kB / 273.6 MB, free: 0.9961 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002295/0.006482, allocations: 283.2 kB / 273.9 MB, free: 0.7188 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001713/0.006653, allocations: 159.5 kB / 274.1 MB, free: 0.5625 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.679e-05/0.0067, allocations: 40 kB / 274.1 MB, free: 0.5234 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001789/0.006879, allocations: 44 kB / 274.2 MB, free: 492 kB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.008e-05/0.006959, allocations: 103.6 kB / 274.3 MB, free: 388 kB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 9.234e-05/0.007051, allocations: 147.6 kB / 274.4 MB, free: 240 kB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003262/0.007378, allocations: 342.6 kB / 274.7 MB, free: 15.9 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.515e-06/0.00738, allocations: 4 kB / 274.7 MB, free: 15.89 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.007381, allocations: 0 / 274.7 MB, free: 15.89 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.07e-06/0.007386, allocations: 0 / 274.7 MB, free: 15.89 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.0006499/0.008036, allocations: 0.6555 MB / 275.4 MB, free: 15.21 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.071e-05/0.008067, allocations: 8.031 kB / 275.4 MB, free: 15.2 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.916e-05/0.008136, allocations: 60.89 kB / 275.5 MB, free: 15.14 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002785/0.008415, allocations: 273.5 kB / 275.7 MB, free: 14.85 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.637e-05/0.008441, allocations: 33.38 kB / 275.8 MB, free: 14.82 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.167e-05/0.008483, allocations: 36.38 kB / 275.8 MB, free: 14.79 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003515/0.008834, allocations: 367.7 kB / 276.2 MB, free: 14.39 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.48e-05/0.008849, allocations: 4 kB / 276.2 MB, free: 14.38 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.24e-05/0.008871, allocations: 19.98 kB / 276.2 MB, free: 14.36 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.118e-05/0.008883, allocations: 11.98 kB / 276.2 MB, free: 14.35 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001533/0.009036, allocations: 113.6 kB / 276.3 MB, free: 14.24 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001035/0.01007, allocations: 1.101 MB / 277.4 MB, free: 13.09 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002708/0.01034, allocations: 200.2 kB / 277.6 MB, free: 12.88 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.986e-05/0.0104, allocations: 52.77 kB / 277.7 MB, free: 12.82 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.149e-05/0.01042, allocations: 12 kB / 277.7 MB, free: 12.81 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.137e-05/0.01044, allocations: 34.56 kB / 277.7 MB, free: 12.77 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 1.964e-06/0.01045, allocations: 0 / 277.7 MB, free: 12.77 MB / 266.7 MB Notification: Performance of matching and sorting (n=32): time 0.0008347/0.01128, allocations: 0.6456 MB / 278.3 MB, free: 12.06 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.033e-05/0.01132, allocations: 81.11 kB / 278.4 MB, free: 11.96 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001902/0.01151, allocations: 323.2 kB / 278.7 MB, free: 11.64 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.62e-05/0.01153, allocations: 29.7 kB / 278.8 MB, free: 11.6 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.459e-05/0.01161, allocations: 205.2 kB / 279 MB, free: 11.4 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.804e-05/0.01167, allocations: 126.9 kB / 279.1 MB, free: 11.27 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.655e-05/0.01175, allocations: 78.14 kB / 279.2 MB, free: 11.19 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.432e-05/0.01183, allocations: 350.7 kB / 279.5 MB, free: 10.84 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.789e-05/0.0119, allocations: 49.67 kB / 279.6 MB, free: 10.79 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001162/0.01202, allocations: 155.2 kB / 279.7 MB, free: 10.6 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001746/0.01219, allocations: 205.6 kB / 279.9 MB, free: 10.37 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.01219, allocations: 0 / 279.9 MB, free: 10.37 MB / 266.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0002361/0.01243, allocations: 220.2 kB / 280.1 MB, free: 10.14 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.378e-05/0.01244, allocations: 7.938 kB / 280.1 MB, free: 10.14 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.081e-06/0.01245, allocations: 8.219 kB / 280.1 MB, free: 10.13 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.479e-05/0.01246, allocations: 4 kB / 280.2 MB, free: 10.12 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004438/0.01291, allocations: 193.3 kB / 280.3 MB, free: 9.938 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000786/0.01369, allocations: 1.238 MB / 281.6 MB, free: 8.617 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001231/0.01382, allocations: 27.97 kB / 281.6 MB, free: 8.59 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.564e-05/0.01383, allocations: 12 kB / 281.6 MB, free: 8.578 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001062/0.01394, allocations: 134.8 kB / 281.7 MB, free: 8.441 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001039/0.01404, allocations: 155.3 kB / 281.9 MB, free: 8.254 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001469/0.01419, allocations: 186.5 kB / 282.1 MB, free: 8.043 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.304e-06/0.01419, allocations: 4 kB / 282.1 MB, free: 8.039 MB / 266.7 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0002049/0.0144, allocations: 220.2 kB / 282.3 MB, free: 7.816 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.294e-06/0.0144, allocations: 8 kB / 282.3 MB, free: 7.809 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.254e-06/0.01441, allocations: 0 / 282.3 MB, free: 7.809 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.827e-06/0.01441, allocations: 4 kB / 282.3 MB, free: 7.805 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002788/0.01469, allocations: 142.8 kB / 282.5 MB, free: 7.668 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.615e-06/0.01469, allocations: 7.938 kB / 282.5 MB, free: 7.66 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001049/0.0148, allocations: 36.16 kB / 282.5 MB, free: 7.625 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.237e-05/0.01481, allocations: 12 kB / 282.5 MB, free: 7.613 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 8.705e-05/0.01489, allocations: 200.1 kB / 282.7 MB, free: 7.41 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.256e-05/0.01494, allocations: 31.97 kB / 282.7 MB, free: 7.379 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.452e-05/0.01498, allocations: 48.03 kB / 282.8 MB, free: 7.332 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.01498, allocations: 0 / 282.8 MB, free: 7.332 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.984e-06/0.01499, allocations: 4 kB / 282.8 MB, free: 7.328 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.01499, allocations: 0 / 282.8 MB, free: 7.328 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005097/0.0155, allocations: 0.505 MB / 283.3 MB, free: 6.789 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.0155, allocations: 4 kB / 283.3 MB, free: 6.785 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002078/0.01571, allocations: 79.89 kB / 283.4 MB, free: 6.707 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.01571, allocations: 0 / 283.4 MB, free: 6.707 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.478e-05/0.01573, allocations: 12 kB / 283.4 MB, free: 6.695 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.605e-06/0.01573, allocations: 4 kB / 283.4 MB, free: 6.691 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.01573, allocations: 0 / 283.4 MB, free: 6.691 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000286/0.01602, allocations: 390.8 kB / 283.8 MB, free: 6.281 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.041e-05/0.01608, allocations: 35.72 kB / 283.8 MB, free: 6.246 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.753e-05/0.01611, allocations: 15.98 kB / 283.8 MB, free: 6.23 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000104/0.01621, allocations: 19.98 kB / 283.8 MB, free: 6.211 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.983e-05/0.01626, allocations: 24.19 kB / 283.9 MB, free: 6.188 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.128e-06/0.01627, allocations: 4 kB / 283.9 MB, free: 6.184 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.056e-05/0.01635, allocations: 120.7 kB / 284 MB, free: 6.066 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01635, allocations: 0 / 284 MB, free: 6.066 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002712/0.01662, allocations: 135.9 kB / 284.1 MB, free: 5.934 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 7.999e-05/0.0167, allocations: 88.36 kB / 284.2 MB, free: 5.84 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004382/0.01714, allocations: 348.6 kB / 284.5 MB, free: 5.492 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 6.072e-06/0.01714, allocations: 4 kB / 284.5 MB, free: 5.488 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 7.981e-05/0.01722, allocations: 88.81 kB / 284.6 MB, free: 5.398 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003334/0.01756, allocations: 122.9 kB / 284.8 MB, free: 5.289 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001152/0.01871, allocations: 0.8077 MB / 285.6 MB, free: 4.438 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.402e-05/0.01877, allocations: 113.6 kB / 285.7 MB, free: 4.309 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001485/0.01892, allocations: 47.25 kB / 285.7 MB, free: 4.262 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001944/0.01912, allocations: 137.2 kB / 285.9 MB, free: 4.125 MB / 266.7 MB Notification: Performance of SimCode: time 9.52e-07/0.01912, allocations: 0 / 285.9 MB, free: 4.125 MB / 266.7 MB Notification: Performance of Templates: time 0.09761/0.1167, allocations: 5.557 MB / 291.4 MB, free: 29.8 MB / 266.7 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=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) [Timeout 240] 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","",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.674109965097159]