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.001837/0.001837, 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.002279/0.002279, allocations: 212.6 kB / 23.73 MB, free: 4.387 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.605/1.605, allocations: 230.6 MB / 257.5 MB, free: 7.797 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: "" <> buildModelFMU(Modelica.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_PID_Controller",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_PID_Controller",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001762/0.001762, allocations: 47.94 kB / 377.7 MB, free: 2.984 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2658/0.2675, allocations: 53.37 MB / 431.1 MB, free: 6.645 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.005107/0.2726, allocations: 2.903 MB / 434 MB, free: 3.73 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002466/0.2751, allocations: 0.9657 MB / 434.9 MB, free: 2.762 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004865/0.2756, allocations: 15.88 kB / 435 MB, free: 2.746 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00049/0.2761, allocations: 91.17 kB / 435.1 MB, free: 2.656 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004835/0.2766, allocations: 111 kB / 435.2 MB, free: 2.547 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008312/0.2774, allocations: 235.7 kB / 435.4 MB, free: 2.316 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007778/0.2782, allocations: 0.5184 MB / 435.9 MB, free: 1.793 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003179/0.2785, allocations: 117.7 kB / 436 MB, free: 1.68 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003106/0.2788, allocations: 207.1 kB / 436.2 MB, free: 1.477 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003161/0.2791, allocations: 179 kB / 436.4 MB, free: 1.301 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.181e-05/0.2792, allocations: 40 kB / 436.4 MB, free: 1.262 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.827e-05/0.2793, allocations: 44 kB / 436.5 MB, free: 1.219 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000121/0.2794, allocations: 111.5 kB / 436.6 MB, free: 1.109 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001821/0.2796, allocations: 175 kB / 436.8 MB, free: 0.9375 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005924/0.2802, allocations: 0.4919 MB / 437.3 MB, free: 456 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.2802, allocations: 4 kB / 437.3 MB, free: 452 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.2802, allocations: 4 kB / 437.3 MB, free: 448 kB / 334.1 MB Notification: Performance of Transformations before backend: time 1.381e-05/0.2802, allocations: 0 / 437.3 MB, free: 448 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.001394/0.2816, allocations: 0.7038 MB / 438 MB, free: 15.7 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.534e-05/0.2817, allocations: 8.031 kB / 438 MB, free: 15.69 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.668e-05/0.2818, allocations: 78.72 kB / 438.1 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.909e-05/0.2818, allocations: 52.61 kB / 438.1 MB, free: 15.55 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005944/0.2824, allocations: 306.1 kB / 438.4 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.455e-05/0.2825, allocations: 29.38 kB / 438.4 MB, free: 15.2 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.703e-05/0.2826, allocations: 40.38 kB / 438.5 MB, free: 15.16 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009608/0.2835, allocations: 0.4949 MB / 439 MB, free: 14.62 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.599e-05/0.2835, allocations: 7.953 kB / 439 MB, free: 14.62 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.653e-05/0.2836, allocations: 16 kB / 439 MB, free: 14.6 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.067e-05/0.2836, allocations: 8 kB / 439 MB, free: 14.59 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009726/0.2846, allocations: 375.6 kB / 439.4 MB, free: 14.23 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002185/0.2867, allocations: 1.418 MB / 440.8 MB, free: 12.73 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008204/0.2876, allocations: 299.4 kB / 441.1 MB, free: 12.43 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004186/0.288, allocations: 156.7 kB / 441.2 MB, free: 12.27 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.939e-05/0.288, allocations: 4 kB / 441.2 MB, free: 12.27 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.9e-05/0.288, allocations: 34.56 kB / 441.3 MB, free: 12.22 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.803e-06/0.288, allocations: 0 / 441.3 MB, free: 12.22 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.003262/0.2913, allocations: 1.243 MB / 442.5 MB, free: 10.92 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.537e-05/0.2914, allocations: 106.8 kB / 442.6 MB, free: 10.79 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004352/0.2918, allocations: 369.6 kB / 443 MB, free: 10.42 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.278e-05/0.2919, allocations: 29.7 kB / 443 MB, free: 10.39 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001862/0.292, allocations: 248.4 kB / 443.2 MB, free: 10.14 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.632e-05/0.2921, allocations: 119 kB / 443.4 MB, free: 10.02 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001244/0.2923, allocations: 78.08 kB / 443.4 MB, free: 9.941 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002231/0.2925, allocations: 354.7 kB / 443.8 MB, free: 9.586 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004864/0.293, allocations: 170.5 kB / 444 MB, free: 9.418 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005793/0.2936, allocations: 313 kB / 444.3 MB, free: 9.066 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000906/0.2945, allocations: 391.9 kB / 444.6 MB, free: 8.656 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.2945, allocations: 8 kB / 444.6 MB, free: 8.648 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001105/0.2956, allocations: 493.1 kB / 445.1 MB, free: 8.16 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.81e-05/0.2956, allocations: 4 kB / 445.1 MB, free: 8.156 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.297e-06/0.2956, allocations: 4 kB / 445.1 MB, free: 8.152 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.723e-05/0.2956, allocations: 4 kB / 445.1 MB, free: 8.148 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008865/0.2965, allocations: 219.8 kB / 445.4 MB, free: 7.934 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001878/0.2984, allocations: 1.461 MB / 446.8 MB, free: 6.359 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003528/0.2987, allocations: 40.12 kB / 446.9 MB, free: 6.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.245e-05/0.2988, allocations: 16 kB / 446.9 MB, free: 6.305 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005808/0.2994, allocations: 272.9 kB / 447.1 MB, free: 6.035 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005162/0.2999, allocations: 293.1 kB / 447.4 MB, free: 5.703 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008314/0.3007, allocations: 379.7 kB / 447.8 MB, free: 5.305 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.254e-06/0.3007, allocations: 0 / 447.8 MB, free: 5.305 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.001077/0.3018, allocations: 473 kB / 448.3 MB, free: 4.836 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.429e-05/0.3018, allocations: 8 kB / 448.3 MB, free: 4.828 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.107e-06/0.3018, allocations: 0 / 448.3 MB, free: 4.828 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.993e-06/0.3018, allocations: 4 kB / 448.3 MB, free: 4.824 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004966/0.3023, allocations: 127.7 kB / 448.4 MB, free: 4.699 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.424e-06/0.3023, allocations: 4 kB / 448.4 MB, free: 4.695 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003254/0.3026, allocations: 40.12 kB / 448.4 MB, free: 4.656 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.633e-05/0.3027, allocations: 12 kB / 448.4 MB, free: 4.645 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.0001827/0.3028, allocations: 204.1 kB / 448.6 MB, free: 4.438 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.624e-05/0.3029, allocations: 47.7 kB / 448.7 MB, free: 4.391 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001052/0.303, allocations: 44.19 kB / 448.7 MB, free: 4.344 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.591e-06/0.303, allocations: 7.938 kB / 448.7 MB, free: 4.336 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.303, allocations: 0 / 448.7 MB, free: 4.336 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.718e-06/0.3031, allocations: 0 / 448.7 MB, free: 4.336 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001801/0.3049, allocations: 0.8482 MB / 449.6 MB, free: 3.426 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.938e-06/0.3049, allocations: 0 / 449.6 MB, free: 3.426 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004304/0.3053, allocations: 95.98 kB / 449.7 MB, free: 3.332 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.212e-06/0.3053, allocations: 0 / 449.7 MB, free: 3.332 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.947e-05/0.3053, allocations: 8 kB / 449.7 MB, free: 3.324 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.97e-06/0.3053, allocations: 4 kB / 449.7 MB, free: 3.32 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.3053, allocations: 3.938 kB / 449.7 MB, free: 3.316 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001532/0.3069, allocations: 0.6797 MB / 450.4 MB, free: 2.609 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001616/0.307, allocations: 55.8 kB / 450.4 MB, free: 2.555 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.513e-05/0.3071, allocations: 11.98 kB / 450.4 MB, free: 2.543 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003174/0.3074, allocations: 35.97 kB / 450.5 MB, free: 2.508 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.299e-05/0.3075, allocations: 23.95 kB / 450.5 MB, free: 2.484 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.909e-05/0.3075, allocations: 8 kB / 450.5 MB, free: 2.477 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000331/0.3078, allocations: 259.1 kB / 450.8 MB, free: 2.223 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3078, allocations: 0 / 450.8 MB, free: 2.223 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006403/0.3085, allocations: 132 kB / 450.9 MB, free: 2.094 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.00195/0.3104, allocations: 1.216 MB / 452.1 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002007/0.3124, allocations: 0.6612 MB / 452.8 MB, free: 180 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.509e-06/0.3125, allocations: 448 / 452.8 MB, free: 180 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004985/0.3129, allocations: 175.8 kB / 452.9 MB, free: 4 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007131/0.3137, allocations: 104.2 kB / 453 MB, free: 15.91 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006955/0.3206, allocations: 4.03 MB / 457.1 MB, free: 11.73 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002413/0.3209, allocations: 224.1 kB / 457.3 MB, free: 11.49 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002999/0.3212, allocations: 55.25 kB / 457.3 MB, free: 11.43 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000244/0.3214, allocations: 143.4 kB / 457.5 MB, free: 11.3 MB / 366.1 MB Notification: Performance of SimCode: time 5.92e-07/0.3214, allocations: 0 / 457.5 MB, free: 11.3 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04814/0.3695, allocations: 9.648 MB / 467.1 MB, free: 1.863 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.98/13.35, allocations: 0 / 467.1 MB, free: 1.863 MB / 366.1 MB " [Timeout remaining time 647] (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 & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller_res.csv --start-time 0 --stop-time 4 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000798085 Modelica_4_1_0_Modelica_Blocks_Examples_PID_Controller.fmu > Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller_res.csv","/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_4.1.0_Modelica.Blocks.Examples.PID_Controller.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable inertia1.w in file Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller_res.csv. Warning: Get data of variable inertia1.w from file Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller_res.csv failed! Error: Could not read variable spring.w_rel in file Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller_res.csv. Warning: Get data of variable spring.w_rel from file Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.08910239394754]