Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001257/0.001257, 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.001377/0.001377, allocations: 218.7 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.356/1.356, allocations: 230.6 MB / 256.8 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.031/3.031, allocations: 0.49 GB / 0.7959 GB, free: 35.52 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.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_12_Buildings_Fluid_Sensors_Examples_HeatMeter",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.HeatMeter,fileNamePrefix="Buildings_12_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.001916/0.001916, allocations: 65.08 kB / 1.155 GB, free: 25.38 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3021/0.304, allocations: 176.1 MB / 1.327 GB, free: 1.453 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.HeatMeter): time 0.02667/0.3307, allocations: 21.63 MB / 1.348 GB, free: 11.75 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.007583/0.3382, allocations: 4.731 MB / 1.352 GB, free: 7.004 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007795/0.339, allocations: 35.69 kB / 1.352 GB, free: 6.969 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.0008554/0.3399, allocations: 282.1 kB / 1.353 GB, free: 6.691 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.002115/0.342, allocations: 0.8397 MB / 1.353 GB, free: 5.848 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.001917/0.3439, allocations: 0.7831 MB / 1.354 GB, free: 5.07 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.002343/0.3463, allocations: 1.65 MB / 1.356 GB, free: 3.418 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007877/0.347, allocations: 402.1 kB / 1.356 GB, free: 3.016 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001899/0.3489, allocations: 0.7415 MB / 1.357 GB, free: 2.273 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008241/0.3498, allocations: 477.9 kB / 1.357 GB, free: 1.805 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 0.0001023/0.3499, allocations: 44 kB / 1.357 GB, free: 1.762 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009901/0.3509, allocations: 419.1 kB / 1.358 GB, free: 1.352 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 0.0001777/0.351, allocations: 147.4 kB / 1.358 GB, free: 1.207 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0003183/0.3514, allocations: 262.9 kB / 1.358 GB, free: 0.9492 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.001316/0.3527, allocations: 0.9225 MB / 1.359 GB, free: 24 kB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.3527, allocations: 3.938 kB / 1.359 GB, free: 20 kB / 1.045 GB Notification: Performance of FrontEnd: time 1.332e-06/0.3527, allocations: 0 / 1.359 GB, free: 20 kB / 1.045 GB Notification: Performance of Transformations before backend: time 9.478e-06/0.3527, allocations: 0 / 1.359 GB, free: 20 kB / 1.045 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.001345/0.354, allocations: 0.8315 MB / 1.36 GB, free: 15.15 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.528e-05/0.3541, allocations: 15.97 kB / 1.36 GB, free: 15.14 MB / 1.061 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.083e-05/0.3541, allocations: 13.19 kB / 1.36 GB, free: 15.12 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.617e-05/0.3542, allocations: 82.7 kB / 1.36 GB, free: 15.04 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002091/0.3544, allocations: 68.56 kB / 1.36 GB, free: 14.97 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001004/0.3554, allocations: 0.5111 MB / 1.361 GB, free: 14.43 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.199e-05/0.3554, allocations: 32.98 kB / 1.361 GB, free: 14.4 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.018e-05/0.3555, allocations: 39.98 kB / 1.361 GB, free: 14.36 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007675/0.3563, allocations: 0.5056 MB / 1.361 GB, free: 13.82 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.574e-05/0.3563, allocations: 0 / 1.361 GB, free: 13.82 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.252e-05/0.3563, allocations: 16 kB / 1.361 GB, free: 13.8 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.161e-05/0.3564, allocations: 12 kB / 1.361 GB, free: 13.79 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005148/0.3569, allocations: 307.8 kB / 1.362 GB, free: 13.49 MB / 1.061 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.002587/0.3595, allocations: 1.517 MB / 1.363 GB, free: 11.91 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005134/0.36, allocations: 250.8 kB / 1.363 GB, free: 11.66 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001912/0.3602, allocations: 112.8 kB / 1.363 GB, free: 11.55 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000478/0.3606, allocations: 95.91 kB / 1.363 GB, free: 11.45 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.598e-05/0.3607, allocations: 46.48 kB / 1.363 GB, free: 11.4 MB / 1.061 GB Notification: Performance of pre-optimization done (n=26): time 1.743e-06/0.3607, allocations: 0 / 1.363 GB, free: 11.4 MB / 1.061 GB Notification: Performance of matching and sorting (n=26): time 0.0007175/0.3614, allocations: 372 kB / 1.364 GB, free: 11.03 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.781e-05/0.3614, allocations: 55.41 kB / 1.364 GB, free: 10.96 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000566/0.362, allocations: 482 kB / 1.364 GB, free: 10.48 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 3.976e-05/0.362, allocations: 29.7 kB / 1.364 GB, free: 10.45 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002086/0.3622, allocations: 260.4 kB / 1.365 GB, free: 10.19 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 8.877e-05/0.3623, allocations: 103.2 kB / 1.365 GB, free: 10.09 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001112/0.3624, allocations: 70.02 kB / 1.365 GB, free: 10.02 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001725/0.3626, allocations: 358.8 kB / 1.365 GB, free: 9.656 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001706/0.3628, allocations: 100.6 kB / 1.365 GB, free: 9.559 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002881/0.3631, allocations: 253.1 kB / 1.365 GB, free: 9.27 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004131/0.3635, allocations: 274.7 kB / 1.366 GB, free: 8.977 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.3635, allocations: 3.938 kB / 1.366 GB, free: 8.973 MB / 1.061 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006146/0.3641, allocations: 373 kB / 1.366 GB, free: 8.602 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.652e-05/0.3641, allocations: 8 kB / 1.366 GB, free: 8.594 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.17e-06/0.3641, allocations: 4.219 kB / 1.366 GB, free: 8.59 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.793e-05/0.3641, allocations: 7.938 kB / 1.366 GB, free: 8.582 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002767/0.3644, allocations: 71.94 kB / 1.366 GB, free: 8.512 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.331e-05/0.3644, allocations: 7.938 kB / 1.366 GB, free: 8.504 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002614/0.3647, allocations: 43.72 kB / 1.366 GB, free: 8.461 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.533e-05/0.3647, allocations: 15.98 kB / 1.366 GB, free: 8.445 MB / 1.061 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.0002168/0.3649, allocations: 178.4 kB / 1.366 GB, free: 8.262 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001066/0.3651, allocations: 51.67 kB / 1.366 GB, free: 8.211 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008367/0.3659, allocations: 485.5 kB / 1.367 GB, free: 7.727 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.195e-05/0.3659, allocations: 7.984 kB / 1.367 GB, free: 7.719 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.041e-06/0.3659, allocations: 4 kB / 1.367 GB, free: 7.715 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006227/0.3665, allocations: 0.5725 MB / 1.368 GB, free: 7.074 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001763/0.3683, allocations: 1.013 MB / 1.368 GB, free: 5.992 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.3683, allocations: 0 / 1.368 GB, free: 5.992 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002287/0.3685, allocations: 51.91 kB / 1.369 GB, free: 5.941 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.941e-06/0.3685, allocations: 4 kB / 1.369 GB, free: 5.938 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.636e-05/0.3686, allocations: 8 kB / 1.369 GB, free: 5.93 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.312e-06/0.3686, allocations: 8.125 kB / 1.369 GB, free: 5.922 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.3686, allocations: 4 kB / 1.369 GB, free: 5.918 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009464/0.3695, allocations: 0.6873 MB / 1.369 GB, free: 5.195 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001957/0.3697, allocations: 95.59 kB / 1.369 GB, free: 5.102 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.981e-05/0.3698, allocations: 8 kB / 1.369 GB, free: 5.094 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002719/0.3701, allocations: 19.86 kB / 1.369 GB, free: 5.074 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.948e-05/0.3701, allocations: 27.89 kB / 1.369 GB, free: 5.047 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.484e-05/0.3701, allocations: 16 kB / 1.369 GB, free: 5.031 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0004292/0.3706, allocations: 350.8 kB / 1.37 GB, free: 4.691 MB / 1.061 GB Notification: Performance of sort global known variables: time 9e-08/0.3706, allocations: 0 / 1.37 GB, free: 4.691 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.000623/0.3712, allocations: 207.5 kB / 1.37 GB, free: 4.488 MB / 1.061 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.001577/0.3728, allocations: 1.389 MB / 1.371 GB, free: 3.055 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0005055/0.3733, allocations: 280.1 kB / 1.372 GB, free: 2.781 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 5.911e-06/0.3733, allocations: 64 / 1.372 GB, free: 2.781 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0002443/0.3735, allocations: 163.7 kB / 1.372 GB, free: 2.621 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001472/0.375, allocations: 344.2 kB / 1.372 GB, free: 2.293 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005548/0.3805, allocations: 4.245 MB / 1.376 GB, free: 13.89 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002744/0.3808, allocations: 266.4 kB / 1.376 GB, free: 13.6 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 0.0003778/0.3812, allocations: 112.7 kB / 1.377 GB, free: 13.48 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002727/0.3815, allocations: 195.4 kB / 1.377 GB, free: 13.3 MB / 1.076 GB Notification: Performance of SimCode: time 7.41e-07/0.3815, allocations: 0 / 1.377 GB, free: 13.3 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04606/0.4275, allocations: 18.43 MB / 1.395 GB, free: 11.36 MB / 1.092 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.9/12.33, allocations: 10.17 kB / 1.395 GB, free: 11.35 MB / 1.092 GB " [Timeout remaining time 287] (rm -f Buildings_12_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe ; mkfifo Buildings_12_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe >> ../files/Buildings_12_Buildings.Fluid.Sensors.Examples.HeatMeter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Fluid.Sensors.Examples.HeatMeter_res.mat --tempDir=temp_Buildings_12_Buildings_Fluid_Sensors_Examples_HeatMeter_fmu --startTime=0 --stopTime=60 --stepSize=0.024 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Fluid_Sensors_Examples_HeatMeter.fmu > Buildings_12_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Fluid.Sensors.Examples.HeatMeter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_Sensors_Examples_HeatMeter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.73636317299679]