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.001385/0.001385, allocations: 113 kB / 19.04 MB, free: 3.254 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.001418/0.001418, allocations: 197.9 kB / 22.22 MB, free: 72 kB / 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.484/1.484, allocations: 225.6 MB / 250.8 MB, free: 13.34 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.001502/0.001502, allocations: 47.92 kB / 368.7 MB, free: 10.15 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2659/0.2674, allocations: 52.13 MB / 420.8 MB, free: 15.09 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004561/0.272, allocations: 3.163 MB / 424 MB, free: 11.91 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001988/0.274, allocations: 0.9777 MB / 425 MB, free: 10.93 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002123/0.2742, allocations: 11.94 kB / 425 MB, free: 10.92 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003816/0.2746, allocations: 95.05 kB / 425.1 MB, free: 10.82 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002746/0.2748, allocations: 111.1 kB / 425.2 MB, free: 10.71 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005928/0.2754, allocations: 234.6 kB / 425.4 MB, free: 10.49 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005958/0.276, allocations: 0.5107 MB / 425.9 MB, free: 9.977 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002591/0.2763, allocations: 125.3 kB / 426.1 MB, free: 9.848 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002355/0.2765, allocations: 199.1 kB / 426.3 MB, free: 9.652 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002605/0.2768, allocations: 211 kB / 426.5 MB, free: 9.445 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.334e-05/0.2769, allocations: 40 kB / 426.5 MB, free: 9.406 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.922e-05/0.2769, allocations: 40 kB / 426.5 MB, free: 9.367 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000117/0.277, allocations: 107.6 kB / 426.6 MB, free: 9.262 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002049/0.2772, allocations: 222.7 kB / 426.9 MB, free: 9.043 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005754/0.2778, allocations: 0.4951 MB / 427.4 MB, free: 8.555 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.2778, allocations: 0 / 427.4 MB, free: 8.555 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.2778, allocations: 0 / 427.4 MB, free: 8.555 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.171e-05/0.2778, allocations: 0 / 427.4 MB, free: 8.555 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.001335/0.2792, allocations: 0.783 MB / 428.1 MB, free: 7.723 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.817e-05/0.2792, allocations: 11.89 kB / 428.2 MB, free: 7.711 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.363e-05/0.2793, allocations: 52.61 kB / 428.2 MB, free: 7.66 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005495/0.2798, allocations: 368 kB / 428.6 MB, free: 7.262 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.33e-05/0.2799, allocations: 29.38 kB / 428.6 MB, free: 7.234 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.429e-05/0.2799, allocations: 47.89 kB / 428.6 MB, free: 7.188 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000912/0.2809, allocations: 446.3 kB / 429.1 MB, free: 6.719 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.305e-05/0.2809, allocations: 4 kB / 429.1 MB, free: 6.715 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.446e-05/0.2809, allocations: 12 kB / 429.1 MB, free: 6.703 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.978e-06/0.2809, allocations: 12 kB / 429.1 MB, free: 6.691 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009421/0.2819, allocations: 379.6 kB / 429.5 MB, free: 6.324 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002225/0.2841, allocations: 1.571 MB / 431 MB, free: 4.656 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008427/0.2849, allocations: 302.6 kB / 431.3 MB, free: 4.348 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006174/0.2856, allocations: 152.8 kB / 431.5 MB, free: 4.195 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.092e-05/0.2856, allocations: 4.5 kB / 431.5 MB, free: 4.191 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.649e-05/0.2856, allocations: 46.44 kB / 431.5 MB, free: 4.137 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 2.224e-06/0.2856, allocations: 0 / 431.5 MB, free: 4.137 MB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.004862/0.2905, allocations: 1.385 MB / 432.9 MB, free: 2.656 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.017e-05/0.2906, allocations: 81.11 kB / 433 MB, free: 2.559 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006356/0.2912, allocations: 353.7 kB / 433.3 MB, free: 2.207 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.744e-05/0.2913, allocations: 33.7 kB / 433.4 MB, free: 2.168 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002724/0.2916, allocations: 244.4 kB / 433.6 MB, free: 1.922 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001431/0.2917, allocations: 122.9 kB / 433.7 MB, free: 1.801 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002057/0.2919, allocations: 82.12 kB / 433.8 MB, free: 1.715 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002444/0.2922, allocations: 354.7 kB / 434.2 MB, free: 1.359 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006859/0.2928, allocations: 170.5 kB / 434.3 MB, free: 1.191 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000782/0.2936, allocations: 252.8 kB / 434.6 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001372/0.295, allocations: 388 kB / 435 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.2e-06/0.295, allocations: 4 kB / 435 MB, free: 0.5 MB / 334.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001708/0.2967, allocations: 0.4931 MB / 435.5 MB, free: 0 / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.643e-05/0.2968, allocations: 4.047 kB / 435.5 MB, free: 15.99 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.261e-05/0.2968, allocations: 4 kB / 435.5 MB, free: 15.99 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.547e-05/0.2968, allocations: 4 kB / 435.5 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001376/0.2982, allocations: 207.9 kB / 435.7 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002624/0.3008, allocations: 1.568 MB / 437.2 MB, free: 14.08 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005104/0.3013, allocations: 40.08 kB / 437.3 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.264e-05/0.3013, allocations: 16 kB / 437.3 MB, free: 14.03 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008437/0.3022, allocations: 276.8 kB / 437.6 MB, free: 13.75 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007211/0.3029, allocations: 236.8 kB / 437.8 MB, free: 13.5 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001219/0.3041, allocations: 363.8 kB / 438.1 MB, free: 13.11 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.826e-06/0.3041, allocations: 0 / 438.1 MB, free: 13.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.001546/0.3057, allocations: 489 kB / 438.6 MB, free: 12.63 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.496e-05/0.3057, allocations: 4 kB / 438.6 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.947e-06/0.3057, allocations: 7.938 kB / 438.6 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.486e-06/0.3057, allocations: 4 kB / 438.6 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007113/0.3064, allocations: 111.9 kB / 438.8 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.298e-05/0.3064, allocations: 11.92 kB / 438.8 MB, free: 12.49 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004512/0.3069, allocations: 40.12 kB / 438.8 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.294e-05/0.3069, allocations: 16 kB / 438.8 MB, free: 12.44 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.0002383/0.3072, allocations: 200.1 kB / 439 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001143/0.3073, allocations: 43.7 kB / 439.1 MB, free: 12.19 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001357/0.3074, allocations: 44.23 kB / 439.1 MB, free: 12.15 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.247e-05/0.3074, allocations: 7.984 kB / 439.1 MB, free: 12.14 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.3074, allocations: 3.938 kB / 439.1 MB, free: 12.14 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.09e-06/0.3074, allocations: 0 / 439.1 MB, free: 12.14 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002512/0.3099, allocations: 0.9207 MB / 440 MB, free: 11.15 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.282e-06/0.31, allocations: 4 kB / 440 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006709/0.3106, allocations: 87.86 kB / 440.1 MB, free: 11.06 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.455e-06/0.3106, allocations: 4 kB / 440.1 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.829e-05/0.3107, allocations: 12 kB / 440.1 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.462e-06/0.3107, allocations: 3.938 kB / 440.1 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.438e-06/0.3107, allocations: 4 kB / 440.1 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002229/0.3129, allocations: 0.6681 MB / 440.8 MB, free: 10.34 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002805/0.3132, allocations: 140.8 kB / 441 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.097e-05/0.3133, allocations: 8 kB / 441 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004108/0.3137, allocations: 35.95 kB / 441 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001454/0.3138, allocations: 31.84 kB / 441 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.96e-05/0.3139, allocations: 12 kB / 441 MB, free: 10.1 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004582/0.3143, allocations: 243.2 kB / 441.3 MB, free: 9.859 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3143, allocations: 0 / 441.3 MB, free: 9.859 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009419/0.3153, allocations: 139.9 kB / 441.4 MB, free: 9.723 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.0002012/0.3155, allocations: 115.1 kB / 441.5 MB, free: 9.598 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002929/0.3184, allocations: 0.6606 MB / 442.2 MB, free: 8.938 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.3184, allocations: 0 / 442.2 MB, free: 8.938 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006728/0.3191, allocations: 167.8 kB / 442.3 MB, free: 8.773 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001082/0.3202, allocations: 100.8 kB / 442.4 MB, free: 8.68 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002984/0.3231, allocations: 1.032 MB / 443.5 MB, free: 7.605 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006118/0.3238, allocations: 0.8195 MB / 444.3 MB, free: 6.762 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000396/0.3242, allocations: 71.22 kB / 444.4 MB, free: 6.691 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001454/0.3243, allocations: 27.44 kB / 444.4 MB, free: 6.664 MB / 350.1 MB Notification: Performance of SimCode: time 2.144e-06/0.3243, allocations: 0 / 444.4 MB, free: 6.664 MB / 350.1 MB Notification: Performance of Templates: time 0.01559/0.3399, allocations: 4.876 MB / 449.3 MB, free: 1.828 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/PID_Controller/PID_Controller.csv","/var/lib/jenkins/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: 4.734651423059404]