Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.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.Fluid.Storage.Ice.BaseClasses.Examples.QStar,fileNamePrefix="Buildings_11_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar,fileNamePrefix="Buildings_11_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar",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.007485/0.007485, allocations: 98.17 kB / 15.73 MB, free: 6.012 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.001871/0.001871, allocations: 196.9 kB / 16.68 MB, free: 5.93 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.412/1.412, allocations: 222.9 MB / 240.4 MB, free: 15.09 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.742/2.742, allocations: 469.8 MB / 0.7425 GB, free: 3.34 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001926/0.001926, allocations: 63.91 kB / 1.065 GB, free: 14.04 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7289/0.7308, allocations: 159.1 MB / 1.22 GB, free: 2.012 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar): time 0.002851/0.7337, allocations: 1.578 MB / 1.222 GB, free: 436 kB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.00111/0.7348, allocations: 0.5816 MB / 1.222 GB, free: 15.84 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.939e-05/0.7349, allocations: 7.938 kB / 1.222 GB, free: 15.83 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 4.609e-05/0.7349, allocations: 7.938 kB / 1.222 GB, free: 15.82 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 8.129e-05/0.7351, allocations: 7.875 kB / 1.222 GB, free: 15.82 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003018/0.7354, allocations: 55.81 kB / 1.222 GB, free: 15.76 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.00011/0.7355, allocations: 43.91 kB / 1.222 GB, free: 15.72 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 9.977e-05/0.7356, allocations: 15.98 kB / 1.222 GB, free: 15.7 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 9.546e-05/0.7357, allocations: 23.86 kB / 1.222 GB, free: 15.68 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 8.67e-05/0.7358, allocations: 35.84 kB / 1.222 GB, free: 15.64 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 1.93e-05/0.7358, allocations: 4 kB / 1.222 GB, free: 15.64 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001442/0.736, allocations: 47.95 kB / 1.223 GB, free: 15.59 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 6.1e-05/0.7361, allocations: 23.91 kB / 1.223 GB, free: 15.57 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 4.726e-05/0.7361, allocations: 27.8 kB / 1.223 GB, free: 15.54 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0002053/0.7363, allocations: 91.36 kB / 1.223 GB, free: 15.46 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.7363, allocations: 3.938 kB / 1.223 GB, free: 15.45 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.954e-06/0.7363, allocations: 0 / 1.223 GB, free: 15.45 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 1.007e-05/0.7364, allocations: 3.984 kB / 1.223 GB, free: 15.45 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005835/0.7369, allocations: 402.9 kB / 1.223 GB, free: 15.01 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.728e-05/0.737, allocations: 8.031 kB / 1.223 GB, free: 15 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.554e-05/0.737, allocations: 34.75 kB / 1.223 GB, free: 14.96 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009021/0.7379, allocations: 212.5 kB / 1.223 GB, free: 14.75 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002045/0.7382, allocations: 184.8 kB / 1.223 GB, free: 14.53 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.547e-05/0.7382, allocations: 41.98 kB / 1.224 GB, free: 14.48 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.99e-05/0.7383, allocations: 4 kB / 1.224 GB, free: 14.48 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004386/0.7387, allocations: 169.5 kB / 1.224 GB, free: 14.31 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.145e-06/0.7387, allocations: 4 kB / 1.224 GB, free: 14.3 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.318e-05/0.7387, allocations: 0 / 1.224 GB, free: 14.3 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.017e-06/0.7388, allocations: 3.938 kB / 1.224 GB, free: 14.3 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006204/0.7394, allocations: 243.7 kB / 1.224 GB, free: 14.06 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008946/0.7403, allocations: 0.5077 MB / 1.224 GB, free: 13.5 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006286/0.7409, allocations: 238.3 kB / 1.225 GB, free: 13.26 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003144/0.7413, allocations: 120.7 kB / 1.225 GB, free: 13.14 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.854e-05/0.7413, allocations: 4 kB / 1.225 GB, free: 13.14 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.505e-05/0.7413, allocations: 30.56 kB / 1.225 GB, free: 13.1 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=2): time 1.503e-06/0.7413, allocations: 4 kB / 1.225 GB, free: 13.09 MB / 0.9512 GB Notification: Performance of matching and sorting (n=2): time 0.001067/0.7424, allocations: 365.4 kB / 1.225 GB, free: 12.73 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.18e-05/0.7425, allocations: 55.34 kB / 1.225 GB, free: 12.66 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001829/0.7426, allocations: 174.2 kB / 1.225 GB, free: 12.49 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.984e-05/0.7427, allocations: 25.7 kB / 1.225 GB, free: 12.46 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 6.495e-05/0.7427, allocations: 96.14 kB / 1.225 GB, free: 12.36 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 2.216e-05/0.7428, allocations: 11.98 kB / 1.225 GB, free: 12.35 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.058e-05/0.7428, allocations: 21.69 kB / 1.226 GB, free: 12.32 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001433/0.743, allocations: 322.8 kB / 1.226 GB, free: 12 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003089/0.7433, allocations: 111.8 kB / 1.226 GB, free: 11.89 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003013/0.7436, allocations: 111.9 kB / 1.226 GB, free: 11.78 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005538/0.7442, allocations: 204.7 kB / 1.226 GB, free: 11.57 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.676e-06/0.7442, allocations: 4 kB / 1.226 GB, free: 11.57 MB / 0.9512 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0006686/0.7449, allocations: 253.4 kB / 1.226 GB, free: 11.32 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.777e-05/0.7449, allocations: 11.94 kB / 1.226 GB, free: 11.3 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.569e-06/0.7449, allocations: 0 / 1.226 GB, free: 11.3 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.304e-05/0.7449, allocations: 0 / 1.226 GB, free: 11.3 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002211/0.7451, allocations: 47.94 kB / 1.227 GB, free: 11.26 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.957e-06/0.7452, allocations: 3.938 kB / 1.227 GB, free: 11.25 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001656/0.7453, allocations: 39.88 kB / 1.227 GB, free: 11.21 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.639e-05/0.7454, allocations: 3.984 kB / 1.227 GB, free: 11.21 MB / 0.9512 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (2): * Single equations (assignments): 2 * 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.0001038/0.7455, allocations: 117.8 kB / 1.227 GB, free: 11.09 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.986e-05/0.7455, allocations: 15.89 kB / 1.227 GB, free: 11.07 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.994e-05/0.7456, allocations: 11.86 kB / 1.227 GB, free: 11.05 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-06/0.7456, allocations: 0 / 1.227 GB, free: 11.05 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/0.7456, allocations: 7.938 kB / 1.227 GB, free: 11.05 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.123e-06/0.7456, allocations: 0 / 1.227 GB, free: 11.05 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002946/0.7459, allocations: 249.6 kB / 1.227 GB, free: 10.75 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.7459, allocations: 0 / 1.227 GB, free: 10.75 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002051/0.7461, allocations: 47.91 kB / 1.227 GB, free: 10.71 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.308e-06/0.7461, allocations: 4 kB / 1.227 GB, free: 10.7 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.235e-05/0.7461, allocations: 0 / 1.227 GB, free: 10.7 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.7461, allocations: 0 / 1.227 GB, free: 10.7 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/0.7461, allocations: 3.938 kB / 1.227 GB, free: 10.7 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007128/0.7469, allocations: 351.2 kB / 1.227 GB, free: 10.34 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 5.819e-05/0.7469, allocations: 89 kB / 1.227 GB, free: 10.23 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.354e-05/0.747, allocations: 7.922 kB / 1.227 GB, free: 10.23 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001963/0.7472, allocations: 35.97 kB / 1.227 GB, free: 10.19 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.708e-05/0.7472, allocations: 7.938 kB / 1.227 GB, free: 10.18 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.287e-05/0.7472, allocations: 3.984 kB / 1.227 GB, free: 10.18 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0001025/0.7473, allocations: 123.2 kB / 1.228 GB, free: 10.06 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.51e-07/0.7473, allocations: 0 / 1.228 GB, free: 10.06 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002622/0.7476, allocations: 19.94 kB / 1.228 GB, free: 10.04 MB / 0.9512 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (2): * Single equations (assignments): 2 * 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 Backend phase and start with SimCode phase: time 0.001066/0.7487, allocations: 0.8847 MB / 1.228 GB, free: 9.129 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0006888/0.7494, allocations: 243.7 kB / 1.229 GB, free: 8.891 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.7494, allocations: 0 / 1.229 GB, free: 8.891 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0003255/0.7497, allocations: 115.9 kB / 1.229 GB, free: 8.777 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002373/0.75, allocations: 16.06 kB / 1.229 GB, free: 8.762 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003588/0.7536, allocations: 2.333 MB / 1.231 GB, free: 6.352 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003303/0.7539, allocations: 0.6963 MB / 1.232 GB, free: 5.629 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.000103/0.754, allocations: 23.98 kB / 1.232 GB, free: 5.605 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.749e-05/0.7541, allocations: 31.42 kB / 1.232 GB, free: 5.574 MB / 0.9512 GB Notification: Performance of SimCode: time 3.91e-07/0.7541, allocations: 4 kB / 1.232 GB, free: 5.57 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02309/0.7772, allocations: 2.651 MB / 1.234 GB, free: 3.008 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.756/8.533, allocations: 13.23 kB / 1.234 GB, free: 3 MB / 0.9512 GB (rm -f Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe ; mkfifo Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe >> ../files/Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar_res.csv --start-time 0 --stop-time 86400 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 34.56 Buildings_11_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar.fmu > Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[501]=86400.000000 File[27]=1002.240000 Error: Could not read variable lmtd.y in file Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar_res.csv. Warning: Get data of variable lmtd.y from file Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar_res.csv failed! " Variables in the reference:time,qSta.qNor,fra.y,lmtd.y Variables in the result:time,fra.y,qSta.qNor,coeCha[1],coeCha[2],coeCha[3]