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.00184/0.00184, allocations: 111.1 kB / 20.44 MB, free: 1.184 MB / 14.72 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.001522/0.001522, allocations: 207.4 kB / 23.72 MB, free: 4.391 MB / 14.72 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.481/1.481, allocations: 230.6 MB / 257.5 MB, free: 7.816 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001592/0.001592, allocations: 43.92 kB / 378.2 MB, free: 2.586 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2655/0.2671, allocations: 53.37 MB / 431.6 MB, free: 6.73 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004806/0.2719, allocations: 2.915 MB / 434.5 MB, free: 3.805 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001884/0.2738, allocations: 0.962 MB / 435.4 MB, free: 2.836 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001995/0.274, allocations: 19.88 kB / 435.5 MB, free: 2.816 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003656/0.2743, allocations: 91.16 kB / 435.5 MB, free: 2.727 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002514/0.2746, allocations: 103.1 kB / 435.6 MB, free: 2.625 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005878/0.2752, allocations: 250.6 kB / 435.9 MB, free: 2.383 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00058/0.2758, allocations: 0.5107 MB / 436.4 MB, free: 1.867 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002706/0.276, allocations: 113.7 kB / 436.5 MB, free: 1.758 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00024/0.2763, allocations: 203.2 kB / 436.7 MB, free: 1.559 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002728/0.2765, allocations: 190.9 kB / 436.9 MB, free: 1.371 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.991e-05/0.2766, allocations: 43.94 kB / 436.9 MB, free: 1.328 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.535e-05/0.2767, allocations: 44 kB / 437 MB, free: 1.285 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001199/0.2768, allocations: 99.62 kB / 437.1 MB, free: 1.188 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001843/0.277, allocations: 175.1 kB / 437.3 MB, free: 1.016 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005502/0.2775, allocations: 0.4913 MB / 437.7 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.2775, allocations: 8 kB / 437.8 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.2775, allocations: 3.938 kB / 437.8 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.664e-06/0.2776, allocations: 0 / 437.8 MB, free: 0.5195 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.001343/0.2789, allocations: 0.7077 MB / 438.5 MB, free: 15.78 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.136e-05/0.2789, allocations: 12.02 kB / 438.5 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.39e-05/0.279, allocations: 52.61 kB / 438.5 MB, free: 15.71 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005292/0.2796, allocations: 306.2 kB / 438.8 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.559e-05/0.2796, allocations: 29.38 kB / 438.9 MB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.013e-05/0.2797, allocations: 36.38 kB / 438.9 MB, free: 15.33 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009499/0.2806, allocations: 0.495 MB / 439.4 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.549e-05/0.2806, allocations: 7.953 kB / 439.4 MB, free: 14.78 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.604e-05/0.2807, allocations: 16 kB / 439.4 MB, free: 14.77 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.096e-05/0.2807, allocations: 8 kB / 439.4 MB, free: 14.76 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009964/0.2817, allocations: 375.6 kB / 439.8 MB, free: 14.39 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002052/0.2837, allocations: 1.36 MB / 441.1 MB, free: 12.96 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008262/0.2846, allocations: 309.6 kB / 441.4 MB, free: 12.65 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004401/0.285, allocations: 148.8 kB / 441.6 MB, free: 12.5 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.571e-05/0.285, allocations: 4 kB / 441.6 MB, free: 12.5 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.369e-05/0.2851, allocations: 46.48 kB / 441.6 MB, free: 12.45 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.523e-06/0.2851, allocations: 0 / 441.6 MB, free: 12.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.003249/0.2883, allocations: 1.231 MB / 442.9 MB, free: 11.16 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.232e-05/0.2884, allocations: 106.8 kB / 443 MB, free: 11.03 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003824/0.2888, allocations: 345.6 kB / 443.3 MB, free: 10.68 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.026e-05/0.2888, allocations: 29.7 kB / 443.3 MB, free: 10.64 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001913/0.289, allocations: 252.4 kB / 443.6 MB, free: 10.39 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000102/0.2891, allocations: 119 kB / 443.7 MB, free: 10.27 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001232/0.2892, allocations: 78.08 kB / 443.8 MB, free: 10.19 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001605/0.2894, allocations: 350.8 kB / 444.1 MB, free: 9.84 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004793/0.2899, allocations: 174.5 kB / 444.3 MB, free: 9.668 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005948/0.2905, allocations: 305.1 kB / 444.6 MB, free: 9.324 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009793/0.2914, allocations: 391.9 kB / 445 MB, free: 8.914 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.808e-06/0.2914, allocations: 7.938 kB / 445 MB, free: 8.906 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001174/0.2926, allocations: 497.1 kB / 445.5 MB, free: 8.414 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.608e-05/0.2926, allocations: 8 kB / 445.5 MB, free: 8.406 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.899e-06/0.2926, allocations: 7.984 kB / 445.5 MB, free: 8.398 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.18e-05/0.2927, allocations: 4 kB / 445.5 MB, free: 8.395 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009033/0.2936, allocations: 211.7 kB / 445.7 MB, free: 8.188 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001764/0.2953, allocations: 1.446 MB / 447.1 MB, free: 6.645 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003684/0.2957, allocations: 48.02 kB / 447.2 MB, free: 6.598 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.896e-05/0.2957, allocations: 16 kB / 447.2 MB, free: 6.582 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005723/0.2963, allocations: 268.9 kB / 447.5 MB, free: 6.316 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005193/0.2968, allocations: 293.1 kB / 447.8 MB, free: 5.984 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008477/0.2977, allocations: 371.7 kB / 448.1 MB, free: 5.594 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.673e-06/0.2977, allocations: 0 / 448.1 MB, free: 5.594 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.001082/0.2987, allocations: 469.1 kB / 448.6 MB, free: 5.129 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.547e-06/0.2988, allocations: 4 kB / 448.6 MB, free: 5.125 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.2988, allocations: 4 kB / 448.6 MB, free: 5.121 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.041e-06/0.2988, allocations: 4 kB / 448.6 MB, free: 5.117 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004981/0.2993, allocations: 119.8 kB / 448.7 MB, free: 5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.088e-06/0.2993, allocations: 4 kB / 448.7 MB, free: 4.996 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003226/0.2996, allocations: 44.08 kB / 448.7 MB, free: 4.953 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.973e-05/0.2996, allocations: 15.94 kB / 448.8 MB, free: 4.938 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.0001544/0.2998, allocations: 208.1 kB / 449 MB, free: 4.727 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.071e-05/0.2998, allocations: 35.77 kB / 449 MB, free: 4.691 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.418e-05/0.2999, allocations: 44.09 kB / 449 MB, free: 4.641 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.628e-06/0.2999, allocations: 4 kB / 449.1 MB, free: 4.637 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.274e-06/0.2999, allocations: 0 / 449.1 MB, free: 4.637 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.085e-06/0.2999, allocations: 7.922 kB / 449.1 MB, free: 4.629 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001612/0.3016, allocations: 0.7942 MB / 449.9 MB, free: 3.785 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.92e-06/0.3016, allocations: 4 kB / 449.9 MB, free: 3.781 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004254/0.302, allocations: 84 kB / 449.9 MB, free: 3.699 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.233e-06/0.302, allocations: 7.938 kB / 449.9 MB, free: 3.691 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.841e-05/0.302, allocations: 15.98 kB / 450 MB, free: 3.676 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.564e-06/0.302, allocations: 0 / 450 MB, free: 3.676 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.302, allocations: 4 kB / 450 MB, free: 3.672 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00149/0.3035, allocations: 0.668 MB / 450.6 MB, free: 2.977 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001355/0.3037, allocations: 63.72 kB / 450.7 MB, free: 2.914 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.829e-05/0.3037, allocations: 12 kB / 450.7 MB, free: 2.902 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003107/0.304, allocations: 35.95 kB / 450.7 MB, free: 2.867 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.455e-05/0.3041, allocations: 27.95 kB / 450.8 MB, free: 2.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.771e-05/0.3041, allocations: 8.125 kB / 450.8 MB, free: 2.832 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002646/0.3044, allocations: 243.1 kB / 451 MB, free: 2.598 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3044, allocations: 0 / 451 MB, free: 2.598 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005288/0.3049, allocations: 132 kB / 451.1 MB, free: 2.469 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.0001239/0.305, allocations: 111.1 kB / 451.3 MB, free: 2.352 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001922/0.3069, allocations: 0.6481 MB / 451.9 MB, free: 1.703 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.77e-06/0.307, allocations: 4.438 kB / 451.9 MB, free: 1.699 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004756/0.3074, allocations: 179.7 kB / 452.1 MB, free: 1.523 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006359/0.3081, allocations: 98.09 kB / 452.2 MB, free: 1.43 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001874/0.3099, allocations: 1.01 MB / 453.2 MB, free: 392 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002299/0.3102, allocations: 224 kB / 453.4 MB, free: 144 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003357/0.3105, allocations: 55.23 kB / 453.5 MB, free: 88 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001128/0.3106, allocations: 31.44 kB / 453.5 MB, free: 56 kB / 350.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3106, allocations: 0 / 453.5 MB, free: 56 kB / 350.1 MB Notification: Performance of Templates: time 0.01105/0.3217, allocations: 5.257 MB / 458.7 MB, free: 10.89 MB / 366.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.880524627864361]