Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001339/0.001339, allocations: 71.77 kB / 21.69 MB, free: 2.859 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.001532/0.001532, allocations: 165.9 kB / 24.99 MB, free: 8.793 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.102/1.102, allocations: 177.1 MB / 205.3 MB, free: 5.641 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.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.1.0_Modelica.Blocks.Examples.PID_Controller") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.422e-06/1.422e-06, allocations: 0 / 273 MB, free: 1.863 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.746e-05/1.888e-05, allocations: 2.312 kB / 273 MB, free: 1.859 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.003034/0.003053, allocations: 3.07 MB / 276.1 MB, free: 14.77 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001509/0.004561, allocations: 0.9697 MB / 277.1 MB, free: 13.79 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000194/0.004755, allocations: 15.88 kB / 277.1 MB, free: 13.78 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002421/0.004997, allocations: 91.11 kB / 277.2 MB, free: 13.69 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001771/0.005174, allocations: 115 kB / 277.3 MB, free: 13.57 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004127/0.005587, allocations: 231.5 kB / 277.5 MB, free: 13.35 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004022/0.005989, allocations: 0.53 MB / 278.1 MB, free: 12.82 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001773/0.006166, allocations: 121.6 kB / 278.2 MB, free: 12.7 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002285/0.006395, allocations: 279.3 kB / 278.4 MB, free: 12.42 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001483/0.006543, allocations: 151.5 kB / 278.6 MB, free: 12.27 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.095e-05/0.006584, allocations: 40 kB / 278.6 MB, free: 12.23 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.681e-05/0.006621, allocations: 44 kB / 278.7 MB, free: 12.19 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.802e-05/0.006689, allocations: 115.5 kB / 278.8 MB, free: 12.08 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.047e-05/0.006779, allocations: 135.7 kB / 278.9 MB, free: 11.95 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002873/0.007067, allocations: 354.5 kB / 279.3 MB, free: 11.6 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.363e-06/0.007068, allocations: 0 / 279.3 MB, free: 11.6 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.01e-07/0.007068, allocations: 4 kB / 279.3 MB, free: 11.59 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.268e-06/0.007073, allocations: 0 / 279.3 MB, free: 11.59 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.0007524/0.007825, allocations: 0.7686 MB / 280 MB, free: 10.79 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.238e-05/0.007848, allocations: 12.03 kB / 280.1 MB, free: 10.77 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.888e-05/0.007926, allocations: 84.61 kB / 280.1 MB, free: 10.69 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002795/0.008206, allocations: 312.3 kB / 280.4 MB, free: 10.36 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.654e-05/0.008232, allocations: 29.38 kB / 280.5 MB, free: 10.33 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.773e-05/0.00827, allocations: 36.38 kB / 280.5 MB, free: 10.3 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004227/0.008693, allocations: 438.6 kB / 280.9 MB, free: 9.816 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.35e-05/0.008706, allocations: 4.141 kB / 280.9 MB, free: 9.812 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.22e-05/0.008729, allocations: 16.38 kB / 281 MB, free: 9.797 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.009e-05/0.008739, allocations: 15.92 kB / 281 MB, free: 9.781 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000247/0.008986, allocations: 165.8 kB / 281.1 MB, free: 9.617 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001238/0.01022, allocations: 1.58 MB / 282.7 MB, free: 7.961 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003341/0.01056, allocations: 183.3 kB / 282.9 MB, free: 7.766 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001029/0.01066, allocations: 71.64 kB / 283 MB, free: 7.691 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.311e-05/0.01068, allocations: 7.984 kB / 283 MB, free: 7.684 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.405e-05/0.01071, allocations: 45.33 kB / 283 MB, free: 7.629 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 1.112e-06/0.01071, allocations: 0 / 283 MB, free: 7.629 MB / 266.7 MB Notification: Performance of matching and sorting (n=32): time 0.001124/0.01183, allocations: 0.7974 MB / 283.8 MB, free: 6.766 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.456e-05/0.01188, allocations: 106.8 kB / 283.9 MB, free: 6.637 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002379/0.01212, allocations: 370.7 kB / 284.3 MB, free: 6.258 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.029e-05/0.01214, allocations: 29.7 kB / 284.3 MB, free: 6.223 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001249/0.01226, allocations: 291.3 kB / 284.6 MB, free: 5.934 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.27e-05/0.01232, allocations: 127.1 kB / 284.7 MB, free: 5.809 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.614e-05/0.01241, allocations: 83.78 kB / 284.8 MB, free: 5.719 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001409/0.01255, allocations: 0.5196 MB / 285.3 MB, free: 5.188 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001142/0.01266, allocations: 69.64 kB / 285.4 MB, free: 5.117 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001846/0.01285, allocations: 236.9 kB / 285.6 MB, free: 4.824 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002882/0.01314, allocations: 233.5 kB / 285.8 MB, free: 4.559 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.01314, allocations: 0 / 285.8 MB, free: 4.559 MB / 266.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0004302/0.01357, allocations: 321.1 kB / 286.2 MB, free: 4.238 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/0.01359, allocations: 10.59 kB / 286.2 MB, free: 4.23 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/0.0136, allocations: 4 kB / 286.2 MB, free: 4.227 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.593e-05/0.01361, allocations: 4 kB / 286.2 MB, free: 4.223 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003907/0.014, allocations: 160 kB / 286.3 MB, free: 4.066 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009332/0.01494, allocations: 1.844 MB / 288.2 MB, free: 2.102 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001275/0.01506, allocations: 23.98 kB / 288.2 MB, free: 2.078 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.905e-05/0.01508, allocations: 16.11 kB / 288.2 MB, free: 2.062 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001681/0.01525, allocations: 203.8 kB / 288.4 MB, free: 1.859 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001861/0.01544, allocations: 228.9 kB / 288.6 MB, free: 1.578 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002424/0.01568, allocations: 237.3 kB / 288.9 MB, free: 1.309 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.533e-06/0.01568, allocations: 0 / 288.9 MB, free: 1.309 MB / 266.7 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0003419/0.01602, allocations: 313.2 kB / 289.2 MB, free: 0.9961 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.225e-06/0.01603, allocations: 4 kB / 289.2 MB, free: 0.9922 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.018e-06/0.01603, allocations: 7.938 kB / 289.2 MB, free: 0.9844 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.186e-06/0.01604, allocations: 4 kB / 289.2 MB, free: 0.9805 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002294/0.01627, allocations: 103.9 kB / 289.3 MB, free: 0.8789 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.045e-06/0.01627, allocations: 4 kB / 289.3 MB, free: 0.875 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001171/0.01639, allocations: 32.19 kB / 289.3 MB, free: 0.8438 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.531e-05/0.0164, allocations: 16 kB / 289.3 MB, free: 0.8281 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.000121/0.01652, allocations: 295.9 kB / 289.6 MB, free: 0.5312 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.718e-05/0.01657, allocations: 43.77 kB / 289.7 MB, free: 500 kB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.995e-05/0.01662, allocations: 48.09 kB / 289.7 MB, free: 452 kB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/0.01662, allocations: 4 kB / 289.7 MB, free: 448 kB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.625e-06/0.01663, allocations: 0 / 289.7 MB, free: 448 kB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.501e-06/0.01663, allocations: 3.984 kB / 289.7 MB, free: 444 kB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006888/0.01732, allocations: 0.6718 MB / 290.4 MB, free: 15.71 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.908e-06/0.01732, allocations: 4 kB / 290.4 MB, free: 15.7 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002/0.01752, allocations: 79.89 kB / 290.5 MB, free: 15.62 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.01753, allocations: 0 / 290.5 MB, free: 15.62 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.73e-05/0.01754, allocations: 8 kB / 290.5 MB, free: 15.62 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.9e-06/0.01755, allocations: 7.938 kB / 290.5 MB, free: 15.61 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.01755, allocations: 0 / 290.5 MB, free: 15.61 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004361/0.01799, allocations: 471.2 kB / 291 MB, free: 15.11 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.394e-05/0.01806, allocations: 63.84 kB / 291 MB, free: 15.05 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.143e-05/0.01809, allocations: 11.98 kB / 291 MB, free: 15.04 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001253/0.01822, allocations: 23.92 kB / 291.1 MB, free: 15.02 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.879e-05/0.01828, allocations: 27.95 kB / 291.1 MB, free: 14.99 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.05e-05/0.0183, allocations: 11.94 kB / 291.1 MB, free: 14.98 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001505/0.01845, allocations: 251.1 kB / 291.3 MB, free: 14.73 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01845, allocations: 0 / 291.3 MB, free: 14.73 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003217/0.01877, allocations: 132 kB / 291.5 MB, free: 14.6 MB / 282.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.0001069/0.01887, allocations: 111.1 kB / 291.6 MB, free: 14.48 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0008877/0.01976, allocations: 402.1 kB / 292 MB, free: 14.08 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.01977, allocations: 0 / 292 MB, free: 14.08 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001698/0.01994, allocations: 103.8 kB / 292.1 MB, free: 13.98 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005902/0.02053, allocations: 104.6 kB / 292.2 MB, free: 13.88 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001772/0.0223, allocations: 0.895 MB / 293.1 MB, free: 12.94 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.053e-05/0.02239, allocations: 113.7 kB / 293.2 MB, free: 12.8 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002007/0.02259, allocations: 51.23 kB / 293.2 MB, free: 12.76 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.48e-05/0.02268, allocations: 32.5 kB / 293.3 MB, free: 12.73 MB / 282.7 MB Notification: Performance of SimCode: time 7.71e-07/0.02269, allocations: 0 / 293.3 MB, free: 12.73 MB / 282.7 MB Notification: Performance of Templates: time 0.009105/0.03179, allocations: 4.835 MB / 298.1 MB, free: 7.977 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.sim & ./Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.1141916238702834]