Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.DHC.Loads.Steam.Examples.BuildingTimeSeriesAtETS.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.DHC.Loads.Steam.Examples.BuildingTimeSeriesAtETS,fileNamePrefix="Buildings_latest_Buildings_DHC_Loads_Steam_Examples_BuildingTimeSeriesAtETS",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.DHC.Loads.Steam.Examples.BuildingTimeSeriesAtETS,fileNamePrefix="Buildings_latest_Buildings_DHC_Loads_Steam_Examples_BuildingTimeSeriesAtETS",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001737/0.001737, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002253/0.002253, allocations: 197.7 kB / 16.53 MB, free: 6.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.48/1.48, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.842/2.842, allocations: 469.4 MB / 0.742 GB, free: 7.711 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001627/0.001628, allocations: 61.81 kB / 0.9083 GB, free: 34.54 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2808/0.2824, allocations: 159.1 MB / 1.064 GB, free: 14.55 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.DHC.Loads.Steam.Examples.BuildingTimeSeriesAtETS): time 0.7658/1.048, allocations: 189.9 MB / 1.249 GB, free: 4.375 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.02973/1.078, allocations: 26.01 MB / 1.274 GB, free: 4.266 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002719/1.081, allocations: 59.31 kB / 1.275 GB, free: 4.266 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.01146/1.092, allocations: 4.937 MB / 1.279 GB, free: 4.199 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.01197/1.104, allocations: 3.859 MB / 1.283 GB, free: 4.098 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.005598/1.11, allocations: 2.122 MB / 1.285 GB, free: 4.07 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.01158/1.122, allocations: 7.392 MB / 1.292 GB, free: 4.055 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002989/1.125, allocations: 1.55 MB / 1.294 GB, free: 3.902 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006877/1.131, allocations: 2.299 MB / 1.296 GB, free: 3.855 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003676/1.135, allocations: 1.351 MB / 1.298 GB, free: 3.852 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.001298/1.136, allocations: 198.8 kB / 1.298 GB, free: 3.852 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01441/1.151, allocations: 4.534 MB / 1.302 GB, free: 3.812 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.001161/1.152, allocations: 0.6579 MB / 1.303 GB, free: 3.809 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.002785/1.155, allocations: 1.207 MB / 1.304 GB, free: 3.492 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.01087/1.166, allocations: 5.608 MB / 1.309 GB, free: 2.984 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/1.166, allocations: 6.094 kB / 1.309 GB, free: 2.98 MB / 0.9981 GB Notification: Performance of FrontEnd: time 2.184e-06/1.166, allocations: 0 / 1.309 GB, free: 2.98 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 0.0001203/1.166, allocations: 0.8125 kB / 1.309 GB, free: 2.98 MB / 0.9981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 269 * Number of variables: 269 Notification: Performance of Generate backend data structure: time 0.008877/1.175, allocations: 2.792 MB / 1.312 GB, free: 17.58 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.137e-05/1.175, allocations: 10.75 kB / 1.312 GB, free: 17.58 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002701/1.175, allocations: 167.7 kB / 1.312 GB, free: 17.54 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004476/1.18, allocations: 0.6354 MB / 1.313 GB, free: 17.41 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004715/1.184, allocations: 2.779 MB / 1.316 GB, free: 16.91 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.029e-05/1.184, allocations: 91.52 kB / 1.316 GB, free: 16.91 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001825/1.185, allocations: 112.3 kB / 1.316 GB, free: 16.91 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002379/1.187, allocations: 1.346 MB / 1.317 GB, free: 16.68 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.719e-05/1.187, allocations: 3.906 kB / 1.317 GB, free: 16.68 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001107/1.187, allocations: 48.34 kB / 1.317 GB, free: 16.68 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.561e-05/1.187, allocations: 41.66 kB / 1.317 GB, free: 16.67 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00251/1.19, allocations: 1.125 MB / 1.318 GB, free: 16.66 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.007979/1.198, allocations: 6.797 MB / 1.325 GB, free: 13.43 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001891/1.2, allocations: 0.8765 MB / 1.326 GB, free: 13.23 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007642/1.2, allocations: 394.5 kB / 1.326 GB, free: 13.21 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007262/1.208, allocations: 2.794 MB / 1.329 GB, free: 11.84 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001074/1.209, allocations: 499 kB / 1.329 GB, free: 11.74 MB / 1.014 GB Notification: Performance of pre-optimization done (n=69): time 2.214e-06/1.209, allocations: 0 / 1.329 GB, free: 11.74 MB / 1.014 GB Notification: Performance of matching and sorting (n=83): time 0.05266/1.262, allocations: 18.76 MB / 1.348 GB, free: 7.078 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.183e-05/1.262, allocations: 167.2 kB / 1.348 GB, free: 6.887 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002535/1.264, allocations: 1.974 MB / 1.35 GB, free: 6.16 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 9.108e-05/1.264, allocations: 54.38 kB / 1.35 GB, free: 6.109 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007235/1.265, allocations: 0.8642 MB / 1.351 GB, free: 5.355 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002651/1.265, allocations: 301.8 kB / 1.351 GB, free: 5.102 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004665/1.266, allocations: 340.3 kB / 1.351 GB, free: 4.906 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 8.328e-05/1.266, allocations: 301.1 kB / 1.352 GB, free: 4.609 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001249/1.267, allocations: 0.6462 MB / 1.352 GB, free: 4.281 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001554/1.269, allocations: 1.068 MB / 1.353 GB, free: 3.449 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002582/1.271, allocations: 1.625 MB / 1.355 GB, free: 2.395 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.204e-06/1.271, allocations: 2.938 kB / 1.355 GB, free: 2.395 MB / 1.014 GB Notification: Performance of matching and sorting (n=205) (initialization): time 0.004468/1.276, allocations: 2.118 MB / 1.357 GB, free: 1.367 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 2.302e-05/1.276, allocations: 10.47 kB / 1.357 GB, free: 1.367 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.706e-05/1.276, allocations: 13.56 kB / 1.357 GB, free: 1.363 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007671/1.277, allocations: 224.2 kB / 1.357 GB, free: 1.254 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001178/1.278, allocations: 317.2 kB / 1.358 GB, free: 1.195 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004802/1.283, allocations: 4.152 MB / 1.362 GB, free: 13.35 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0022/1.285, allocations: 114.8 kB / 1.362 GB, free: 13.3 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001585/1.285, allocations: 66.64 kB / 1.362 GB, free: 13.28 MB / 1.029 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.bui.QHea.nextTimeEvent,$whenCondition1,bui.QHea.nextTimeEventScaled,$PRE.bui.QHea.nextTimeEventScaled,bui.QHea.nextTimeEvent,bui.IntEHea.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (162): * Single equations (assignments): 158 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,8)} Notification: Performance of prepare postOptimizeDAE: time 0.001138/1.286, allocations: 0.5689 MB / 1.362 GB, free: 12.89 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005942/1.287, allocations: 195.4 kB / 1.362 GB, free: 12.79 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003726/1.29, allocations: 1.481 MB / 1.364 GB, free: 11.7 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.578e-06/1.29, allocations: 16 kB / 1.364 GB, free: 11.68 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/1.29, allocations: 0 / 1.364 GB, free: 11.68 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002649/1.293, allocations: 1.26 MB / 1.365 GB, free: 10.35 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02546/1.319, allocations: 9.219 MB / 1.374 GB, free: 0.8477 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.889e-06/1.319, allocations: 8 kB / 1.374 GB, free: 0.8398 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008427/1.32, allocations: 173.3 kB / 1.374 GB, free: 0.6797 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005546/1.32, allocations: 164.8 kB / 1.374 GB, free: 0.5117 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.198e-05/1.32, allocations: 31.98 kB / 1.375 GB, free: 492 kB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00308/1.323, allocations: 2.379 MB / 1.377 GB, free: 13.98 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.67e-06/1.323, allocations: 4 kB / 1.377 GB, free: 13.98 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004236/1.328, allocations: 1.885 MB / 1.379 GB, free: 12.02 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008785/1.328, allocations: 394.5 kB / 1.379 GB, free: 11.61 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002795/1.329, allocations: 28 kB / 1.379 GB, free: 11.59 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00126/1.33, allocations: 80.02 kB / 1.379 GB, free: 11.51 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001694/1.33, allocations: 82.56 kB / 1.379 GB, free: 11.43 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.975e-05/1.33, allocations: 39.98 kB / 1.379 GB, free: 11.39 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.002183/1.332, allocations: 1.375 MB / 1.381 GB, free: 10 MB / 1.045 GB Notification: Performance of sort global known variables: time 1.7e-07/1.332, allocations: 0 / 1.381 GB, free: 10 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.004697/1.337, allocations: 1.371 MB / 1.382 GB, free: 8.629 MB / 1.045 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 7 (bui.port_b.h_outflow,bui.IntEHea.y,bui.pumCNR.filter.s[1],bui.pumCNR.filter.s[2],bui.vol.VWat,bui.hIn.h_out,bui.hOut.h_out) * Number of discrete variables: 3 ($whenCondition1,bui.QHea.nextTimeEvent,bui.QHea.nextTimeEventScaled) * Number of discrete states: 2 (bui.QHea.nextTimeEvent,bui.QHea.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (82): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01145/1.349, allocations: 3.624 MB / 1.386 GB, free: 5.152 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.00427/1.353, allocations: 1.698 MB / 1.387 GB, free: 3.48 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 9.488e-06/1.353, allocations: 4 kB / 1.387 GB, free: 3.477 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.001543/1.354, allocations: 0.6369 MB / 1.388 GB, free: 2.852 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005021/1.36, allocations: 0.9607 MB / 1.389 GB, free: 1.922 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0311/1.391, allocations: 16.96 MB / 1.405 GB, free: 15.88 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001401/1.392, allocations: 1.496 MB / 1.407 GB, free: 14.35 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 0.002112/1.394, allocations: 407.7 kB / 1.407 GB, free: 13.95 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001326/1.396, allocations: 0.7843 MB / 1.408 GB, free: 13.17 MB / 1.076 GB Notification: Performance of SimCode: time 1.733e-06/1.396, allocations: 0 / 1.408 GB, free: 13.17 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1462/1.542, allocations: 86.71 MB / 1.493 GB, free: 7.324 MB / 1.154 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.37/14.92, allocations: 11.84 kB / 1.493 GB, free: 7.312 MB / 1.154 GB (rm -f Buildings_latest_Buildings.DHC.Loads.Steam.Examples.BuildingTimeSeriesAtETS.pipe ; mkfifo Buildings_latest_Buildings.DHC.Loads.Steam.Examples.BuildingTimeSeriesAtETS.pipe ; head -c 1048576 < Buildings_latest_Buildings.DHC.Loads.Steam.Examples.BuildingTimeSeriesAtETS.pipe >> ../files/Buildings_latest_Buildings.DHC.Loads.Steam.Examples.BuildingTimeSeriesAtETS.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.DHC.Loads.Steam.Examples.BuildingTimeSeriesAtETS_res.csv --start-time 1.728e+06 --stop-time 1.8144e+06 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 34.56 Buildings_latest_Buildings_DHC_Loads_Steam_Examples_BuildingTimeSeriesAtETS.fmu > Buildings_latest_Buildings.DHC.Loads.Steam.Examples.BuildingTimeSeriesAtETS.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.DHC.Loads.Steam.Examples.BuildingTimeSeriesAtETS_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_DHC_Loads_Steam_Examples_BuildingTimeSeriesAtETS.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.DHC.Loads.Steam.Examples.BuildingTimeSeriesAtETS.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches