Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.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.001287/0.001287, allocations: 115.6 kB / 20.43 MB, free: 1.457 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.001514/0.001514, allocations: 214.1 kB / 23.75 MB, free: 4.668 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.451/1.451, allocations: 230.6 MB / 257.5 MB, free: 7.98 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.Utilities.Examples.readRealParameterModel,fileNamePrefix="Modelica_4_1_0_Modelica_Utilities_Examples_readRealParameterModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Utilities.Examples.readRealParameterModel,fileNamePrefix="Modelica_4_1_0_Modelica_Utilities_Examples_readRealParameterModel",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001568/0.001568, allocations: 47.92 kB / 377.8 MB, free: 3.168 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2921/0.2936, allocations: 53.35 MB / 431.1 MB, free: 6.887 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.003197/0.2968, allocations: 1.212 MB / 432.3 MB, free: 5.672 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004646/0.3015, allocations: 2.197 MB / 434.5 MB, free: 3.465 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.09e-05/0.3015, allocations: 0 / 434.5 MB, free: 3.465 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.061e-05/0.3015, allocations: 3.984 kB / 434.5 MB, free: 3.461 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/Utilities/Examples.mo:279:3-378:24:writable] Warning: Pure function 'Modelica.Utilities.Examples.readRealParameter' contains a call to impure function 'Modelica.Utilities.Streams.readLine'. Notification: Performance of NFTyping.typeBindings: time 0.00177/0.3033, allocations: 474.5 kB / 435 MB, free: 2.996 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.643e-05/0.3033, allocations: 7.984 kB / 435 MB, free: 2.988 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 6.015e-05/0.3034, allocations: 11.92 kB / 435 MB, free: 2.977 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.033e-05/0.3034, allocations: 0 / 435 MB, free: 2.977 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.616e-05/0.3035, allocations: 4 kB / 435 MB, free: 2.973 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001173/0.3036, allocations: 15.94 kB / 435 MB, free: 2.957 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.086e-05/0.3036, allocations: 0 / 435 MB, free: 2.957 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001099/0.3047, allocations: 0.5228 MB / 435.5 MB, free: 2.434 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.241e-05/0.3047, allocations: 0 / 435.5 MB, free: 2.434 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.06e-05/0.3047, allocations: 7.984 kB / 435.6 MB, free: 2.426 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007473/0.3055, allocations: 379.5 kB / 435.9 MB, free: 2.059 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.3055, allocations: 0 / 435.9 MB, free: 2.059 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3055, allocations: 0 / 435.9 MB, free: 2.059 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.773e-06/0.3055, allocations: 4 kB / 435.9 MB, free: 2.055 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: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.00063/0.3061, allocations: 349.4 kB / 436.3 MB, free: 1.684 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.238e-05/0.3062, allocations: 8.031 kB / 436.3 MB, free: 1.676 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.171e-05/0.3063, allocations: 106 kB / 436.4 MB, free: 1.562 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.605e-05/0.3064, allocations: 84.11 kB / 436.5 MB, free: 1.48 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00022/0.3066, allocations: 193.8 kB / 436.7 MB, free: 1.266 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.301e-05/0.3067, allocations: 150.9 kB / 436.8 MB, free: 1.117 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.139e-05/0.3068, allocations: 158.5 kB / 437 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.333e-05/0.3069, allocations: 105 kB / 437.1 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.283e-05/0.3069, allocations: 79.22 kB / 437.1 MB, free: 0.7734 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.166e-05/0.307, allocations: 150.6 kB / 437.3 MB, free: 0.625 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.272e-05/0.3071, allocations: 150.6 kB / 437.4 MB, free: 488 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.779e-05/0.3072, allocations: 158.5 kB / 437.6 MB, free: 328 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004296/0.3076, allocations: 421.1 kB / 438 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001474/0.3077, allocations: 173.1 kB / 438.2 MB, free: 15.68 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.134e-05/0.3078, allocations: 80.14 kB / 438.2 MB, free: 15.6 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.879e-05/0.3078, allocations: 75.28 kB / 438.3 MB, free: 15.53 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002342/0.3081, allocations: 55.3 kB / 438.4 MB, free: 15.46 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 2.655e-06/0.3081, allocations: 0 / 438.4 MB, free: 15.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001601/0.3082, allocations: 33.64 kB / 438.4 MB, free: 15.43 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.074e-05/0.3083, allocations: 55.41 kB / 438.5 MB, free: 15.36 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001229/0.3084, allocations: 101.8 kB / 438.6 MB, free: 15.25 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.677e-05/0.3084, allocations: 25.7 kB / 438.6 MB, free: 15.22 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.447e-05/0.3085, allocations: 84.14 kB / 438.7 MB, free: 15.13 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.686e-05/0.3085, allocations: 4.078 kB / 438.7 MB, free: 15.13 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.742e-05/0.3085, allocations: 17.72 kB / 438.7 MB, free: 15.11 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001808/0.3087, allocations: 314.8 kB / 439 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.124e-05/0.3087, allocations: 0 / 439 MB, free: 14.79 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.406e-06/0.3087, allocations: 3.938 kB / 439 MB, free: 14.79 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.187e-05/0.3088, allocations: 12.86 kB / 439 MB, free: 14.77 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.398e-06/0.3088, allocations: 3.938 kB / 439 MB, free: 14.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.198e-05/0.3088, allocations: 29.7 kB / 439 MB, free: 14.73 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.807e-05/0.3088, allocations: 12.09 kB / 439.1 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/0.3089, allocations: 4 kB / 439.1 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.606e-05/0.3089, allocations: 0 / 439.1 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.57e-05/0.3089, allocations: 0 / 439.1 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.491e-06/0.3089, allocations: 0 / 439.1 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.312e-05/0.3089, allocations: 0 / 439.1 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.107e-06/0.3089, allocations: 3.984 kB / 439.1 MB, free: 14.71 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 1 * 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 prepare postOptimizeDAE: time 0.0001073/0.309, allocations: 117.7 kB / 439.2 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.291e-05/0.3091, allocations: 3.938 kB / 439.2 MB, free: 14.58 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.404e-05/0.3091, allocations: 15.11 kB / 439.2 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.21e-06/0.3091, allocations: 4 kB / 439.2 MB, free: 14.56 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.3091, allocations: 0 / 439.2 MB, free: 14.56 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.3091, allocations: 0 / 439.2 MB, free: 14.56 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001544/0.3093, allocations: 120.7 kB / 439.3 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.3093, allocations: 4 kB / 439.3 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.777e-06/0.3093, allocations: 0 / 439.3 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.3093, allocations: 0 / 439.3 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.372e-06/0.3093, allocations: 0 / 439.3 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.3093, allocations: 0 / 439.3 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.3093, allocations: 3.938 kB / 439.3 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001121/0.3094, allocations: 69.06 kB / 439.4 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.019e-06/0.3094, allocations: 192 / 439.4 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.464e-05/0.3094, allocations: 0 / 439.4 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.121e-05/0.3094, allocations: 7.922 kB / 439.4 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.316e-05/0.3094, allocations: 4 kB / 439.4 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.893e-06/0.3095, allocations: 0 / 439.4 MB, free: 14.3 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.773e-05/0.3095, allocations: 91.2 kB / 439.5 MB, free: 14.21 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3095, allocations: 4.031 kB / 439.5 MB, free: 14.2 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006824/0.3102, allocations: 143.5 kB / 439.6 MB, free: 14.06 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 1 * 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.001783/0.312, allocations: 0.9843 MB / 440.6 MB, free: 13.12 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.767e-05/0.3121, allocations: 8 kB / 440.6 MB, free: 13.11 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.3121, allocations: 0 / 440.6 MB, free: 13.11 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.929e-06/0.3121, allocations: 3.938 kB / 440.6 MB, free: 13.11 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001944/0.3123, allocations: 4 kB / 440.6 MB, free: 13.11 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001415/0.3137, allocations: 1.158 MB / 441.8 MB, free: 11.87 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003257/0.314, allocations: 0.6807 MB / 442.5 MB, free: 11.16 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.168e-05/0.3141, allocations: 11.92 kB / 442.5 MB, free: 11.15 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.606e-05/0.3141, allocations: 15.44 kB / 442.5 MB, free: 11.13 MB / 350.1 MB Notification: Performance of SimCode: time 6.41e-07/0.3141, allocations: 0 / 442.5 MB, free: 11.13 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03145/0.3456, allocations: 4.455 MB / 447 MB, free: 6.805 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.08/11.43, allocations: 4.734 kB / 447 MB, free: 6.801 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.pipe ; mkfifo Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.pipe >> ../files/Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel_res.csv --start-time 0 --stop-time 1.01 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000201919 Modelica_4_1_0_Modelica_Utilities_Examples_readRealParameterModel.fmu > Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Utilities/Examples/readRealParameterModel/readRealParameterModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.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: 13.923198966997006]