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.001021/0.001021, allocations: 83.89 kB / 21.19 MB, free: 3.387 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.0008848/0.0008848, allocations: 141.1 kB / 24.54 MB, free: 36 kB / 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.9535/0.9535, allocations: 173.3 MB / 201.1 MB, free: 9.348 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 2.515e-06/2.515e-06, allocations: 4 kB / 268 MB, free: 6.461 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.844e-05/3.096e-05, allocations: 2.312 kB / 268 MB, free: 6.457 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.003559/0.003589, allocations: 3.063 MB / 271 MB, free: 3.371 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001578/0.005167, allocations: 0.9619 MB / 272 MB, free: 2.406 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002454/0.005413, allocations: 15.88 kB / 272 MB, free: 2.391 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003522/0.005765, allocations: 91.17 kB / 272.1 MB, free: 2.301 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000239/0.006004, allocations: 118.9 kB / 272.2 MB, free: 2.184 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000498/0.006502, allocations: 223.6 kB / 272.4 MB, free: 1.965 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004976/0.006999, allocations: 0.5416 MB / 273 MB, free: 1.418 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002309/0.00723, allocations: 109.7 kB / 273.1 MB, free: 1.312 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002836/0.007514, allocations: 283.4 kB / 273.4 MB, free: 1.035 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001853/0.007699, allocations: 163.4 kB / 273.5 MB, free: 0.875 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.229e-05/0.007752, allocations: 40 kB / 273.6 MB, free: 0.8359 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.564e-05/0.007797, allocations: 40 kB / 273.6 MB, free: 0.7969 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 9.054e-05/0.007888, allocations: 111.5 kB / 273.7 MB, free: 0.6875 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001046/0.007992, allocations: 135.7 kB / 273.8 MB, free: 0.5547 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003666/0.008359, allocations: 346.6 kB / 274.2 MB, free: 220 kB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.996e-06/0.008362, allocations: 0 / 274.2 MB, free: 220 kB / 250.7 MB Notification: Performance of FrontEnd: time 2.003e-06/0.008364, allocations: 7.984 kB / 274.2 MB, free: 212 kB / 250.7 MB Notification: Performance of Transformations before backend: time 6.862e-06/0.008371, allocations: 0 / 274.2 MB, free: 212 kB / 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.0008585/0.009229, allocations: 0.7714 MB / 275 MB, free: 15.39 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.335e-05/0.009273, allocations: 8.031 kB / 275 MB, free: 15.39 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.784e-05/0.00937, allocations: 84.61 kB / 275.1 MB, free: 15.3 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003605/0.009731, allocations: 320.2 kB / 275.4 MB, free: 14.96 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.634e-05/0.009767, allocations: 29.38 kB / 275.4 MB, free: 14.94 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.864e-05/0.009826, allocations: 36.38 kB / 275.4 MB, free: 14.9 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004951/0.01032, allocations: 397.9 kB / 275.8 MB, free: 14.47 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.881e-05/0.01034, allocations: 7.953 kB / 275.8 MB, free: 14.46 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.564e-05/0.01037, allocations: 16 kB / 275.8 MB, free: 14.45 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.308e-05/0.01038, allocations: 11.94 kB / 275.9 MB, free: 14.43 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002515/0.01063, allocations: 157.8 kB / 276 MB, free: 14.28 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001384/0.01201, allocations: 1.599 MB / 277.6 MB, free: 12.61 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003539/0.01237, allocations: 179.2 kB / 277.8 MB, free: 12.41 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.842e-05/0.01247, allocations: 67.66 kB / 277.8 MB, free: 12.34 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.905e-05/0.0125, allocations: 4 kB / 277.8 MB, free: 12.34 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.927e-05/0.01255, allocations: 37.39 kB / 277.9 MB, free: 12.29 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 1.713e-06/0.01256, allocations: 0 / 277.9 MB, free: 12.29 MB / 266.7 MB Notification: Performance of matching and sorting (n=32): time 0.001099/0.01366, allocations: 0.8061 MB / 278.7 MB, free: 11.42 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.958e-05/0.01369, allocations: 81.11 kB / 278.8 MB, free: 11.32 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002409/0.01394, allocations: 366.7 kB / 279.1 MB, free: 10.95 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.037e-05/0.01396, allocations: 37.7 kB / 279.2 MB, free: 10.9 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001244/0.01408, allocations: 287.3 kB / 279.4 MB, free: 10.61 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.095e-05/0.01414, allocations: 119.1 kB / 279.6 MB, free: 10.5 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001608/0.0143, allocations: 87.84 kB / 279.6 MB, free: 10.4 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001228/0.01442, allocations: 0.5157 MB / 280.2 MB, free: 9.875 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001132/0.01454, allocations: 77.64 kB / 280.2 MB, free: 9.797 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001678/0.01471, allocations: 195.5 kB / 280.4 MB, free: 9.555 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000238/0.01494, allocations: 229.5 kB / 280.7 MB, free: 9.293 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.01495, allocations: 0 / 280.7 MB, free: 9.293 MB / 266.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0003617/0.01531, allocations: 321 kB / 281 MB, free: 8.973 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.889e-05/0.01533, allocations: 10.75 kB / 281 MB, free: 8.965 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.733e-06/0.01533, allocations: 4 kB / 281 MB, free: 8.961 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.898e-05/0.01535, allocations: 7.984 kB / 281 MB, free: 8.953 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003977/0.01575, allocations: 160 kB / 281.1 MB, free: 8.797 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009122/0.01666, allocations: 1.844 MB / 283 MB, free: 6.836 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001386/0.0168, allocations: 27.98 kB / 283 MB, free: 6.809 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.747e-05/0.01682, allocations: 16.12 kB / 283 MB, free: 6.793 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003016/0.01712, allocations: 195.8 kB / 283.2 MB, free: 6.598 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001581/0.01728, allocations: 199.5 kB / 283.4 MB, free: 6.355 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002211/0.0175, allocations: 233.2 kB / 283.6 MB, free: 6.09 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.473e-06/0.0175, allocations: 0 / 283.6 MB, free: 6.09 MB / 266.7 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0003247/0.01783, allocations: 309.2 kB / 284 MB, free: 5.781 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.769e-06/0.01783, allocations: 8 kB / 284 MB, free: 5.773 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.956e-06/0.01784, allocations: 0 / 284 MB, free: 5.773 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.509e-06/0.01784, allocations: 11.98 kB / 284 MB, free: 5.762 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002303/0.01807, allocations: 103.9 kB / 284.1 MB, free: 5.66 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.07e-06/0.01808, allocations: 7.938 kB / 284.1 MB, free: 5.652 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001178/0.0182, allocations: 28.2 kB / 284.1 MB, free: 5.625 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.382e-05/0.01821, allocations: 12 kB / 284.1 MB, free: 5.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 (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.0001199/0.01833, allocations: 292 kB / 284.4 MB, free: 5.32 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.144e-05/0.01838, allocations: 51.72 kB / 284.5 MB, free: 5.27 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.122e-05/0.01843, allocations: 44.09 kB / 284.5 MB, free: 5.223 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.01844, allocations: 4 kB / 284.5 MB, free: 5.219 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.01844, allocations: 3.984 kB / 284.5 MB, free: 5.215 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.487e-06/0.01844, allocations: 0 / 284.5 MB, free: 5.215 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007044/0.01915, allocations: 0.6757 MB / 285.2 MB, free: 4.484 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.408e-06/0.01915, allocations: 7.984 kB / 285.2 MB, free: 4.477 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001941/0.01935, allocations: 71.91 kB / 285.3 MB, free: 4.406 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.869e-06/0.01935, allocations: 3.984 kB / 285.3 MB, free: 4.402 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.484e-05/0.01937, allocations: 8 kB / 285.3 MB, free: 4.395 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.458e-06/0.01937, allocations: 7.938 kB / 285.3 MB, free: 4.387 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.01937, allocations: 3.938 kB / 285.3 MB, free: 4.383 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003967/0.01977, allocations: 479.2 kB / 285.8 MB, free: 3.879 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.129e-05/0.01985, allocations: 55.73 kB / 285.8 MB, free: 3.824 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.625e-05/0.01988, allocations: 8.062 kB / 285.8 MB, free: 3.816 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001141/0.01999, allocations: 19.98 kB / 285.8 MB, free: 3.797 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.632e-05/0.02006, allocations: 35.83 kB / 285.9 MB, free: 3.762 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.148e-05/0.02007, allocations: 11.98 kB / 285.9 MB, free: 3.75 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001479/0.02022, allocations: 247.1 kB / 286.1 MB, free: 3.512 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02022, allocations: 0 / 286.1 MB, free: 3.512 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003391/0.02056, allocations: 132 kB / 286.2 MB, free: 3.383 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 9.573e-05/0.02065, allocations: 111.3 kB / 286.4 MB, free: 3.266 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006199/0.02127, allocations: 406 kB / 286.8 MB, free: 2.859 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.02127, allocations: 0 / 286.8 MB, free: 2.859 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001137/0.02139, allocations: 103.6 kB / 286.9 MB, free: 2.754 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004198/0.02181, allocations: 100.2 kB / 287 MB, free: 2.66 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001363/0.02317, allocations: 0.8878 MB / 287.8 MB, free: 1.723 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.105e-05/0.02324, allocations: 109.7 kB / 287.9 MB, free: 1.598 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001554/0.0234, allocations: 59.22 kB / 288 MB, free: 1.543 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.247e-05/0.02348, allocations: 32.5 kB / 288 MB, free: 1.512 MB / 266.7 MB Notification: Performance of SimCode: time 5.51e-07/0.02348, allocations: 4 kB / 288 MB, free: 1.508 MB / 266.7 MB Notification: Performance of Templates: time 0.007498/0.03098, allocations: 4.861 MB / 292.9 MB, free: 12.72 MB / 282.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 -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: 3.1006250139325857]