Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Experimental.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus,fileNamePrefix="Buildings_10_Buildings_Experimental_DHC_Plants_Cooling_Controls_Validation_TankStatus",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus,fileNamePrefix="Buildings_10_Buildings_Experimental_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.001232/0.001232, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001178/0.001178, allocations: 198.1 kB / 16.26 MB, free: 6.621 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.195/1.195, allocations: 222.9 MB / 239.9 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.315/2.315, allocations: 437 MB / 0.7101 GB, free: 5.32 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001223/0.001223, allocations: 59.91 kB / 0.8689 GB, free: 4.953 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4887/0.4899, allocations: 151.6 MB / 1.017 GB, free: 2.707 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.003081/0.493, allocations: 2.317 MB / 1.019 GB, free: 384 kB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001622/0.4947, allocations: 1.252 MB / 1.02 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001136/0.4948, allocations: 4 kB / 1.02 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.000375/0.4952, allocations: 171.4 kB / 1.021 GB, free: 14.94 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0002898/0.4955, allocations: 147.5 kB / 1.021 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004233/0.4959, allocations: 219.3 kB / 1.021 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0003571/0.4963, allocations: 422.7 kB / 1.021 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000169/0.4964, allocations: 97.27 kB / 1.021 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001776/0.4966, allocations: 179.2 kB / 1.022 GB, free: 13.9 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001637/0.4968, allocations: 175.3 kB / 1.022 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.526e-05/0.4968, allocations: 24 kB / 1.022 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001279/0.497, allocations: 75.97 kB / 1.022 GB, free: 13.63 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 9.801e-05/0.4971, allocations: 111.6 kB / 1.022 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001194/0.4972, allocations: 170.9 kB / 1.022 GB, free: 13.35 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003883/0.4976, allocations: 488.6 kB / 1.023 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.945e-06/0.4976, allocations: 4 kB / 1.023 GB, free: 12.87 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.263e-06/0.4976, allocations: 0 / 1.023 GB, free: 12.87 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.101e-06/0.4976, allocations: 0 / 1.023 GB, free: 12.87 MB / 0.7794 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.000874/0.4985, allocations: 0.708 MB / 1.023 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.067e-05/0.4985, allocations: 8.031 kB / 1.023 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.122e-05/0.4986, allocations: 50.73 kB / 1.023 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.015e-05/0.4987, allocations: 44.38 kB / 1.023 GB, free: 12 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004415/0.4991, allocations: 410.2 kB / 1.024 GB, free: 11.56 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.968e-05/0.4991, allocations: 16.12 kB / 1.024 GB, free: 11.55 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.543e-05/0.4992, allocations: 12 kB / 1.024 GB, free: 11.54 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002882/0.4995, allocations: 176.1 kB / 1.024 GB, free: 11.35 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.368e-06/0.4995, allocations: 3.984 kB / 1.024 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.824e-05/0.4995, allocations: 8 kB / 1.024 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.062e-06/0.4995, allocations: 4 kB / 1.024 GB, free: 11.33 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001831/0.4997, allocations: 91.89 kB / 1.024 GB, free: 11.24 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009373/0.5007, allocations: 0.7894 MB / 1.025 GB, free: 10.39 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002861/0.501, allocations: 133.3 kB / 1.025 GB, free: 10.25 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.774e-05/0.5011, allocations: 53.64 kB / 1.025 GB, free: 10.19 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.263e-05/0.5011, allocations: 0 / 1.025 GB, free: 10.19 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002134/0.5013, allocations: 137 kB / 1.025 GB, free: 10.04 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=12): time 1.312e-06/0.5013, allocations: 0 / 1.025 GB, free: 10.04 MB / 0.7794 GB Notification: Performance of matching and sorting (n=12): time 0.0004585/0.5018, allocations: 225.5 kB / 1.025 GB, free: 9.809 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.358e-05/0.5018, allocations: 102.8 kB / 1.025 GB, free: 9.684 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005508/0.5024, allocations: 0.5759 MB / 1.026 GB, free: 9.102 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.423e-05/0.5024, allocations: 29.7 kB / 1.026 GB, free: 9.066 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001238/0.5026, allocations: 200.4 kB / 1.026 GB, free: 8.867 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.208e-05/0.5026, allocations: 35.55 kB / 1.026 GB, free: 8.832 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.67e-05/0.5027, allocations: 81.59 kB / 1.026 GB, free: 8.746 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001041/0.5028, allocations: 354.7 kB / 1.027 GB, free: 8.391 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001754/0.503, allocations: 108 kB / 1.027 GB, free: 8.285 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002043/0.5032, allocations: 163.1 kB / 1.027 GB, free: 8.105 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000273/0.5035, allocations: 193.9 kB / 1.027 GB, free: 7.902 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.5035, allocations: 0 / 1.027 GB, free: 7.902 MB / 0.7794 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004901/0.504, allocations: 342.4 kB / 1.027 GB, free: 7.562 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.185e-05/0.504, allocations: 8 kB / 1.027 GB, free: 7.555 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.038e-06/0.504, allocations: 4.094 kB / 1.027 GB, free: 7.551 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.107e-06/0.504, allocations: 0 / 1.027 GB, free: 7.551 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001834/0.5042, allocations: 51.91 kB / 1.028 GB, free: 7.5 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.101e-06/0.5042, allocations: 0 / 1.028 GB, free: 7.5 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002006/0.5044, allocations: 39.81 kB / 1.028 GB, free: 7.461 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.875e-05/0.5045, allocations: 12 kB / 1.028 GB, free: 7.449 MB / 0.7794 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.0001649/0.5046, allocations: 195.5 kB / 1.028 GB, free: 7.25 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.211e-05/0.5047, allocations: 51.36 kB / 1.028 GB, free: 7.199 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.505e-05/0.5048, allocations: 39.38 kB / 1.028 GB, free: 7.16 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.5048, allocations: 4 kB / 1.028 GB, free: 7.156 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.5048, allocations: 0 / 1.028 GB, free: 7.156 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.5048, allocations: 0 / 1.028 GB, free: 7.156 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002414/0.505, allocations: 333.4 kB / 1.028 GB, free: 6.781 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.505, allocations: 0 / 1.028 GB, free: 6.781 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.339e-05/0.5051, allocations: 8 kB / 1.028 GB, free: 6.773 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.5051, allocations: 0 / 1.028 GB, free: 6.773 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.775e-05/0.5051, allocations: 11.98 kB / 1.028 GB, free: 6.762 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.5051, allocations: 4 kB / 1.028 GB, free: 6.758 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.5051, allocations: 0 / 1.028 GB, free: 6.758 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003148/0.5054, allocations: 209.4 kB / 1.028 GB, free: 6.531 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 8.103e-05/0.5055, allocations: 124.6 kB / 1.029 GB, free: 6.391 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.459e-05/0.5056, allocations: 11.98 kB / 1.029 GB, free: 6.379 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001199/0.5057, allocations: 11.98 kB / 1.029 GB, free: 6.367 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.005e-05/0.5058, allocations: 23.97 kB / 1.029 GB, free: 6.344 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.636e-05/0.5058, allocations: 16 kB / 1.029 GB, free: 6.328 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0003285/0.5061, allocations: 363.1 kB / 1.029 GB, free: 5.977 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5061, allocations: 0 / 1.029 GB, free: 5.977 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002786/0.5064, allocations: 67.84 kB / 1.029 GB, free: 5.91 MB / 0.7794 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.001285/0.5077, allocations: 1.058 MB / 1.03 GB, free: 4.977 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003641/0.5081, allocations: 211.7 kB / 1.03 GB, free: 4.77 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.5081, allocations: 0 / 1.03 GB, free: 4.77 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001358/0.5082, allocations: 59.91 kB / 1.03 GB, free: 4.711 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004543/0.5087, allocations: 116.3 kB / 1.03 GB, free: 4.613 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003776/0.5125, allocations: 3.628 MB / 1.034 GB, free: 0.8711 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002831/0.5128, allocations: 0.8107 MB / 1.035 GB, free: 36 kB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001337/0.5129, allocations: 58.97 kB / 1.035 GB, free: 15.98 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000158/0.5131, allocations: 123.3 kB / 1.035 GB, free: 15.86 MB / 0.795 GB Notification: Performance of SimCode: time 2.7e-07/0.5131, allocations: 0 / 1.035 GB, free: 15.86 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5328/1.046, allocations: 8.077 MB / 1.043 GB, free: 7.996 MB / 0.795 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002492/1.046, allocations: 270 kB / 1.043 GB, free: 7.641 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.731/2.777, allocations: 0 / 1.043 GB, free: 7.641 MB / 0.795 GB (rm -f Buildings_10_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe ; mkfifo Buildings_10_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe ; head -c 1048576 < Buildings_10_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe >> ../files/Buildings_10_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus_res.mat --tempDir=temp_Buildings_10_Buildings_Experimental_DHC_Plants_Cooling_Controls_Validation_TankStatus_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Experimental_DHC_Plants_Cooling_Controls_Validation_TankStatus.fmu > Buildings_10_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Experimental_DHC_Plants_Cooling_Controls_Validation_TankStatus.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches