Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001757/0.001757, allocations: 109.1 kB / 21.18 MB, free: 0.7656 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002134/0.002134, allocations: 213.1 kB / 24.5 MB, free: 4.148 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.461/1.461, allocations: 230.5 MB / 258.1 MB, free: 7.988 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Blocks.Examples.PID_Controller") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002002/0.002002, allocations: 67.91 kB / 379 MB, free: 2.496 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2715/0.2735, allocations: 53.41 MB / 432.4 MB, free: 6.746 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.00476/0.2782, allocations: 3.156 MB / 435.6 MB, free: 3.578 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002085/0.2803, allocations: 1.012 MB / 436.6 MB, free: 2.559 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002373/0.2806, allocations: 19.81 kB / 436.6 MB, free: 2.539 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000379/0.2809, allocations: 87.17 kB / 436.7 MB, free: 2.453 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002447/0.2812, allocations: 103.1 kB / 436.8 MB, free: 2.352 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006315/0.2818, allocations: 247.5 kB / 437 MB, free: 2.109 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000618/0.2824, allocations: 0.5107 MB / 437.6 MB, free: 1.594 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002706/0.2827, allocations: 125.7 kB / 437.7 MB, free: 1.473 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002561/0.283, allocations: 207.1 kB / 437.9 MB, free: 1.27 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002732/0.2832, allocations: 211 kB / 438.1 MB, free: 1.062 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.057e-05/0.2833, allocations: 40 kB / 438.1 MB, free: 1.023 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.361e-05/0.2834, allocations: 40 kB / 438.2 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001192/0.2835, allocations: 107.5 kB / 438.3 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001938/0.2837, allocations: 218.8 kB / 438.5 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005629/0.2842, allocations: 499.1 kB / 439 MB, free: 188 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.2842, allocations: 4 kB / 439 MB, free: 184 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.2842, allocations: 0 / 439 MB, free: 184 kB / 334.1 MB Notification: Performance of Transformations before backend: time 8.165e-06/0.2843, allocations: 0 / 439 MB, free: 184 kB / 334.1 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.001346/0.2856, allocations: 0.7078 MB / 439.7 MB, free: 15.43 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.113e-05/0.2856, allocations: 8.031 kB / 439.7 MB, free: 15.43 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001062/0.2857, allocations: 52.61 kB / 439.7 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005882/0.2863, allocations: 302.2 kB / 440 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.125e-05/0.2864, allocations: 29.38 kB / 440.1 MB, free: 15.03 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.259e-05/0.2864, allocations: 40.36 kB / 440.1 MB, free: 14.99 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008927/0.2873, allocations: 459.5 kB / 440.6 MB, free: 14.51 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.843e-05/0.2874, allocations: 11.89 kB / 440.6 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.745e-05/0.2874, allocations: 16 kB / 440.6 MB, free: 14.48 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.106e-05/0.2874, allocations: 8 kB / 440.6 MB, free: 14.48 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009473/0.2884, allocations: 379.6 kB / 441 MB, free: 14.1 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00217/0.2905, allocations: 1.5 MB / 442.5 MB, free: 12.52 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008067/0.2913, allocations: 297.1 kB / 442.8 MB, free: 12.22 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004083/0.2917, allocations: 156.7 kB / 442.9 MB, free: 12.07 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.447e-05/0.2918, allocations: 7.938 kB / 442.9 MB, free: 12.06 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.064e-05/0.2918, allocations: 38.56 kB / 443 MB, free: 12.01 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.794e-06/0.2918, allocations: 0 / 443 MB, free: 12.01 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.003171/0.295, allocations: 1.241 MB / 444.2 MB, free: 10.71 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.64e-05/0.2951, allocations: 106.8 kB / 444.3 MB, free: 10.59 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004382/0.2955, allocations: 365.5 kB / 444.7 MB, free: 10.22 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.112e-05/0.2955, allocations: 29.7 kB / 444.7 MB, free: 10.18 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001936/0.2957, allocations: 244.3 kB / 444.9 MB, free: 9.941 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001027/0.2958, allocations: 119 kB / 445 MB, free: 9.824 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001247/0.2959, allocations: 86.12 kB / 445.1 MB, free: 9.734 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001727/0.2961, allocations: 346.8 kB / 445.5 MB, free: 9.387 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000438/0.2966, allocations: 170.5 kB / 445.6 MB, free: 9.219 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005135/0.2971, allocations: 257.7 kB / 445.9 MB, free: 8.934 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008829/0.298, allocations: 395.3 kB / 446.3 MB, free: 8.52 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.298, allocations: 0 / 446.3 MB, free: 8.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001084/0.299, allocations: 0.4933 MB / 446.8 MB, free: 8.02 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.828e-05/0.2991, allocations: 8 kB / 446.8 MB, free: 8.012 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.724e-06/0.2991, allocations: 0 / 446.8 MB, free: 8.012 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.374e-05/0.2991, allocations: 8 kB / 446.8 MB, free: 8.004 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008518/0.2999, allocations: 207.9 kB / 447 MB, free: 7.801 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001743/0.3017, allocations: 1.476 MB / 448.5 MB, free: 6.211 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003434/0.302, allocations: 44.08 kB / 448.5 MB, free: 6.168 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.836e-05/0.3021, allocations: 16 kB / 448.5 MB, free: 6.152 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000533/0.3026, allocations: 268.9 kB / 448.8 MB, free: 5.887 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004624/0.3031, allocations: 241.7 kB / 449 MB, free: 5.617 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007835/0.3038, allocations: 375.4 kB / 449.4 MB, free: 5.223 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.743e-06/0.3038, allocations: 0 / 449.4 MB, free: 5.223 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0009907/0.3048, allocations: 473.3 kB / 449.8 MB, free: 4.754 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.481e-05/0.3048, allocations: 8 kB / 449.8 MB, free: 4.746 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.945e-06/0.3048, allocations: 0 / 449.8 MB, free: 4.746 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.081e-06/0.3049, allocations: 4 kB / 449.9 MB, free: 4.742 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004859/0.3053, allocations: 123.8 kB / 450 MB, free: 4.621 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.077e-06/0.3053, allocations: 7.938 kB / 450 MB, free: 4.613 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003246/0.3057, allocations: 40.11 kB / 450 MB, free: 4.574 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.361e-05/0.3057, allocations: 12 kB / 450 MB, free: 4.562 MB / 350.1 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.0001917/0.3059, allocations: 204.1 kB / 450.2 MB, free: 4.355 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.372e-05/0.306, allocations: 43.72 kB / 450.3 MB, free: 4.312 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001102/0.3061, allocations: 48.19 kB / 450.3 MB, free: 4.262 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.528e-06/0.3061, allocations: 7.938 kB / 450.3 MB, free: 4.254 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.3061, allocations: 0 / 450.3 MB, free: 4.254 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.983e-06/0.3061, allocations: 7.984 kB / 450.3 MB, free: 4.246 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001654/0.3077, allocations: 0.8833 MB / 451.2 MB, free: 3.301 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/0.3078, allocations: 4 kB / 451.2 MB, free: 3.297 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004087/0.3082, allocations: 83.94 kB / 451.3 MB, free: 3.215 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.673e-06/0.3082, allocations: 7.938 kB / 451.3 MB, free: 3.207 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.598e-05/0.3082, allocations: 8 kB / 451.3 MB, free: 3.199 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.196e-06/0.3082, allocations: 0 / 451.3 MB, free: 3.199 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/0.3082, allocations: 4 kB / 451.3 MB, free: 3.195 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001392/0.3096, allocations: 0.675 MB / 452 MB, free: 2.492 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001378/0.3097, allocations: 63.73 kB / 452.1 MB, free: 2.43 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.862e-05/0.3098, allocations: 4 kB / 452.1 MB, free: 2.426 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002933/0.3101, allocations: 43.95 kB / 452.1 MB, free: 2.383 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.065e-05/0.3102, allocations: 23.95 kB / 452.1 MB, free: 2.359 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.946e-05/0.3102, allocations: 8 kB / 452.1 MB, free: 2.352 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002801/0.3105, allocations: 247.2 kB / 452.4 MB, free: 2.113 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3105, allocations: 0 / 452.4 MB, free: 2.113 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005548/0.311, allocations: 135.9 kB / 452.5 MB, free: 1.98 MB / 350.1 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.0001203/0.3111, allocations: 107.2 kB / 452.6 MB, free: 1.863 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001862/0.313, allocations: 0.6572 MB / 453.3 MB, free: 1.207 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.566e-06/0.313, allocations: 0 / 453.3 MB, free: 1.207 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004482/0.3134, allocations: 167.8 kB / 453.4 MB, free: 1.043 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006503/0.3141, allocations: 118.2 kB / 453.6 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002032/0.3161, allocations: 1.062 MB / 454.6 MB, free: 15.84 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004713/0.3166, allocations: 0.8195 MB / 455.4 MB, free: 14.99 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001284/0.3167, allocations: 35.44 kB / 455.5 MB, free: 14.95 MB / 366.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3167, allocations: 0 / 455.5 MB, free: 14.95 MB / 366.1 MB Notification: Performance of Templates: time 0.009763/0.3265, allocations: 5.996 MB / 461.5 MB, free: 8.965 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.sim & ./Modelica_trunk_Modelica.Blocks.Examples.PID_Controller -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.PID_Controller_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/PID_Controller/PID_Controller.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 7.8803108730353415]