Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-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.Plants.Cooling.Controls.Validation.TankStatus,fileNamePrefix="Buildings_latest_Buildings_DHC_Plants_Cooling_Controls_Validation_TankStatus",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus,fileNamePrefix="Buildings_latest_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.006831/0.006831, allocations: 96.7 kB / 15.73 MB, free: 6.047 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.001422/0.001423, allocations: 194.3 kB / 16.67 MB, free: 5.973 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.437/1.437, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.721/2.721, allocations: 469.4 MB / 0.7421 GB, free: 7.633 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001376/0.001376, allocations: 67.83 kB / 1.064 GB, free: 13.91 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3279/0.3293, allocations: 159.1 MB / 1.22 GB, free: 14.68 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.003804/0.3331, allocations: 2.266 MB / 1.222 GB, free: 12.4 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.002184/0.3353, allocations: 1.27 MB / 1.223 GB, free: 11.12 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002424/0.3356, allocations: 7.938 kB / 1.223 GB, free: 11.11 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.000509/0.3361, allocations: 167.3 kB / 1.223 GB, free: 10.95 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0004494/0.3366, allocations: 171.2 kB / 1.224 GB, free: 10.78 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.000622/0.3372, allocations: 250.8 kB / 1.224 GB, free: 10.54 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0005309/0.3378, allocations: 406.9 kB / 1.224 GB, free: 10.14 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000243/0.338, allocations: 101.2 kB / 1.224 GB, free: 10.04 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000313/0.3384, allocations: 183.3 kB / 1.224 GB, free: 9.863 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002526/0.3386, allocations: 183.3 kB / 1.225 GB, free: 9.684 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 6.029e-05/0.3387, allocations: 24 kB / 1.225 GB, free: 9.66 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001947/0.3389, allocations: 71.98 kB / 1.225 GB, free: 9.59 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0001251/0.339, allocations: 123.5 kB / 1.225 GB, free: 9.469 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001607/0.3392, allocations: 158.9 kB / 1.225 GB, free: 9.312 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0005617/0.3398, allocations: 497.9 kB / 1.225 GB, free: 8.824 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.3398, allocations: 0 / 1.225 GB, free: 8.824 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.502e-06/0.3398, allocations: 0 / 1.225 GB, free: 8.824 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.416e-05/0.3398, allocations: 4 kB / 1.225 GB, free: 8.82 MB / 0.9825 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.001241/0.3411, allocations: 0.7309 MB / 1.226 GB, free: 8.039 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.944e-05/0.3411, allocations: 8.031 kB / 1.226 GB, free: 8.031 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.89e-05/0.3412, allocations: 46.73 kB / 1.226 GB, free: 7.977 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001035/0.3413, allocations: 44.66 kB / 1.226 GB, free: 7.934 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006557/0.342, allocations: 418.6 kB / 1.227 GB, free: 7.488 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.173e-05/0.342, allocations: 16.12 kB / 1.227 GB, free: 7.473 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.05e-05/0.342, allocations: 16 kB / 1.227 GB, free: 7.457 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003354/0.3424, allocations: 172.7 kB / 1.227 GB, free: 7.273 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.066e-05/0.3424, allocations: 7.938 kB / 1.227 GB, free: 7.266 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.924e-05/0.3424, allocations: 4 kB / 1.227 GB, free: 7.262 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.853e-06/0.3424, allocations: 4 kB / 1.227 GB, free: 7.258 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001998/0.3426, allocations: 83.95 kB / 1.227 GB, free: 7.176 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001157/0.3438, allocations: 0.7894 MB / 1.228 GB, free: 6.328 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003173/0.3441, allocations: 137.4 kB / 1.228 GB, free: 6.176 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001103/0.3442, allocations: 49.69 kB / 1.228 GB, free: 6.121 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.588e-05/0.3443, allocations: 4 kB / 1.228 GB, free: 6.117 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002444/0.3445, allocations: 137 kB / 1.228 GB, free: 5.965 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=12): time 1.403e-06/0.3445, allocations: 0 / 1.228 GB, free: 5.965 MB / 0.9825 GB Notification: Performance of matching and sorting (n=12): time 0.0005417/0.3451, allocations: 221.3 kB / 1.228 GB, free: 5.742 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.818e-05/0.3452, allocations: 110.8 kB / 1.228 GB, free: 5.609 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006416/0.3458, allocations: 0.576 MB / 1.229 GB, free: 5.027 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.714e-05/0.3459, allocations: 37.7 kB / 1.229 GB, free: 4.984 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001517/0.346, allocations: 188.6 kB / 1.229 GB, free: 4.797 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 4.023e-05/0.3461, allocations: 43.72 kB / 1.229 GB, free: 4.754 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001151/0.3462, allocations: 77.62 kB / 1.229 GB, free: 4.672 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001271/0.3463, allocations: 354.7 kB / 1.23 GB, free: 4.316 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001898/0.3465, allocations: 108 kB / 1.23 GB, free: 4.211 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002244/0.3467, allocations: 167 kB / 1.23 GB, free: 4.027 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003138/0.3471, allocations: 190.7 kB / 1.23 GB, free: 3.828 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/0.3471, allocations: 0 / 1.23 GB, free: 3.828 MB / 0.9825 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005456/0.3476, allocations: 347.8 kB / 1.23 GB, free: 3.484 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.717e-05/0.3477, allocations: 9.875 kB / 1.23 GB, free: 3.477 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.3477, allocations: 0 / 1.23 GB, free: 3.477 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.764e-05/0.3477, allocations: 4 kB / 1.23 GB, free: 3.473 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001913/0.3479, allocations: 47.86 kB / 1.23 GB, free: 3.426 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.102e-05/0.3479, allocations: 7.984 kB / 1.23 GB, free: 3.418 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002231/0.3481, allocations: 35.86 kB / 1.23 GB, free: 3.383 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.317e-05/0.3482, allocations: 16.09 kB / 1.23 GB, free: 3.367 MB / 0.9825 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.0001995/0.3484, allocations: 196 kB / 1.231 GB, free: 3.168 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.355e-05/0.3485, allocations: 39.72 kB / 1.231 GB, free: 3.129 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.514e-05/0.3485, allocations: 47.36 kB / 1.231 GB, free: 3.078 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.3485, allocations: 0 / 1.231 GB, free: 3.078 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.3486, allocations: 0 / 1.231 GB, free: 3.078 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.979e-06/0.3486, allocations: 4 kB / 1.231 GB, free: 3.074 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002722/0.3488, allocations: 333.3 kB / 1.231 GB, free: 2.699 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.446e-06/0.3489, allocations: 4 kB / 1.231 GB, free: 2.695 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.568e-05/0.3489, allocations: 7.938 kB / 1.231 GB, free: 2.688 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.482e-06/0.3489, allocations: 4 kB / 1.231 GB, free: 2.684 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.545e-05/0.3489, allocations: 7.938 kB / 1.231 GB, free: 2.676 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.865e-06/0.3489, allocations: 8.484 kB / 1.231 GB, free: 2.668 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.3489, allocations: 0 / 1.231 GB, free: 2.668 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000342/0.3493, allocations: 209.6 kB / 1.231 GB, free: 2.441 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001051/0.3494, allocations: 120.9 kB / 1.231 GB, free: 2.305 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.243e-05/0.3495, allocations: 8 kB / 1.231 GB, free: 2.297 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001353/0.3496, allocations: 15.97 kB / 1.231 GB, free: 2.281 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.2e-05/0.3497, allocations: 27.91 kB / 1.231 GB, free: 2.254 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.382e-05/0.3497, allocations: 4 kB / 1.231 GB, free: 2.25 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0003817/0.3501, allocations: 363.1 kB / 1.232 GB, free: 1.895 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3501, allocations: 0 / 1.232 GB, free: 1.895 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003123/0.3504, allocations: 71.83 kB / 1.232 GB, free: 1.824 MB / 0.9825 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.001477/0.3519, allocations: 1.072 MB / 1.233 GB, free: 0.8867 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0004427/0.3523, allocations: 211.8 kB / 1.233 GB, free: 0.6797 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.3524, allocations: 0 / 1.233 GB, free: 0.6797 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001371/0.3525, allocations: 55.92 kB / 1.233 GB, free: 0.625 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005139/0.353, allocations: 101.8 kB / 1.233 GB, free: 0.5352 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004414/0.3575, allocations: 3.515 MB / 1.237 GB, free: 12.9 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003546/0.3578, allocations: 0.8105 MB / 1.237 GB, free: 12.06 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001595/0.358, allocations: 51.16 kB / 1.238 GB, free: 12.01 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001925/0.3582, allocations: 131.4 kB / 1.238 GB, free: 11.88 MB / 0.9981 GB Notification: Performance of SimCode: time 3.3e-07/0.3582, allocations: 0 / 1.238 GB, free: 11.88 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02892/0.3871, allocations: 8.406 MB / 1.246 GB, free: 3.645 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.342/8.73, allocations: 0 / 1.246 GB, free: 3.645 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe ; mkfifo Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe ; head -c 1048576 < Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe >> ../files/Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_DHC_Plants_Cooling_Controls_Validation_TankStatus.fmu > Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_DHC_Plants_Cooling_Controls_Validation_TankStatus.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches