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.002507/0.002507, allocations: 99.53 kB / 21.74 MB, free: 2.688 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.002716/0.002716, allocations: 162.1 kB / 25.03 MB, free: 8.926 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 1.416/1.416, allocations: 158.6 MB / 186.8 MB, free: 2.918 MB / 170.7 MB " [Timeout remaining time 178] 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 2.154e-06/2.154e-06, allocations: 0 / 250.3 MB, free: 7.863 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.467e-05/3.682e-05, allocations: 2.312 kB / 250.3 MB, free: 7.859 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.005496/0.005533, allocations: 3.025 MB / 253.4 MB, free: 4.809 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002337/0.00787, allocations: 1.009 MB / 254.4 MB, free: 3.789 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002701/0.00814, allocations: 19.88 kB / 254.4 MB, free: 3.77 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004386/0.008579, allocations: 87.17 kB / 254.5 MB, free: 3.684 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003078/0.008886, allocations: 119 kB / 254.6 MB, free: 3.566 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006463/0.009533, allocations: 231.5 kB / 254.8 MB, free: 3.34 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007146/0.01025, allocations: 0.5339 MB / 255.4 MB, free: 2.805 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003241/0.01057, allocations: 113.7 kB / 255.5 MB, free: 2.688 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004123/0.01098, allocations: 291.2 kB / 255.8 MB, free: 2.402 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002781/0.01126, allocations: 151.5 kB / 255.9 MB, free: 2.254 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 9.862e-05/0.01136, allocations: 40 kB / 255.9 MB, free: 2.215 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.925e-05/0.01144, allocations: 44 kB / 256 MB, free: 2.172 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000155/0.01159, allocations: 111.6 kB / 256.1 MB, free: 2.062 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001912/0.01179, allocations: 143.6 kB / 256.2 MB, free: 1.922 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007458/0.01253, allocations: 0.5022 MB / 256.7 MB, free: 1.414 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.094e-06/0.01254, allocations: 4 kB / 256.7 MB, free: 1.41 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.01254, allocations: 0 / 256.7 MB, free: 1.41 MB / 234.7 MB Notification: Performance of Transformations before backend: time 9.738e-06/0.01255, allocations: 0 / 256.7 MB, free: 1.41 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.00151/0.01406, allocations: 0.815 MB / 257.6 MB, free: 0.5586 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.271e-05/0.01411, allocations: 11.98 kB / 257.6 MB, free: 0.5469 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001666/0.01428, allocations: 84.61 kB / 257.6 MB, free: 476 kB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005599/0.01484, allocations: 332.2 kB / 258 MB, free: 116 kB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.772e-05/0.01488, allocations: 25.38 kB / 258 MB, free: 92 kB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.426e-05/0.01495, allocations: 40.38 kB / 258 MB, free: 52 kB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009789/0.01593, allocations: 468.5 kB / 258.5 MB, free: 15.55 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.813e-05/0.01596, allocations: 12.12 kB / 258.5 MB, free: 15.54 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.216e-05/0.016, allocations: 16.38 kB / 258.5 MB, free: 15.52 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.609e-05/0.01602, allocations: 11.94 kB / 258.5 MB, free: 15.51 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00076/0.01678, allocations: 303.7 kB / 258.8 MB, free: 15.22 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002592/0.01937, allocations: 1.729 MB / 260.6 MB, free: 13.41 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007191/0.02009, allocations: 275.2 kB / 260.8 MB, free: 13.13 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000353/0.02044, allocations: 127.6 kB / 261 MB, free: 13 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.362e-05/0.02047, allocations: 4 kB / 261 MB, free: 13 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.846e-05/0.02051, allocations: 41.33 kB / 261 MB, free: 12.95 MB / 250.7 MB Notification: Performance of pre-optimization done (n=30): time 1.523e-06/0.02051, allocations: 4 kB / 261 MB, free: 12.94 MB / 250.7 MB Notification: Performance of matching and sorting (n=32): time 0.002705/0.02322, allocations: 1.103 MB / 262.1 MB, free: 11.78 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.468e-05/0.02329, allocations: 85.11 kB / 262.2 MB, free: 11.68 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000518/0.02381, allocations: 442.7 kB / 262.6 MB, free: 11.23 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.997e-05/0.02385, allocations: 37.64 kB / 262.7 MB, free: 11.18 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002846/0.02414, allocations: 307.3 kB / 263 MB, free: 10.88 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001359/0.02427, allocations: 131.1 kB / 263.1 MB, free: 10.75 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001576/0.02443, allocations: 87.84 kB / 263.2 MB, free: 10.66 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.000322/0.02475, allocations: 0.543 MB / 263.7 MB, free: 10.1 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003605/0.02511, allocations: 141.5 kB / 263.9 MB, free: 9.961 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000482/0.02559, allocations: 279.5 kB / 264.1 MB, free: 9.637 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007681/0.02636, allocations: 369.5 kB / 264.5 MB, free: 9.238 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.02636, allocations: 4.031 kB / 264.5 MB, free: 9.234 MB / 250.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0009705/0.02734, allocations: 441 kB / 264.9 MB, free: 8.797 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.958e-05/0.02735, allocations: 11.88 kB / 264.9 MB, free: 8.785 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.034e-05/0.02737, allocations: 4 kB / 264.9 MB, free: 8.781 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.043e-05/0.02739, allocations: 4.219 kB / 264.9 MB, free: 8.777 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007586/0.02814, allocations: 163.8 kB / 265.1 MB, free: 8.617 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002197/0.03034, allocations: 1.946 MB / 267 MB, free: 6.551 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002749/0.03062, allocations: 27.97 kB / 267.1 MB, free: 6.523 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.95e-05/0.03065, allocations: 12 kB / 267.1 MB, free: 6.512 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004978/0.03114, allocations: 287.8 kB / 267.4 MB, free: 6.227 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00044/0.03158, allocations: 271.4 kB / 267.6 MB, free: 5.914 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000698/0.03228, allocations: 357.2 kB / 268 MB, free: 5.527 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.684e-06/0.03229, allocations: 4 kB / 268 MB, free: 5.523 MB / 250.7 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0008959/0.03318, allocations: 429 kB / 268.4 MB, free: 5.098 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.142e-05/0.0332, allocations: 7.938 kB / 268.4 MB, free: 5.09 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.2e-06/0.0332, allocations: 4 kB / 268.4 MB, free: 5.086 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.831e-06/0.03321, allocations: 4.219 kB / 268.4 MB, free: 5.082 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000447/0.03365, allocations: 107.9 kB / 268.5 MB, free: 4.977 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.504e-06/0.03366, allocations: 4 kB / 268.5 MB, free: 4.973 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002562/0.03392, allocations: 23.98 kB / 268.6 MB, free: 4.949 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.636e-05/0.03394, allocations: 12 kB / 268.6 MB, free: 4.938 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 (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.00025/0.03419, allocations: 295.9 kB / 268.9 MB, free: 4.641 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.823e-05/0.03428, allocations: 47.77 kB / 268.9 MB, free: 4.594 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001108/0.03439, allocations: 48.12 kB / 268.9 MB, free: 4.547 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.839e-06/0.0344, allocations: 8 kB / 269 MB, free: 4.539 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.0344, allocations: 0 / 269 MB, free: 4.539 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.03441, allocations: 0 / 269 MB, free: 4.539 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001652/0.03606, allocations: 0.8663 MB / 269.8 MB, free: 3.617 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.405e-06/0.03606, allocations: 0 / 269.8 MB, free: 3.617 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003639/0.03642, allocations: 72.03 kB / 269.9 MB, free: 3.547 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.172e-06/0.03643, allocations: 7.984 kB / 269.9 MB, free: 3.539 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.562e-05/0.03646, allocations: 8 kB / 269.9 MB, free: 3.531 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.732e-06/0.03646, allocations: 7.938 kB / 269.9 MB, free: 3.523 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.03646, allocations: 0 / 269.9 MB, free: 3.523 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001216/0.03768, allocations: 0.6557 MB / 270.6 MB, free: 2.832 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001607/0.03784, allocations: 67.72 kB / 270.6 MB, free: 2.766 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.832e-05/0.03789, allocations: 8.062 kB / 270.6 MB, free: 2.758 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002362/0.03813, allocations: 27.92 kB / 270.7 MB, free: 2.73 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.936e-05/0.03821, allocations: 23.95 kB / 270.7 MB, free: 2.707 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.582e-05/0.03824, allocations: 12 kB / 270.7 MB, free: 2.695 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.000325/0.03857, allocations: 287.1 kB / 271 MB, free: 2.418 MB / 250.7 MB Notification: Performance of sort global known variables: time 8e-08/0.03857, allocations: 0 / 271 MB, free: 2.418 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0005782/0.03914, allocations: 132 kB / 271.1 MB, free: 2.289 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 0.0001413/0.03929, allocations: 107.2 kB / 271.2 MB, free: 2.172 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.001689/0.04097, allocations: 0.5912 MB / 271.8 MB, free: 1.57 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.626e-06/0.04098, allocations: 0 / 271.8 MB, free: 1.57 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003726/0.04135, allocations: 163.5 kB / 272 MB, free: 1.406 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007144/0.04207, allocations: 105.9 kB / 272.1 MB, free: 1.309 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00237/0.04444, allocations: 0.9252 MB / 273 MB, free: 340 kB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003336/0.04477, allocations: 224.1 kB / 273.2 MB, free: 100 kB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0002841/0.04505, allocations: 59.25 kB / 273.3 MB, free: 40 kB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001274/0.04518, allocations: 32.5 kB / 273.3 MB, free: 8 kB / 250.7 MB Notification: Performance of SimCode: time 2.044e-06/0.04518, allocations: 0 / 273.3 MB, free: 8 kB / 250.7 MB Notification: Performance of Templates: time 0.01192/0.0571, allocations: 4.87 MB / 278.2 MB, free: 11.18 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 -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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.554581857984886]