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.00155/0.00155, allocations: 96.03 kB / 21.18 MB, free: 0.5312 MB / 14.72 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.001639/0.001639, allocations: 185 kB / 24.45 MB, free: 3.867 MB / 14.72 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 1.43/1.43, allocations: 225.7 MB / 253.3 MB, free: 12.85 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001635/0.001635, allocations: 47.92 kB / 371.6 MB, free: 9.203 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2379/0.2395, allocations: 52.17 MB / 423.8 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004598/0.2441, allocations: 2.917 MB / 426.7 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001827/0.246, allocations: 0.9311 MB / 427.6 MB, free: 10.63 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002117/0.2462, allocations: 15.88 kB / 427.7 MB, free: 10.62 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003546/0.2465, allocations: 91.17 kB / 427.8 MB, free: 10.53 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002693/0.2468, allocations: 111.1 kB / 427.9 MB, free: 10.42 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006238/0.2474, allocations: 227.7 kB / 428.1 MB, free: 10.2 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006027/0.248, allocations: 0.5222 MB / 428.6 MB, free: 9.668 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002547/0.2483, allocations: 113.7 kB / 428.7 MB, free: 9.559 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000239/0.2485, allocations: 207.1 kB / 428.9 MB, free: 9.355 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002535/0.2488, allocations: 183 kB / 429.1 MB, free: 9.176 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.068e-05/0.2489, allocations: 44 kB / 429.1 MB, free: 9.133 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.631e-05/0.2489, allocations: 40 kB / 429.2 MB, free: 9.094 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001214/0.249, allocations: 99.62 kB / 429.3 MB, free: 8.996 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001831/0.2492, allocations: 187 kB / 429.5 MB, free: 8.812 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005757/0.2498, allocations: 0.4928 MB / 430 MB, free: 8.324 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.2498, allocations: 4 kB / 430 MB, free: 8.32 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.2498, allocations: 0 / 430 MB, free: 8.32 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.865e-06/0.2498, allocations: 4 kB / 430 MB, free: 8.316 MB / 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.001352/0.2512, allocations: 0.7116 MB / 430.7 MB, free: 7.57 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.431e-05/0.2512, allocations: 8.031 kB / 430.7 MB, free: 7.562 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.105e-05/0.2513, allocations: 52.61 kB / 430.7 MB, free: 7.512 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005875/0.2519, allocations: 298.2 kB / 431 MB, free: 7.195 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.967e-05/0.2519, allocations: 33.38 kB / 431.1 MB, free: 7.164 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.812e-05/0.252, allocations: 47.89 kB / 431.1 MB, free: 7.117 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009293/0.2529, allocations: 476 kB / 431.6 MB, free: 6.621 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.996e-05/0.2529, allocations: 0 / 431.6 MB, free: 6.621 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.573e-05/0.253, allocations: 16 kB / 431.6 MB, free: 6.605 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.364e-05/0.253, allocations: 11.98 kB / 431.6 MB, free: 6.594 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001/0.254, allocations: 383.5 kB / 432 MB, free: 6.219 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002168/0.2562, allocations: 1.364 MB / 433.3 MB, free: 4.789 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008522/0.257, allocations: 298.6 kB / 433.6 MB, free: 4.484 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004441/0.2575, allocations: 160.7 kB / 433.8 MB, free: 4.324 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.693e-05/0.2575, allocations: 0.5 kB / 433.8 MB, free: 4.324 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.452e-05/0.2575, allocations: 42.5 kB / 433.8 MB, free: 4.273 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 1.944e-06/0.2575, allocations: 0 / 433.8 MB, free: 4.273 MB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.003396/0.2609, allocations: 1.229 MB / 435.1 MB, free: 2.988 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.801e-05/0.261, allocations: 81.11 kB / 435.1 MB, free: 2.891 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004084/0.2614, allocations: 341.6 kB / 435.5 MB, free: 2.543 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.397e-05/0.2614, allocations: 29.7 kB / 435.5 MB, free: 2.508 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000201/0.2616, allocations: 252.6 kB / 435.7 MB, free: 2.254 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001068/0.2617, allocations: 119 kB / 435.9 MB, free: 2.137 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001303/0.2619, allocations: 82.08 kB / 435.9 MB, free: 2.051 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001889/0.2621, allocations: 350.7 kB / 436.3 MB, free: 1.699 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004968/0.2626, allocations: 174.4 kB / 436.4 MB, free: 1.527 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005724/0.2631, allocations: 274.5 kB / 436.7 MB, free: 1.219 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000973/0.2641, allocations: 396.4 kB / 437.1 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.2641, allocations: 0 / 437.1 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001163/0.2653, allocations: 493.1 kB / 437.6 MB, free: 324 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.198e-05/0.2653, allocations: 14.53 kB / 437.6 MB, free: 312 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.919e-06/0.2653, allocations: 4 kB / 437.6 MB, free: 308 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.417e-05/0.2653, allocations: 4 kB / 437.6 MB, free: 304 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000939/0.2663, allocations: 211.7 kB / 437.8 MB, free: 92 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001816/0.2681, allocations: 1.434 MB / 439.2 MB, free: 14.56 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003746/0.2685, allocations: 44.08 kB / 439.3 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.934e-05/0.2685, allocations: 15.94 kB / 439.3 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006001/0.2691, allocations: 272.9 kB / 439.6 MB, free: 14.23 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005084/0.2696, allocations: 262.5 kB / 439.8 MB, free: 13.94 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008862/0.2705, allocations: 375.7 kB / 440.2 MB, free: 13.55 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.615e-06/0.2705, allocations: 0 / 440.2 MB, free: 13.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.001068/0.2715, allocations: 473.2 kB / 440.7 MB, free: 13.08 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.177e-05/0.2716, allocations: 4 kB / 440.7 MB, free: 13.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.017e-06/0.2716, allocations: 4 kB / 440.7 MB, free: 13.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.394e-06/0.2716, allocations: 4 kB / 440.7 MB, free: 13.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005175/0.2721, allocations: 115.9 kB / 440.8 MB, free: 12.95 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.011e-05/0.2721, allocations: 15.86 kB / 440.8 MB, free: 12.94 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003158/0.2724, allocations: 31.97 kB / 440.8 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.742e-05/0.2724, allocations: 20.03 kB / 440.9 MB, free: 12.89 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.0001767/0.2726, allocations: 204.2 kB / 441 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.887e-05/0.2727, allocations: 35.77 kB / 441.1 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001037/0.2728, allocations: 48.02 kB / 441.1 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.073e-06/0.2728, allocations: 7.938 kB / 441.1 MB, free: 12.58 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.247e-06/0.2728, allocations: 0 / 441.1 MB, free: 12.58 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.067e-06/0.2728, allocations: 0 / 441.1 MB, free: 12.58 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001754/0.2746, allocations: 0.7953 MB / 441.9 MB, free: 11.74 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.756e-06/0.2746, allocations: 0 / 441.9 MB, free: 11.74 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004443/0.275, allocations: 95.94 kB / 442 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.832e-06/0.275, allocations: 4 kB / 442 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.524e-05/0.275, allocations: 4 kB / 442 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.915e-06/0.275, allocations: 15.92 kB / 442.1 MB, free: 11.62 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.2751, allocations: 0 / 442.1 MB, free: 11.62 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001499/0.2765, allocations: 0.6638 MB / 442.7 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001419/0.2767, allocations: 63.75 kB / 442.8 MB, free: 10.87 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.846e-05/0.2767, allocations: 8 kB / 442.8 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003062/0.277, allocations: 35.95 kB / 442.8 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.095e-05/0.2771, allocations: 27.89 kB / 442.8 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.181e-05/0.2771, allocations: 12 kB / 442.9 MB, free: 10.79 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002606/0.2774, allocations: 235.2 kB / 443.1 MB, free: 10.56 MB / 350.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.2774, allocations: 0 / 443.1 MB, free: 10.56 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005653/0.278, allocations: 132 kB / 443.2 MB, free: 10.43 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.0001178/0.2781, allocations: 111.1 kB / 443.3 MB, free: 10.32 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001981/0.2801, allocations: 0.6601 MB / 444 MB, free: 9.656 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.2801, allocations: 0 / 444 MB, free: 9.656 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004753/0.2806, allocations: 176.5 kB / 444.2 MB, free: 9.484 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006558/0.2812, allocations: 98.69 kB / 444.3 MB, free: 9.391 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001976/0.2832, allocations: 1.059 MB / 445.3 MB, free: 8.285 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002362/0.2834, allocations: 216.2 kB / 445.5 MB, free: 8.055 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001206/0.2835, allocations: 31.44 kB / 445.6 MB, free: 8.023 MB / 350.1 MB Notification: Performance of SimCode: time 4.51e-07/0.2835, allocations: 0 / 445.6 MB, free: 8.023 MB / 350.1 MB Notification: Performance of Templates: time 0.009966/0.2935, allocations: 6.087 MB / 451.6 MB, free: 1.945 MB / 350.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/PID_Controller/PID_Controller.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.693460084032267]