Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001285/0.001285, allocations: 97.88 kB / 19.73 MB, free: 2.117 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.001443/0.001443, allocations: 217.8 kB / 23.03 MB, free: 4.922 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.411/1.411, allocations: 230.6 MB / 256.8 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.147/3.147, allocations: 0.5003 GB / 0.8062 GB, free: 28.23 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_Buildings_Fluid_Sensors_Examples_HeatMeter",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.HeatMeter,fileNamePrefix="Buildings_latest_Buildings_Fluid_Sensors_Examples_HeatMeter",fmuType="cs",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.001938/0.001938, allocations: 65.39 kB / 1.171 GB, free: 19.54 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3412/0.3432, allocations: 179 MB / 1.345 GB, free: 15.87 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.HeatMeter): time 0.02496/0.3681, allocations: 21.62 MB / 1.366 GB, free: 10.16 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.007433/0.3755, allocations: 4.746 MB / 1.371 GB, free: 5.398 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007036/0.3763, allocations: 35.69 kB / 1.371 GB, free: 5.363 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0007324/0.377, allocations: 278 kB / 1.371 GB, free: 5.09 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.00188/0.3789, allocations: 0.8319 MB / 1.372 GB, free: 4.254 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.001839/0.3807, allocations: 0.786 MB / 1.373 GB, free: 3.473 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.002024/0.3827, allocations: 1.654 MB / 1.375 GB, free: 1.816 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005962/0.3833, allocations: 394.1 kB / 1.375 GB, free: 1.426 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001729/0.385, allocations: 0.7401 MB / 1.376 GB, free: 0.6875 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006314/0.3857, allocations: 474 kB / 1.376 GB, free: 228 kB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 7.578e-05/0.3858, allocations: 44 kB / 1.376 GB, free: 184 kB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009212/0.3867, allocations: 419.2 kB / 1.377 GB, free: 15.77 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 0.0001644/0.3868, allocations: 147.4 kB / 1.377 GB, free: 15.62 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 0.0002915/0.3871, allocations: 262.8 kB / 1.377 GB, free: 15.37 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.001395/0.3885, allocations: 0.9264 MB / 1.378 GB, free: 14.44 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 5.82e-06/0.3885, allocations: 4 kB / 1.378 GB, free: 14.43 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.543e-06/0.3885, allocations: 0 / 1.378 GB, free: 14.43 MB / 1.076 GB Notification: Performance of Transformations before backend: time 9.278e-06/0.3885, allocations: 3.938 kB / 1.378 GB, free: 14.43 MB / 1.076 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.001326/0.3899, allocations: 0.8372 MB / 1.379 GB, free: 13.56 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 4.068e-05/0.3899, allocations: 12.03 kB / 1.379 GB, free: 13.55 MB / 1.076 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.902e-05/0.3899, allocations: 13.12 kB / 1.379 GB, free: 13.54 MB / 1.076 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.805e-05/0.39, allocations: 82.72 kB / 1.379 GB, free: 13.45 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002188/0.3902, allocations: 64.56 kB / 1.379 GB, free: 13.38 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009933/0.3912, allocations: 0.5227 MB / 1.379 GB, free: 12.84 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.947e-05/0.3913, allocations: 29 kB / 1.379 GB, free: 12.81 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.6e-05/0.3913, allocations: 36 kB / 1.379 GB, free: 12.77 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007456/0.3921, allocations: 0.4979 MB / 1.38 GB, free: 12.24 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.36e-05/0.3921, allocations: 0 / 1.38 GB, free: 12.24 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.872e-05/0.3921, allocations: 19.94 kB / 1.38 GB, free: 12.22 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.314e-05/0.3921, allocations: 12 kB / 1.38 GB, free: 12.21 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005002/0.3926, allocations: 303.8 kB / 1.38 GB, free: 11.91 MB / 1.076 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.002442/0.3951, allocations: 1.517 MB / 1.382 GB, free: 10.33 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005096/0.3956, allocations: 262.6 kB / 1.382 GB, free: 10.07 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001797/0.3958, allocations: 116.8 kB / 1.382 GB, free: 9.949 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004845/0.3963, allocations: 99.89 kB / 1.382 GB, free: 9.852 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.919e-05/0.3963, allocations: 34.56 kB / 1.382 GB, free: 9.809 MB / 1.076 GB Notification: Performance of pre-optimization done (n=26): time 1.583e-06/0.3963, allocations: 0 / 1.382 GB, free: 9.809 MB / 1.076 GB Notification: Performance of matching and sorting (n=26): time 0.0006652/0.397, allocations: 373 kB / 1.383 GB, free: 9.438 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.253e-05/0.397, allocations: 55.41 kB / 1.383 GB, free: 9.371 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005412/0.3975, allocations: 490 kB / 1.383 GB, free: 8.883 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 3.135e-05/0.3976, allocations: 29.7 kB / 1.383 GB, free: 8.848 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001979/0.3978, allocations: 260.5 kB / 1.383 GB, free: 8.59 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 8.385e-05/0.3978, allocations: 99.11 kB / 1.383 GB, free: 8.492 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001073/0.398, allocations: 69.97 kB / 1.383 GB, free: 8.418 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 0.000156/0.3981, allocations: 354.8 kB / 1.384 GB, free: 8.062 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001669/0.3983, allocations: 104.6 kB / 1.384 GB, free: 7.961 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000264/0.3985, allocations: 241.2 kB / 1.384 GB, free: 7.684 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004069/0.3989, allocations: 282.8 kB / 1.384 GB, free: 7.383 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.399, allocations: 0 / 1.384 GB, free: 7.383 MB / 1.076 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005806/0.3995, allocations: 365.6 kB / 1.385 GB, free: 7.02 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 1.444e-05/0.3995, allocations: 8.219 kB / 1.385 GB, free: 7.012 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.408e-06/0.3995, allocations: 4 kB / 1.385 GB, free: 7.008 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.16e-05/0.3996, allocations: 7.938 kB / 1.385 GB, free: 7 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00028/0.3999, allocations: 75.84 kB / 1.385 GB, free: 6.926 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.127e-06/0.3999, allocations: 7.938 kB / 1.385 GB, free: 6.918 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002646/0.4001, allocations: 43.67 kB / 1.385 GB, free: 6.875 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.53e-05/0.4002, allocations: 16 kB / 1.385 GB, free: 6.859 MB / 1.076 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.0002023/0.4004, allocations: 178.4 kB / 1.385 GB, free: 6.676 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.749e-05/0.4005, allocations: 51.7 kB / 1.385 GB, free: 6.625 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008254/0.4013, allocations: 488.8 kB / 1.386 GB, free: 6.133 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.293e-05/0.4013, allocations: 8 kB / 1.386 GB, free: 6.125 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.115e-06/0.4013, allocations: 0 / 1.386 GB, free: 6.125 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005986/0.4019, allocations: 0.5724 MB / 1.386 GB, free: 5.484 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001805/0.4037, allocations: 1.021 MB / 1.387 GB, free: 4.395 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/0.4037, allocations: 0 / 1.387 GB, free: 4.395 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002276/0.4039, allocations: 51.91 kB / 1.387 GB, free: 4.344 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.112e-06/0.4039, allocations: 4 kB / 1.387 GB, free: 4.34 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.579e-05/0.404, allocations: 11.98 kB / 1.387 GB, free: 4.328 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.149e-06/0.404, allocations: 8.188 kB / 1.387 GB, free: 4.32 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.404, allocations: 0 / 1.387 GB, free: 4.32 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009092/0.4049, allocations: 0.6799 MB / 1.388 GB, free: 3.605 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002313/0.4051, allocations: 103.5 kB / 1.388 GB, free: 3.504 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.021e-05/0.4052, allocations: 8 kB / 1.388 GB, free: 3.496 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002663/0.4055, allocations: 8 kB / 1.388 GB, free: 3.488 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.545e-05/0.4055, allocations: 27.89 kB / 1.388 GB, free: 3.461 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.532e-05/0.4055, allocations: 19.98 kB / 1.388 GB, free: 3.441 MB / 1.076 GB Notification: Performance of sorting global known variables: time 0.0004207/0.406, allocations: 346.9 kB / 1.388 GB, free: 3.105 MB / 1.076 GB Notification: Performance of sort global known variables: time 9e-08/0.406, allocations: 0 / 1.388 GB, free: 3.105 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0006175/0.4066, allocations: 207.5 kB / 1.389 GB, free: 2.902 MB / 1.076 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.001594/0.4082, allocations: 1.386 MB / 1.39 GB, free: 1.473 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0005152/0.4087, allocations: 292.3 kB / 1.39 GB, free: 1.188 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.4087, allocations: 64 / 1.39 GB, free: 1.188 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.0002306/0.4089, allocations: 155.8 kB / 1.39 GB, free: 1.035 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001498/0.4104, allocations: 341.2 kB / 1.391 GB, free: 0.7109 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005477/0.4159, allocations: 4.226 MB / 1.395 GB, free: 12.32 MB / 1.092 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002613/0.4162, allocations: 270.4 kB / 1.395 GB, free: 12.03 MB / 1.092 GB Notification: Performance of simCode: alias equations: time 0.0004107/0.4166, allocations: 116.7 kB / 1.395 GB, free: 11.92 MB / 1.092 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002707/0.4168, allocations: 191.4 kB / 1.395 GB, free: 11.73 MB / 1.092 GB Notification: Performance of SimCode: time 8.42e-07/0.4168, allocations: 0 / 1.395 GB, free: 11.73 MB / 1.092 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04537/0.4622, allocations: 18.44 MB / 1.413 GB, free: 9.734 MB / 1.107 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.84/12.31, allocations: 6.641 kB / 1.413 GB, free: 9.73 MB / 1.107 GB " [Timeout remaining time 288] (rm -f Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe >> ../files/Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Sensors_Examples_HeatMeter_fmu --startTime=0 --stopTime=60 --stepSize=0.024 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Sensors_Examples_HeatMeter.fmu > Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Sensors_Examples_HeatMeter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.88218884798698]