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.001521/0.001521, allocations: 117.4 kB / 17.17 MB, free: 5.977 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.001594/0.001594, allocations: 214.3 kB / 20.13 MB, free: 3.035 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.432/1.432, allocations: 230.6 MB / 253.5 MB, free: 15.1 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 2.812/2.812, allocations: 0.5003 GB / 0.8026 GB, free: 6.918 MB / 0.6387 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.001927/0.001927, allocations: 71.89 kB / 1.165 GB, free: 0.5391 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.922/0.9239, allocations: 178.9 MB / 1.34 GB, free: 16.32 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.HeatMeter): time 0.02072/0.9447, allocations: 23.59 MB / 1.363 GB, free: 15.45 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.00873/0.9534, allocations: 5.101 MB / 1.368 GB, free: 11.82 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001327/0.9547, allocations: 37.06 kB / 1.368 GB, free: 11.8 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 0.001319/0.956, allocations: 295.2 kB / 1.368 GB, free: 11.62 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 0.003049/0.9591, allocations: 0.8225 MB / 1.369 GB, free: 11.14 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.002341/0.9614, allocations: 0.781 MB / 1.37 GB, free: 10.73 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 0.00271/0.9641, allocations: 1.609 MB / 1.372 GB, free: 9.977 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008266/0.965, allocations: 421.2 kB / 1.372 GB, free: 9.781 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002071/0.967, allocations: 0.7246 MB / 1.373 GB, free: 9.453 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008618/0.9679, allocations: 472.5 kB / 1.373 GB, free: 9.25 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 8.51e-05/0.968, allocations: 50.81 kB / 1.373 GB, free: 9.246 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001316/0.9693, allocations: 0.5102 MB / 1.374 GB, free: 9.055 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 0.0001854/0.9695, allocations: 145.1 kB / 1.374 GB, free: 8.969 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 0.0003836/0.9699, allocations: 311.2 kB / 1.374 GB, free: 8.789 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.002072/0.9719, allocations: 0.9506 MB / 1.375 GB, free: 8.438 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.9719, allocations: 0 / 1.375 GB, free: 8.438 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.593e-06/0.9719, allocations: 0 / 1.375 GB, free: 8.438 MB / 1.076 GB Notification: Performance of Transformations before backend: time 1.404e-05/0.9719, allocations: 1.625 kB / 1.375 GB, free: 8.438 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.001743/0.9737, allocations: 0.9101 MB / 1.376 GB, free: 7.742 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 4.286e-05/0.9737, allocations: 9.469 kB / 1.376 GB, free: 7.742 MB / 1.076 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.85e-05/0.9738, allocations: 14.72 kB / 1.376 GB, free: 7.738 MB / 1.076 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.611e-05/0.9739, allocations: 81.36 kB / 1.376 GB, free: 7.672 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002561/0.9741, allocations: 67.67 kB / 1.376 GB, free: 7.641 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001124/0.9752, allocations: 0.58 MB / 1.377 GB, free: 7.254 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.09e-05/0.9753, allocations: 33.38 kB / 1.377 GB, free: 7.238 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.65e-05/0.9753, allocations: 39.11 kB / 1.377 GB, free: 7.227 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007436/0.9761, allocations: 435.6 kB / 1.377 GB, free: 7.016 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.762e-05/0.9761, allocations: 8.938 kB / 1.377 GB, free: 7.008 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.285e-05/0.9761, allocations: 15.38 kB / 1.377 GB, free: 6.996 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.139e-05/0.9762, allocations: 10.72 kB / 1.377 GB, free: 6.996 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005465/0.9767, allocations: 302.8 kB / 1.378 GB, free: 6.895 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.003017/0.9797, allocations: 1.914 MB / 1.379 GB, free: 5.523 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005406/0.9803, allocations: 240.2 kB / 1.38 GB, free: 5.426 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001875/0.9805, allocations: 111.6 kB / 1.38 GB, free: 5.383 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000975/0.9814, allocations: 0.8589 MB / 1.381 GB, free: 4.422 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.073e-05/0.9815, allocations: 32.8 kB / 1.381 GB, free: 4.383 MB / 1.076 GB Notification: Performance of pre-optimization done (n=26): time 1.794e-06/0.9815, allocations: 0 / 1.381 GB, free: 4.383 MB / 1.076 GB Notification: Performance of matching and sorting (n=26): time 0.000897/0.9824, allocations: 378.7 kB / 1.381 GB, free: 4.223 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.569e-05/0.9824, allocations: 54.72 kB / 1.381 GB, free: 4.16 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008599/0.9833, allocations: 480.5 kB / 1.381 GB, free: 3.934 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 4.962e-05/0.9833, allocations: 31.08 kB / 1.381 GB, free: 3.898 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002509/0.9836, allocations: 272.9 kB / 1.382 GB, free: 3.676 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001257/0.9837, allocations: 99.03 kB / 1.382 GB, free: 3.598 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001398/0.9838, allocations: 74.8 kB / 1.382 GB, free: 3.555 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 0.0002135/0.9841, allocations: 356.6 kB / 1.382 GB, free: 3.223 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002108/0.9843, allocations: 101.6 kB / 1.382 GB, free: 3.188 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003008/0.9846, allocations: 170.6 kB / 1.383 GB, free: 3.082 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005153/0.9851, allocations: 284.1 kB / 1.383 GB, free: 2.914 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.138e-06/0.9851, allocations: 0 / 1.383 GB, free: 2.914 MB / 1.076 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007886/0.9859, allocations: 357.6 kB / 1.383 GB, free: 2.762 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 2.346e-05/0.9859, allocations: 6.688 kB / 1.383 GB, free: 2.762 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.006e-05/0.9859, allocations: 1.406 kB / 1.383 GB, free: 2.762 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.638e-05/0.9859, allocations: 8.828 kB / 1.383 GB, free: 2.758 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003215/0.9863, allocations: 73.22 kB / 1.383 GB, free: 2.75 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.544e-05/0.9863, allocations: 8.25 kB / 1.383 GB, free: 2.746 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004192/0.9867, allocations: 35.67 kB / 1.383 GB, free: 2.723 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.804e-05/0.9867, allocations: 17.03 kB / 1.383 GB, free: 2.719 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.0003138/0.9871, allocations: 178.7 kB / 1.383 GB, free: 2.566 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001596/0.9872, allocations: 53.28 kB / 1.383 GB, free: 2.539 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009887/0.9882, allocations: 493.6 kB / 1.384 GB, free: 2.324 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.861e-05/0.9882, allocations: 4.828 kB / 1.384 GB, free: 2.324 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.723e-06/0.9882, allocations: 1.781 kB / 1.384 GB, free: 2.324 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006919/0.9889, allocations: 0.564 MB / 1.385 GB, free: 1.879 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002202/0.9911, allocations: 1.155 MB / 1.386 GB, free: 1.152 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.43e-06/0.9911, allocations: 5.438 kB / 1.386 GB, free: 1.148 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002353/0.9914, allocations: 55.44 kB / 1.386 GB, free: 1.141 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.215e-06/0.9914, allocations: 2.562 kB / 1.386 GB, free: 1.141 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.522e-05/0.9914, allocations: 15.31 kB / 1.386 GB, free: 1.133 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.931e-06/0.9914, allocations: 3.125 kB / 1.386 GB, free: 1.133 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.9914, allocations: 1.531 kB / 1.386 GB, free: 1.133 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001038/0.9924, allocations: 0.669 MB / 1.386 GB, free: 0.7422 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003238/0.9928, allocations: 180.1 kB / 1.387 GB, free: 0.5898 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00011/0.9929, allocations: 8.359 kB / 1.387 GB, free: 0.5859 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000321/0.9932, allocations: 10.81 kB / 1.387 GB, free: 0.582 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.411e-05/0.9933, allocations: 27.44 kB / 1.387 GB, free: 0.5742 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.167e-05/0.9933, allocations: 13.61 kB / 1.387 GB, free: 0.5742 MB / 1.076 GB Notification: Performance of sorting global known variables: time 0.0005159/0.9938, allocations: 354.3 kB / 1.387 GB, free: 416 kB / 1.076 GB Notification: Performance of sort global known variables: time 9e-08/0.9938, allocations: 0 / 1.387 GB, free: 416 kB / 1.076 GB Notification: Performance of remove unused functions: time 0.000849/0.9947, allocations: 199.7 kB / 1.387 GB, free: 372 kB / 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.00192/0.9966, allocations: 1.372 MB / 1.388 GB, free: 15.39 MB / 1.092 GB Notification: Performance of simCode: created initialization part: time 0.0006198/0.9972, allocations: 285 kB / 1.389 GB, free: 15.3 MB / 1.092 GB Notification: Performance of simCode: created event and clocks part: time 3.927e-06/0.9972, allocations: 5.531 kB / 1.389 GB, free: 15.29 MB / 1.092 GB Notification: Performance of simCode: created simulation system equations: time 0.0002518/0.9975, allocations: 148.4 kB / 1.389 GB, free: 15.25 MB / 1.092 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00184/0.9993, allocations: 335.8 kB / 1.389 GB, free: 15.14 MB / 1.092 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006642/1.006, allocations: 4.221 MB / 1.393 GB, free: 12.59 MB / 1.092 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006024/1.007, allocations: 0.8616 MB / 1.394 GB, free: 11.88 MB / 1.092 GB Notification: Performance of simCode: alias equations: time 0.000587/1.007, allocations: 119.3 kB / 1.394 GB, free: 11.85 MB / 1.092 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003483/1.007, allocations: 193.9 kB / 1.394 GB, free: 11.71 MB / 1.092 GB Notification: Performance of SimCode: time 1.353e-06/1.007, allocations: 0 / 1.394 GB, free: 11.71 MB / 1.092 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05147/1.059, allocations: 17.03 MB / 1.411 GB, free: 5.844 MB / 1.092 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.833/9.892, allocations: 6.578 kB / 1.411 GB, free: 5.844 MB / 1.092 GB " [Timeout remaining time 290] (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: 16.113148508942686]