Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Fluid.Sensors.Examples.HeatMeter.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.001991/0.001991, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.00249/0.00249, allocations: 215.2 kB / 22.25 MB, free: 5.082 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.547/1.547, allocations: 230.6 MB / 256 MB, free: 8.004 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.81/2.81, allocations: 476.7 MB / 0.7707 GB, free: 4.234 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo) 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(Buildings.Fluid.Sensors.Examples.HeatMeter,fileNamePrefix="Buildings_11_Buildings_Fluid_Sensors_Examples_HeatMeter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.HeatMeter,fileNamePrefix="Buildings_11_Buildings_Fluid_Sensors_Examples_HeatMeter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002087/0.002087, allocations: 63.59 kB / 1.117 GB, free: 40.35 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3527/0.3548, allocations: 170 MB / 1.283 GB, free: 11.73 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.HeatMeter): time 0.02727/0.3821, allocations: 23.78 MB / 1.307 GB, free: 3.863 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.008667/0.3907, allocations: 5.12 MB / 1.312 GB, free: 14.73 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001005/0.3917, allocations: 35.69 kB / 1.312 GB, free: 14.7 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0008821/0.3926, allocations: 290 kB / 1.312 GB, free: 14.41 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.00229/0.3949, allocations: 0.8475 MB / 1.313 GB, free: 13.56 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.002024/0.3969, allocations: 0.7947 MB / 1.314 GB, free: 12.77 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.002151/0.3991, allocations: 1.66 MB / 1.315 GB, free: 11.1 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007427/0.3998, allocations: 398.1 kB / 1.316 GB, free: 10.71 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001754/0.4016, allocations: 0.6412 MB / 1.316 GB, free: 10.07 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007198/0.4023, allocations: 477.9 kB / 1.317 GB, free: 9.598 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 8.077e-05/0.4024, allocations: 48 kB / 1.317 GB, free: 9.551 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001287/0.4037, allocations: 0.5302 MB / 1.317 GB, free: 9.02 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.000188/0.4038, allocations: 147.4 kB / 1.317 GB, free: 8.875 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.000354/0.4042, allocations: 310.5 kB / 1.318 GB, free: 8.57 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.001637/0.4058, allocations: 0.9461 MB / 1.319 GB, free: 7.625 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.4058, allocations: 0 / 1.319 GB, free: 7.625 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.613e-06/0.4058, allocations: 0 / 1.319 GB, free: 7.625 MB / 1.014 GB Notification: Performance of Transformations before backend: time 1.724e-05/0.4059, allocations: 0 / 1.319 GB, free: 7.625 MB / 1.014 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 94 * Number of variables: 94 Notification: Performance of Generate backend data structure: time 0.001686/0.4075, allocations: 0.8353 MB / 1.319 GB, free: 6.758 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 6.191e-05/0.4076, allocations: 8.031 kB / 1.319 GB, free: 6.75 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001199/0.4077, allocations: 82.72 kB / 1.319 GB, free: 6.66 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002886/0.408, allocations: 68.52 kB / 1.32 GB, free: 6.594 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001238/0.4093, allocations: 0.5151 MB / 1.32 GB, free: 6.059 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.014e-05/0.4093, allocations: 29 kB / 1.32 GB, free: 6.031 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.298e-05/0.4094, allocations: 36 kB / 1.32 GB, free: 5.996 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007952/0.4102, allocations: 436.7 kB / 1.32 GB, free: 5.547 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.696e-05/0.4102, allocations: 3.938 kB / 1.32 GB, free: 5.543 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.57e-05/0.4102, allocations: 19.94 kB / 1.321 GB, free: 5.523 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.616e-05/0.4103, allocations: 8 kB / 1.321 GB, free: 5.516 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005607/0.4108, allocations: 307.8 kB / 1.321 GB, free: 5.215 MB / 1.014 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002934/0.4138, allocations: 1.78 MB / 1.323 GB, free: 3.332 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005341/0.4143, allocations: 254.7 kB / 1.323 GB, free: 3.074 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001855/0.4145, allocations: 116.8 kB / 1.323 GB, free: 2.957 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004939/0.415, allocations: 99.89 kB / 1.323 GB, free: 2.859 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.684e-05/0.415, allocations: 34.56 kB / 1.323 GB, free: 2.816 MB / 1.014 GB Notification: Performance of pre-optimization done (n=26): time 1.423e-06/0.415, allocations: 0 / 1.323 GB, free: 2.816 MB / 1.014 GB Notification: Performance of matching and sorting (n=26): time 0.0007435/0.4158, allocations: 373.7 kB / 1.323 GB, free: 2.445 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.546e-05/0.4158, allocations: 59.41 kB / 1.323 GB, free: 2.375 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005871/0.4164, allocations: 474 kB / 1.324 GB, free: 1.902 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 3.603e-05/0.4164, allocations: 33.7 kB / 1.324 GB, free: 1.863 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002563/0.4167, allocations: 260.4 kB / 1.324 GB, free: 1.605 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001066/0.4168, allocations: 111.2 kB / 1.324 GB, free: 1.496 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000108/0.4169, allocations: 62.03 kB / 1.324 GB, free: 1.43 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0002076/0.4171, allocations: 358.8 kB / 1.325 GB, free: 1.07 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001726/0.4173, allocations: 100.6 kB / 1.325 GB, free: 0.9727 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002459/0.4175, allocations: 172 kB / 1.325 GB, free: 0.7812 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004267/0.4179, allocations: 295.1 kB / 1.325 GB, free: 480 kB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.4179, allocations: 0 / 1.325 GB, free: 480 kB / 1.014 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005901/0.4185, allocations: 361.3 kB / 1.326 GB, free: 112 kB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.888e-05/0.4186, allocations: 8 kB / 1.326 GB, free: 104 kB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.448e-06/0.4186, allocations: 4 kB / 1.326 GB, free: 100 kB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.106e-05/0.4186, allocations: 7.938 kB / 1.326 GB, free: 92 kB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000272/0.4189, allocations: 79.89 kB / 1.326 GB, free: 12 kB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.161e-05/0.4189, allocations: 4 kB / 1.326 GB, free: 8 kB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002604/0.4191, allocations: 31.92 kB / 1.326 GB, free: 15.97 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.83e-05/0.4192, allocations: 23.92 kB / 1.326 GB, free: 15.95 MB / 1.029 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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.0002161/0.4194, allocations: 183.5 kB / 1.326 GB, free: 15.76 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001021/0.4195, allocations: 51.67 kB / 1.326 GB, free: 15.71 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00086/0.4203, allocations: 482.6 kB / 1.326 GB, free: 15.23 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.849e-05/0.4204, allocations: 11.73 kB / 1.326 GB, free: 15.23 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.179e-06/0.4204, allocations: 4 kB / 1.326 GB, free: 15.22 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006779/0.4211, allocations: 0.5768 MB / 1.327 GB, free: 14.58 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001862/0.4229, allocations: 1.064 MB / 1.328 GB, free: 13.45 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.4229, allocations: 0 / 1.328 GB, free: 13.45 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002265/0.4231, allocations: 51.92 kB / 1.328 GB, free: 13.39 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.512e-06/0.4231, allocations: 4 kB / 1.328 GB, free: 13.39 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.792e-05/0.4232, allocations: 11.98 kB / 1.328 GB, free: 13.38 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.98e-06/0.4232, allocations: 4 kB / 1.328 GB, free: 13.38 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.4232, allocations: 0 / 1.328 GB, free: 13.38 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009448/0.4241, allocations: 0.6954 MB / 1.329 GB, free: 12.64 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001914/0.4243, allocations: 91.59 kB / 1.329 GB, free: 12.55 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.628e-05/0.4244, allocations: 8 kB / 1.329 GB, free: 12.55 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002624/0.4247, allocations: 15.98 kB / 1.329 GB, free: 12.53 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.527e-05/0.4247, allocations: 27.91 kB / 1.329 GB, free: 12.5 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.021e-05/0.4247, allocations: 11.98 kB / 1.329 GB, free: 12.49 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0004284/0.4252, allocations: 346.9 kB / 1.329 GB, free: 12.16 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.11e-07/0.4252, allocations: 3.938 kB / 1.329 GB, free: 12.15 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0006771/0.4259, allocations: 211.4 kB / 1.329 GB, free: 11.95 MB / 1.029 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (vol.dynBal.U,senT.T,senHeaFlo.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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.001674/0.4275, allocations: 1.385 MB / 1.331 GB, free: 10.52 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0005516/0.4281, allocations: 287.4 kB / 1.331 GB, free: 10.23 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.4281, allocations: 0 / 1.331 GB, free: 10.23 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0002501/0.4283, allocations: 152.5 kB / 1.331 GB, free: 10.09 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001529/0.4299, allocations: 348.2 kB / 1.332 GB, free: 9.758 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005876/0.4357, allocations: 4.234 MB / 1.336 GB, free: 5.359 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005478/0.4363, allocations: 0.8627 MB / 1.337 GB, free: 4.469 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0004268/0.4367, allocations: 116.7 kB / 1.337 GB, free: 4.352 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002857/0.437, allocations: 195.3 kB / 1.337 GB, free: 4.16 MB / 1.029 GB Notification: Performance of SimCode: time 1.132e-06/0.437, allocations: 0 / 1.337 GB, free: 4.16 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05463/0.4916, allocations: 17.36 MB / 1.354 GB, free: 3.125 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.82/12.31, allocations: 9.625 kB / 1.354 GB, free: 3.121 MB / 1.045 GB " [Timeout remaining time 287] (rm -f Buildings_11_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe ; mkfifo Buildings_11_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe >> ../files/Buildings_11_Buildings.Fluid.Sensors.Examples.HeatMeter.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Fluid.Sensors.Examples.HeatMeter_res.csv --start-time 0 --stop-time 60 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.024 Buildings_11_Buildings_Fluid_Sensors_Examples_HeatMeter.fmu > Buildings_11_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Fluid.Sensors.Examples.HeatMeter_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_Sensors_Examples_HeatMeter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.Sensors.Examples.HeatMeter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable senHeaFlo.Q_flow in file Buildings_11_Buildings.Fluid.Sensors.Examples.HeatMeter_res.csv. Warning: Get data of variable senHeaFlo.Q_flow from file Buildings_11_Buildings.Fluid.Sensors.Examples.HeatMeter_res.csv failed! Error: Could not read variable heaFloRat.Q_flow in file Buildings_11_Buildings.Fluid.Sensors.Examples.HeatMeter_res.csv. Warning: Get data of variable heaFloRat.Q_flow from file Buildings_11_Buildings.Fluid.Sensors.Examples.HeatMeter_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 19.285761549999734]