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.001292/0.001292, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001894/0.003186, allocations: 449.7 kB / 10.37 MB, free: 332 kB / 10.45 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.001014/0.001014, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001465/0.002479, allocations: 459.6 kB / 11.69 MB, free: 2.48 MB / 13.93 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.9853/0.9853, allocations: 173.4 MB / 185.8 MB, free: 8.984 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09006/1.075, allocations: 52.5 MB / 238.3 MB, free: 4.426 MB / 234.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 2.114e-06/2.114e-06, allocations: 0 / 239.5 MB, free: 3.176 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.879e-05/3.091e-05, allocations: 6.312 kB / 239.5 MB, free: 3.168 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.003742/0.003773, allocations: 3.082 MB / 242.6 MB, free: 68 kB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001457/0.00523, allocations: 0.985 MB / 243.6 MB, free: 15.08 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000207/0.005437, allocations: 19.81 kB / 243.6 MB, free: 15.06 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002663/0.005703, allocations: 87.17 kB / 243.7 MB, free: 14.97 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001941/0.005897, allocations: 115 kB / 243.8 MB, free: 14.86 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004298/0.006327, allocations: 235.5 kB / 244.1 MB, free: 14.63 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004862/0.006813, allocations: 0.5183 MB / 244.6 MB, free: 14.11 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002333/0.007047, allocations: 130.2 kB / 244.7 MB, free: 13.97 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003034/0.00735, allocations: 322.5 kB / 245 MB, free: 13.66 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001881/0.007538, allocations: 159.5 kB / 245.2 MB, free: 13.5 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.214e-05/0.00759, allocations: 43.94 kB / 245.2 MB, free: 13.46 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.087e-05/0.007631, allocations: 44 kB / 245.3 MB, free: 13.41 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 7.411e-05/0.007705, allocations: 75.69 kB / 245.3 MB, free: 13.34 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 9.677e-05/0.007802, allocations: 115.7 kB / 245.4 MB, free: 13.23 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003305/0.008133, allocations: 302.8 kB / 245.7 MB, free: 12.93 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.437e-05/0.008147, allocations: 0 / 245.7 MB, free: 12.93 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.72e-07/0.008148, allocations: 0 / 245.7 MB, free: 12.93 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.934e-05/0.008167, allocations: 8 kB / 245.8 MB, free: 12.92 MB / 250.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.0008608/0.009028, allocations: 0.7372 MB / 246.5 MB, free: 12.16 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.299e-05/0.009061, allocations: 8.031 kB / 246.5 MB, free: 12.15 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.217e-05/0.009133, allocations: 64.88 kB / 246.6 MB, free: 12.09 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003086/0.009442, allocations: 273.4 kB / 246.8 MB, free: 11.8 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.576e-05/0.009478, allocations: 29.38 kB / 246.9 MB, free: 11.77 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.598e-05/0.009524, allocations: 40.33 kB / 246.9 MB, free: 11.73 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003742/0.009898, allocations: 371.7 kB / 247.3 MB, free: 11.34 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.751e-05/0.009915, allocations: 11.98 kB / 247.3 MB, free: 11.32 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.063e-05/0.009936, allocations: 19.94 kB / 247.3 MB, free: 11.3 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.077e-06/0.009945, allocations: 8 kB / 247.3 MB, free: 11.3 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001544/0.0101, allocations: 117.7 kB / 247.4 MB, free: 11.18 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001211/0.01131, allocations: 1.105 MB / 248.5 MB, free: 10.02 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003441/0.01165, allocations: 203 kB / 248.7 MB, free: 9.812 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.289e-05/0.01172, allocations: 52.83 kB / 248.8 MB, free: 9.758 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.753e-05/0.01174, allocations: 4 kB / 248.8 MB, free: 9.754 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.685e-05/0.01177, allocations: 38.5 kB / 248.8 MB, free: 9.707 MB / 250.7 MB Notification: Performance of pre-optimization done (n=30): time 1.443e-06/0.01177, allocations: 4 kB / 248.8 MB, free: 9.703 MB / 250.7 MB Notification: Performance of matching and sorting (n=32): time 0.0009065/0.01268, allocations: 0.634 MB / 249.4 MB, free: 9.012 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.692e-05/0.01272, allocations: 59.34 kB / 249.5 MB, free: 8.941 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000199/0.01292, allocations: 307.2 kB / 249.8 MB, free: 8.629 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.996e-05/0.01294, allocations: 29.7 kB / 249.8 MB, free: 8.594 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001049/0.01304, allocations: 209.2 kB / 250 MB, free: 8.387 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.039e-05/0.01311, allocations: 126.9 kB / 250.2 MB, free: 8.262 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.225e-05/0.01319, allocations: 82.14 kB / 250.2 MB, free: 8.176 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001022/0.01329, allocations: 354.7 kB / 250.6 MB, free: 7.82 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.4e-05/0.01337, allocations: 49.67 kB / 250.6 MB, free: 7.766 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001215/0.01349, allocations: 155.2 kB / 250.8 MB, free: 7.578 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001599/0.01365, allocations: 193.7 kB / 251 MB, free: 7.359 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.694e-06/0.01365, allocations: 0 / 251 MB, free: 7.359 MB / 250.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0002249/0.01388, allocations: 228 kB / 251.2 MB, free: 7.129 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.657e-05/0.01389, allocations: 8 kB / 251.2 MB, free: 7.121 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/0.0139, allocations: 3.938 kB / 251.2 MB, free: 7.117 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.306e-05/0.01391, allocations: 4 kB / 251.2 MB, free: 7.113 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004779/0.01439, allocations: 204 kB / 251.4 MB, free: 6.914 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000714/0.0151, allocations: 1.25 MB / 252.7 MB, free: 5.582 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001217/0.01523, allocations: 27.98 kB / 252.7 MB, free: 5.555 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.628e-05/0.01524, allocations: 15.98 kB / 252.7 MB, free: 5.539 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001075/0.01535, allocations: 130.8 kB / 252.8 MB, free: 5.402 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001056/0.01546, allocations: 159.1 kB / 253 MB, free: 5.211 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001472/0.0156, allocations: 182.7 kB / 253.2 MB, free: 5.004 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.162e-06/0.0156, allocations: 0 / 253.2 MB, free: 5.004 MB / 250.7 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0002002/0.0158, allocations: 224.1 kB / 253.4 MB, free: 4.777 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.227e-06/0.01581, allocations: 8 kB / 253.4 MB, free: 4.77 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.765e-06/0.01582, allocations: 0 / 253.4 MB, free: 4.77 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.657e-06/0.01582, allocations: 8.219 kB / 253.4 MB, free: 4.762 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002848/0.0161, allocations: 151 kB / 253.6 MB, free: 4.617 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.561e-06/0.01611, allocations: 7.938 kB / 253.6 MB, free: 4.609 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.559e-05/0.01621, allocations: 19.98 kB / 253.6 MB, free: 4.59 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.324e-05/0.01622, allocations: 15.98 kB / 253.6 MB, free: 4.574 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 0.0001087/0.01633, allocations: 204.2 kB / 253.8 MB, free: 4.367 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.814e-05/0.01637, allocations: 31.97 kB / 253.8 MB, free: 4.336 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.232e-05/0.01642, allocations: 48.03 kB / 253.9 MB, free: 4.285 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-06/0.01642, allocations: 4 kB / 253.9 MB, free: 4.281 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.145e-06/0.01642, allocations: 0 / 253.9 MB, free: 4.281 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.01643, allocations: 0 / 253.9 MB, free: 4.281 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004977/0.01693, allocations: 0.4934 MB / 254.4 MB, free: 3.754 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.01693, allocations: 0 / 254.4 MB, free: 3.754 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002038/0.01713, allocations: 95.53 kB / 254.5 MB, free: 3.664 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.73e-05/0.01719, allocations: 35.75 kB / 254.5 MB, free: 3.629 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.837e-06/0.01719, allocations: 4 kB / 254.5 MB, free: 3.625 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.263e-05/0.01721, allocations: 8 kB / 254.5 MB, free: 3.617 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.864e-06/0.01721, allocations: 0 / 254.5 MB, free: 3.617 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/0.01721, allocations: 7.938 kB / 254.5 MB, free: 3.609 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000281/0.01749, allocations: 394.7 kB / 254.9 MB, free: 3.195 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.843e-05/0.01752, allocations: 12 kB / 254.9 MB, free: 3.184 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.879e-05/0.01762, allocations: 23.98 kB / 254.9 MB, free: 3.16 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.156e-05/0.01767, allocations: 28.12 kB / 255 MB, free: 3.133 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.748e-06/0.01768, allocations: 12 kB / 255 MB, free: 3.121 MB / 250.7 MB Notification: Performance of sorting global known variables: time 7.796e-05/0.01776, allocations: 112.7 kB / 255.1 MB, free: 3.012 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01776, allocations: 0 / 255.1 MB, free: 3.012 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002707/0.01803, allocations: 139.9 kB / 255.2 MB, free: 2.875 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 8.911e-05/0.01812, allocations: 92.28 kB / 255.3 MB, free: 2.777 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0004296/0.01855, allocations: 352.6 kB / 255.7 MB, free: 2.426 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.204e-05/0.01856, allocations: 4 kB / 255.7 MB, free: 2.422 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 7.531e-05/0.01864, allocations: 84.69 kB / 255.7 MB, free: 2.336 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003421/0.01898, allocations: 132.6 kB / 255.9 MB, free: 2.207 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002784/0.02176, allocations: 0.8222 MB / 256.7 MB, free: 1.344 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.164e-05/0.02183, allocations: 113.7 kB / 256.8 MB, free: 1.211 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0001519/0.02199, allocations: 51.25 kB / 256.9 MB, free: 1.156 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001925/0.02218, allocations: 141.3 kB / 257 MB, free: 1.016 MB / 250.7 MB Notification: Performance of SimCode: time 9.51e-07/0.02218, allocations: 0 / 257 MB, free: 1.016 MB / 250.7 MB Notification: Performance of Templates: time 0.007827/0.03001, allocations: 5.778 MB / 262.8 MB, free: 11.34 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 -emit_protected -ignoreHideResult -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.643299669958651]