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.001078/0.001078, allocations: 80.8 kB / 22.29 MB, free: 2.207 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.001289/0.001289, allocations: 165.2 kB / 25.7 MB, free: 8.434 MB / 18.57 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 0.9629/0.9629, allocations: 158.6 MB / 187.6 MB, free: 2.785 MB / 170.7 MB " [Timeout remaining time 179] 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.683e-06/1.683e-06, allocations: 0 / 251.5 MB, free: 7.254 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.792e-05/1.961e-05, allocations: 6.25 kB / 251.5 MB, free: 7.246 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004593/0.004613, allocations: 3.095 MB / 254.6 MB, free: 4.121 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002166/0.006778, allocations: 1.029 MB / 255.7 MB, free: 3.082 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002683/0.007047, allocations: 19.88 kB / 255.7 MB, free: 3.062 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004113/0.007458, allocations: 91.11 kB / 255.8 MB, free: 2.973 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002864/0.007744, allocations: 115 kB / 255.9 MB, free: 2.859 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005312/0.008276, allocations: 235.5 kB / 256.1 MB, free: 2.629 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005926/0.008868, allocations: 0.53 MB / 256.7 MB, free: 2.098 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002444/0.009113, allocations: 122.3 kB / 256.8 MB, free: 1.973 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003322/0.009445, allocations: 287.2 kB / 257.1 MB, free: 1.691 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002397/0.009684, allocations: 167.5 kB / 257.2 MB, free: 1.527 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 6.804e-05/0.009753, allocations: 40 kB / 257.3 MB, free: 1.488 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.712e-05/0.00981, allocations: 40 kB / 257.3 MB, free: 1.449 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001001/0.00991, allocations: 107.6 kB / 257.4 MB, free: 1.344 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002629/0.01017, allocations: 135.6 kB / 257.5 MB, free: 1.211 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004174/0.01059, allocations: 350.6 kB / 257.9 MB, free: 0.8672 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.793e-06/0.01059, allocations: 0 / 257.9 MB, free: 0.8672 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.422e-06/0.01059, allocations: 0 / 257.9 MB, free: 0.8672 MB / 234.7 MB Notification: Performance of Transformations before backend: time 8.005e-06/0.0106, allocations: 0 / 257.9 MB, free: 0.8672 MB / 234.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.0008865/0.01149, allocations: 0.6595 MB / 258.5 MB, free: 188 kB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.417e-05/0.01152, allocations: 15.92 kB / 258.5 MB, free: 172 kB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.941e-05/0.01162, allocations: 60.89 kB / 258.6 MB, free: 112 kB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004208/0.01204, allocations: 281.5 kB / 258.9 MB, free: 15.81 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.378e-05/0.01208, allocations: 29.38 kB / 258.9 MB, free: 15.79 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.062e-05/0.01214, allocations: 40.36 kB / 259 MB, free: 15.75 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004904/0.01263, allocations: 360.1 kB / 259.3 MB, free: 15.36 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.211e-05/0.01265, allocations: 12.11 kB / 259.3 MB, free: 15.34 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.289e-05/0.01268, allocations: 16.38 kB / 259.3 MB, free: 15.33 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.26e-05/0.01269, allocations: 15.94 kB / 259.3 MB, free: 15.31 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000225/0.01292, allocations: 117.7 kB / 259.5 MB, free: 15.2 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001406/0.01433, allocations: 1.105 MB / 260.6 MB, free: 14.04 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003337/0.01466, allocations: 204.1 kB / 260.8 MB, free: 13.83 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.967e-05/0.01475, allocations: 48.84 kB / 260.8 MB, free: 13.78 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.241e-05/0.01477, allocations: 4 kB / 260.8 MB, free: 13.78 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.3e-05/0.01479, allocations: 34.56 kB / 260.9 MB, free: 13.73 MB / 250.7 MB Notification: Performance of pre-optimization done (n=30): time 1.753e-06/0.0148, allocations: 0 / 260.9 MB, free: 13.73 MB / 250.7 MB Notification: Performance of matching and sorting (n=32): time 0.001331/0.01613, allocations: 0.6385 MB / 261.5 MB, free: 13.04 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.927e-05/0.01617, allocations: 81.11 kB / 261.6 MB, free: 12.95 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002368/0.0164, allocations: 311.2 kB / 261.9 MB, free: 12.63 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.205e-05/0.01642, allocations: 33.7 kB / 261.9 MB, free: 12.59 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.415e-05/0.01652, allocations: 217.1 kB / 262.1 MB, free: 12.38 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.355e-05/0.01657, allocations: 115 kB / 262.2 MB, free: 12.26 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.651e-05/0.01666, allocations: 86.14 kB / 262.3 MB, free: 12.17 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.63e-05/0.01675, allocations: 350.7 kB / 262.7 MB, free: 11.82 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.738e-05/0.01681, allocations: 57.66 kB / 262.7 MB, free: 11.76 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.95e-05/0.01691, allocations: 143.2 kB / 262.9 MB, free: 11.58 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001589/0.01707, allocations: 193.6 kB / 263 MB, free: 11.36 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.01707, allocations: 0 / 263 MB, free: 11.36 MB / 250.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.000221/0.01729, allocations: 228.1 kB / 263.3 MB, free: 11.13 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.112e-05/0.0173, allocations: 8 kB / 263.3 MB, free: 11.12 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/0.01731, allocations: 4 kB / 263.3 MB, free: 11.12 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.407e-05/0.01732, allocations: 7.938 kB / 263.3 MB, free: 11.11 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004264/0.01775, allocations: 184 kB / 263.5 MB, free: 10.93 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005801/0.01833, allocations: 1.246 MB / 264.7 MB, free: 9.598 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001673/0.0185, allocations: 28.11 kB / 264.7 MB, free: 9.57 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.991e-05/0.01852, allocations: 12 kB / 264.7 MB, free: 9.559 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001208/0.01864, allocations: 142.7 kB / 264.9 MB, free: 9.414 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001027/0.01874, allocations: 151.2 kB / 265 MB, free: 9.234 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001588/0.0189, allocations: 190.6 kB / 265.2 MB, free: 9.02 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.633e-06/0.0189, allocations: 0 / 265.2 MB, free: 9.02 MB / 250.7 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0002147/0.01912, allocations: 232.2 kB / 265.4 MB, free: 8.785 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.153e-06/0.01912, allocations: 4 kB / 265.5 MB, free: 8.781 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.587e-06/0.01913, allocations: 4 kB / 265.5 MB, free: 8.777 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.537e-06/0.01913, allocations: 4 kB / 265.5 MB, free: 8.773 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000297/0.01943, allocations: 140 kB / 265.6 MB, free: 8.637 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.436e-06/0.01943, allocations: 4 kB / 265.6 MB, free: 8.633 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001044/0.01954, allocations: 27.92 kB / 265.6 MB, free: 8.605 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.269e-05/0.01955, allocations: 8 kB / 265.6 MB, free: 8.598 MB / 250.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.745e-05/0.01964, allocations: 204.1 kB / 265.8 MB, free: 8.391 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.106e-05/0.01968, allocations: 31.97 kB / 265.9 MB, free: 8.359 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.527e-05/0.01972, allocations: 52.12 kB / 265.9 MB, free: 8.309 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.986e-06/0.01973, allocations: 4 kB / 265.9 MB, free: 8.305 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.264e-06/0.01973, allocations: 3.938 kB / 265.9 MB, free: 8.301 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.01973, allocations: 0 / 265.9 MB, free: 8.301 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004764/0.02021, allocations: 0.4934 MB / 266.4 MB, free: 7.77 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.02021, allocations: 0 / 266.4 MB, free: 7.77 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002041/0.02041, allocations: 83.88 kB / 266.5 MB, free: 7.688 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.744e-06/0.02041, allocations: 4.125 kB / 266.5 MB, free: 7.684 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.385e-05/0.02043, allocations: 15.94 kB / 266.5 MB, free: 7.668 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.02043, allocations: 0 / 266.5 MB, free: 7.668 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.02043, allocations: 4 kB / 266.5 MB, free: 7.664 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002786/0.02071, allocations: 386.7 kB / 266.9 MB, free: 7.258 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.837e-05/0.02077, allocations: 47.64 kB / 266.9 MB, free: 7.211 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.58e-05/0.02079, allocations: 8 kB / 267 MB, free: 7.203 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001025/0.0209, allocations: 19.98 kB / 267 MB, free: 7.184 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.794e-05/0.02094, allocations: 23.95 kB / 267 MB, free: 7.16 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.102e-05/0.02095, allocations: 20.05 kB / 267 MB, free: 7.141 MB / 250.7 MB Notification: Performance of sorting global known variables: time 8.711e-05/0.02104, allocations: 116.7 kB / 267.1 MB, free: 7.023 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02104, allocations: 0 / 267.1 MB, free: 7.023 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002826/0.02132, allocations: 140 kB / 267.3 MB, free: 6.887 MB / 250.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.66e-05/0.0214, allocations: 84.3 kB / 267.4 MB, free: 6.797 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0004266/0.02183, allocations: 339.6 kB / 267.7 MB, free: 6.457 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 5.26e-06/0.02183, allocations: 4 kB / 267.7 MB, free: 6.453 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 8.015e-05/0.02191, allocations: 84.91 kB / 267.8 MB, free: 6.367 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003171/0.02223, allocations: 117.9 kB / 267.9 MB, free: 6.258 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001022/0.02325, allocations: 0.8098 MB / 268.7 MB, free: 5.402 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.522e-05/0.02332, allocations: 109.7 kB / 268.8 MB, free: 5.277 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0001425/0.02346, allocations: 55.23 kB / 268.9 MB, free: 5.227 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001904/0.02365, allocations: 129.3 kB / 269 MB, free: 5.098 MB / 250.7 MB Notification: Performance of SimCode: time 5.51e-07/0.02365, allocations: 4 kB / 269 MB, free: 5.094 MB / 250.7 MB Notification: Performance of Templates: time 0.006986/0.03064, allocations: 5.605 MB / 274.6 MB, free: 15.53 MB / 266.7 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=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) [Timeout 240] 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","",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.7337990812957287]