Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/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.Plants.Cooling.Controls.Validation.TankStatus,fileNamePrefix="Buildings_11_Buildings_DHC_Plants_Cooling_Controls_Validation_TankStatus",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus,fileNamePrefix="Buildings_11_Buildings_DHC_Plants_Cooling_Controls_Validation_TankStatus",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.004438/0.004438, allocations: 100.6 kB / 15.73 MB, free: 6.023 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001265/0.001265, allocations: 198.7 kB / 16.68 MB, free: 5.938 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.394/1.394, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.695/2.695, allocations: 469.8 MB / 0.7425 GB, free: 3.34 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001936/0.001936, allocations: 71.83 kB / 1.065 GB, free: 14.09 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6799/0.6818, allocations: 159.1 MB / 1.22 GB, free: 2.059 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.00394/0.6858, allocations: 2.253 MB / 1.222 GB, free: 15.8 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.002258/0.6881, allocations: 1.263 MB / 1.224 GB, free: 14.53 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002287/0.6883, allocations: 7.938 kB / 1.224 GB, free: 14.52 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0005032/0.6889, allocations: 171.3 kB / 1.224 GB, free: 14.35 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.000493/0.6894, allocations: 167.2 kB / 1.224 GB, free: 14.19 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006947/0.6901, allocations: 249.4 kB / 1.224 GB, free: 13.95 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0005908/0.6907, allocations: 410.9 kB / 1.225 GB, free: 13.54 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002348/0.6909, allocations: 97.27 kB / 1.225 GB, free: 13.45 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003056/0.6913, allocations: 179.2 kB / 1.225 GB, free: 13.27 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002805/0.6915, allocations: 167.4 kB / 1.225 GB, free: 13.11 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 6.102e-05/0.6916, allocations: 24 kB / 1.225 GB, free: 13.08 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001992/0.6918, allocations: 87.89 kB / 1.225 GB, free: 13 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0001389/0.692, allocations: 107.6 kB / 1.225 GB, free: 12.89 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0001937/0.6922, allocations: 174.9 kB / 1.225 GB, free: 12.72 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0006287/0.6928, allocations: 489.6 kB / 1.226 GB, free: 12.24 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 5.189e-06/0.6928, allocations: 0 / 1.226 GB, free: 12.24 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.623e-06/0.6928, allocations: 3.938 kB / 1.226 GB, free: 12.24 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 9.568e-06/0.6928, allocations: 4 kB / 1.226 GB, free: 12.23 MB / 0.9512 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.001142/0.694, allocations: 0.7232 MB / 1.227 GB, free: 11.46 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.77e-05/0.694, allocations: 8.031 kB / 1.227 GB, free: 11.45 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.403e-05/0.6941, allocations: 50.67 kB / 1.227 GB, free: 11.39 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.759e-05/0.6942, allocations: 48.66 kB / 1.227 GB, free: 11.35 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005695/0.6948, allocations: 414.6 kB / 1.227 GB, free: 10.91 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.673e-05/0.6948, allocations: 20.12 kB / 1.227 GB, free: 10.89 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.599e-05/0.6948, allocations: 12 kB / 1.227 GB, free: 10.88 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003457/0.6952, allocations: 180.6 kB / 1.227 GB, free: 10.69 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.026e-05/0.6952, allocations: 0 / 1.227 GB, free: 10.69 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.263e-05/0.6952, allocations: 4 kB / 1.227 GB, free: 10.68 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.913e-06/0.6952, allocations: 4 kB / 1.227 GB, free: 10.68 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002112/0.6955, allocations: 87.89 kB / 1.227 GB, free: 10.59 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001122/0.6966, allocations: 0.7856 MB / 1.228 GB, free: 9.75 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003331/0.6969, allocations: 141.4 kB / 1.228 GB, free: 9.594 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001114/0.6971, allocations: 45.7 kB / 1.228 GB, free: 9.543 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.552e-05/0.6971, allocations: 7.938 kB / 1.228 GB, free: 9.535 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002544/0.6974, allocations: 137 kB / 1.228 GB, free: 9.383 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=12): time 1.292e-06/0.6974, allocations: 0 / 1.228 GB, free: 9.383 MB / 0.9512 GB Notification: Performance of matching and sorting (n=12): time 0.0005361/0.6979, allocations: 221.3 kB / 1.229 GB, free: 9.16 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.062e-05/0.698, allocations: 106.8 kB / 1.229 GB, free: 9.031 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006924/0.6987, allocations: 0.576 MB / 1.229 GB, free: 8.445 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 3.311e-05/0.6987, allocations: 41.69 kB / 1.229 GB, free: 8.398 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001683/0.6989, allocations: 196.5 kB / 1.23 GB, free: 8.203 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 3.724e-05/0.699, allocations: 35.8 kB / 1.23 GB, free: 8.168 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001209/0.6991, allocations: 73.64 kB / 1.23 GB, free: 8.09 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001703/0.6993, allocations: 354.7 kB / 1.23 GB, free: 7.734 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002071/0.6995, allocations: 104 kB / 1.23 GB, free: 7.633 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002638/0.6997, allocations: 187.5 kB / 1.23 GB, free: 7.43 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003209/0.7001, allocations: 183.1 kB / 1.23 GB, free: 7.238 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.7001, allocations: 0 / 1.23 GB, free: 7.238 MB / 0.9512 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005984/0.7007, allocations: 345.2 kB / 1.231 GB, free: 6.895 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.602e-05/0.7007, allocations: 4 kB / 1.231 GB, free: 6.891 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.7007, allocations: 3.938 kB / 1.231 GB, free: 6.887 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.525e-05/0.7007, allocations: 4 kB / 1.231 GB, free: 6.883 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001946/0.701, allocations: 47.91 kB / 1.231 GB, free: 6.836 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.189e-05/0.701, allocations: 7.938 kB / 1.231 GB, free: 6.828 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002118/0.7012, allocations: 36.36 kB / 1.231 GB, free: 6.793 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.423e-05/0.7012, allocations: 16.09 kB / 1.231 GB, free: 6.777 MB / 0.9512 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.TTanBot.tab.nextTimeEvent,$whenCondition2,$PRE.TTanTop.tab.nextTimeEvent,$whenCondition1,TTanTop.tab.nextTimeEventScaled,$PRE.TTanTop.tab.nextTimeEventScaled,TTanTop.tab.nextTimeEvent,tanSta.hysCha.y,$PRE.tanSta.hysCha.y,TTanBot.tab.nextTimeEventScaled,$PRE.TTanBot.tab.nextTimeEventScaled,TTanBot.tab.nextTimeEvent,tanSta.hysEmp.y,$PRE.tanSta.hysEmp.y,tanSta.gre.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 35 * 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.0002038/0.7014, allocations: 199.5 kB / 1.231 GB, free: 6.574 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.172e-05/0.7015, allocations: 47.7 kB / 1.231 GB, free: 6.527 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.891e-05/0.7016, allocations: 39.38 kB / 1.231 GB, free: 6.484 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.118e-06/0.7016, allocations: 4 kB / 1.231 GB, free: 6.48 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.7016, allocations: 0 / 1.231 GB, free: 6.48 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.21e-06/0.7016, allocations: 7.984 kB / 1.231 GB, free: 6.473 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003163/0.7019, allocations: 333.3 kB / 1.231 GB, free: 6.098 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.702, allocations: 4 kB / 1.231 GB, free: 6.094 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.804e-05/0.702, allocations: 11.98 kB / 1.231 GB, free: 6.082 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/0.702, allocations: 0 / 1.231 GB, free: 6.082 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.173e-05/0.702, allocations: 0 / 1.231 GB, free: 6.082 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.572e-06/0.702, allocations: 4 kB / 1.231 GB, free: 6.078 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.702, allocations: 3.938 kB / 1.231 GB, free: 6.074 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003759/0.7024, allocations: 217.5 kB / 1.232 GB, free: 5.84 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001039/0.7025, allocations: 124.9 kB / 1.232 GB, free: 5.699 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.37e-05/0.7026, allocations: 0 / 1.232 GB, free: 5.699 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000135/0.7027, allocations: 19.98 kB / 1.232 GB, free: 5.68 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.517e-05/0.7028, allocations: 19.97 kB / 1.232 GB, free: 5.66 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.596e-05/0.7028, allocations: 7.984 kB / 1.232 GB, free: 5.652 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0004209/0.7033, allocations: 359.1 kB / 1.232 GB, free: 5.301 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7033, allocations: 0 / 1.232 GB, free: 5.301 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0003171/0.7036, allocations: 75.81 kB / 1.232 GB, free: 5.227 MB / 0.9512 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,tanSta.hysEmp.y,TTanBot.tab.nextTimeEvent,TTanBot.tab.nextTimeEventScaled,$whenCondition1,tanSta.hysCha.y,TTanTop.tab.nextTimeEvent,TTanTop.tab.nextTimeEventScaled) * Number of discrete states: 6 (TTanTop.tab.nextTimeEventScaled,tanSta.hysCha.y,TTanTop.tab.nextTimeEvent,TTanBot.tab.nextTimeEventScaled,tanSta.hysEmp.y,TTanBot.tab.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.002093/0.7057, allocations: 1.068 MB / 1.233 GB, free: 4.293 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0004383/0.7061, allocations: 203.7 kB / 1.233 GB, free: 4.094 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.7061, allocations: 0 / 1.233 GB, free: 4.094 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001484/0.7063, allocations: 59.97 kB / 1.234 GB, free: 4.035 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005259/0.7068, allocations: 99.55 kB / 1.234 GB, free: 3.945 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004422/0.7113, allocations: 3.521 MB / 1.237 GB, free: 312 kB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004385/0.7117, allocations: 0.8105 MB / 1.238 GB, free: 15.47 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.0001486/0.7119, allocations: 71.11 kB / 1.238 GB, free: 15.4 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001953/0.7121, allocations: 119.4 kB / 1.238 GB, free: 15.28 MB / 0.9669 GB Notification: Performance of SimCode: time 3.71e-07/0.7121, allocations: 0 / 1.238 GB, free: 15.28 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03039/0.7425, allocations: 8.388 MB / 1.246 GB, free: 7.047 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.103/8.846, allocations: 3.938 kB / 1.246 GB, free: 7.043 MB / 0.9669 GB (rm -f Buildings_11_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe ; mkfifo Buildings_11_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe ; head -c 1048576 < Buildings_11_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe >> ../files/Buildings_11_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_11_Buildings_DHC_Plants_Cooling_Controls_Validation_TankStatus.fmu > Buildings_11_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_DHC_Plants_Cooling_Controls_Validation_TankStatus.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches