Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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.Fluid.Storage.Ice.BaseClasses.Examples.QStar,fileNamePrefix="Buildings_10_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar,fileNamePrefix="Buildings_10_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.001565/0.001565, allocations: 108 kB / 15.6 MB, free: 132 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.001736/0.001735, allocations: 193.2 kB / 16.53 MB, free: 6.391 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.2 MB, free: 4.391 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.579/2.579, allocations: 437.1 MB / 0.7104 GB, free: 5.055 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002386/0.002386, allocations: 60.09 kB / 0.8694 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5704/0.5728, allocations: 151.6 MB / 1.017 GB, free: 2.469 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar): time 0.003648/0.5765, allocations: 1.588 MB / 1.019 GB, free: 0.8672 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001073/0.5776, allocations: 0.5815 MB / 1.02 GB, free: 284 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.839e-05/0.5777, allocations: 3.938 kB / 1.02 GB, free: 280 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 4.384e-05/0.5777, allocations: 7.938 kB / 1.02 GB, free: 272 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 8.791e-05/0.5778, allocations: 7.922 kB / 1.02 GB, free: 264 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003199/0.5782, allocations: 59.75 kB / 1.02 GB, free: 204 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 9.146e-05/0.5783, allocations: 47.92 kB / 1.02 GB, free: 156 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001045/0.5784, allocations: 15.89 kB / 1.02 GB, free: 140 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 9.796e-05/0.5785, allocations: 31.86 kB / 1.02 GB, free: 108 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 8.652e-05/0.5786, allocations: 27.78 kB / 1.02 GB, free: 80 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.127e-05/0.5786, allocations: 4 kB / 1.02 GB, free: 76 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00016/0.5788, allocations: 47.95 kB / 1.02 GB, free: 28 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 6.252e-05/0.5788, allocations: 19.92 kB / 1.02 GB, free: 8 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 7.136e-05/0.5789, allocations: 31.92 kB / 1.02 GB, free: 15.97 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001921/0.5791, allocations: 93.88 kB / 1.02 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.5791, allocations: 0 / 1.02 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.804e-06/0.5791, allocations: 3.938 kB / 1.02 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 9.609e-06/0.5792, allocations: 0 / 1.02 GB, free: 15.88 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0006002/0.5798, allocations: 387.1 kB / 1.02 GB, free: 15.46 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.792e-05/0.5798, allocations: 12.03 kB / 1.02 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.582e-05/0.5799, allocations: 34.75 kB / 1.02 GB, free: 15.4 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009133/0.5808, allocations: 212.5 kB / 1.021 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001606/0.5809, allocations: 189.8 kB / 1.021 GB, free: 14.97 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.819e-05/0.581, allocations: 38 kB / 1.021 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.014e-05/0.5811, allocations: 4 kB / 1.021 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004154/0.5815, allocations: 169.5 kB / 1.021 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.285e-06/0.5815, allocations: 7.938 kB / 1.021 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.464e-05/0.5815, allocations: 0 / 1.021 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.148e-06/0.5815, allocations: 0 / 1.021 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005736/0.5821, allocations: 243.7 kB / 1.021 GB, free: 14.51 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000815/0.5829, allocations: 0.5115 MB / 1.022 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005691/0.5835, allocations: 242.3 kB / 1.022 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002943/0.5838, allocations: 124.7 kB / 1.022 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.668e-05/0.5838, allocations: 0 / 1.022 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.043e-05/0.5839, allocations: 30.56 kB / 1.022 GB, free: 13.53 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=2): time 1.082e-06/0.5839, allocations: 4 kB / 1.022 GB, free: 13.53 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2): time 0.0009897/0.5849, allocations: 365.2 kB / 1.022 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.527e-05/0.5849, allocations: 59.34 kB / 1.022 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000169/0.5851, allocations: 164 kB / 1.023 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.669e-05/0.5851, allocations: 25.7 kB / 1.023 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.965e-05/0.5852, allocations: 112.2 kB / 1.023 GB, free: 12.78 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.461e-05/0.5852, allocations: 7.906 kB / 1.023 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.266e-05/0.5853, allocations: 17.7 kB / 1.023 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001015/0.5854, allocations: 318.8 kB / 1.023 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002913/0.5857, allocations: 119.8 kB / 1.023 GB, free: 12.31 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002888/0.586, allocations: 115.9 kB / 1.023 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000523/0.5865, allocations: 196.7 kB / 1.023 GB, free: 12 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.275e-06/0.5865, allocations: 0 / 1.023 GB, free: 12 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0006219/0.5872, allocations: 261.3 kB / 1.024 GB, free: 11.74 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.4e-05/0.5872, allocations: 4 kB / 1.024 GB, free: 11.74 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.5872, allocations: 0 / 1.024 GB, free: 11.74 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.171e-05/0.5872, allocations: 3.938 kB / 1.024 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002161/0.5874, allocations: 43.95 kB / 1.024 GB, free: 11.69 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.246e-06/0.5874, allocations: 7.938 kB / 1.024 GB, free: 11.68 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001674/0.5876, allocations: 35.92 kB / 1.024 GB, free: 11.65 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.491e-05/0.5876, allocations: 7.938 kB / 1.024 GB, free: 11.64 MB / 0.7794 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 8.792e-05/0.5877, allocations: 121.8 kB / 1.024 GB, free: 11.51 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.162e-05/0.5878, allocations: 11.81 kB / 1.024 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.388e-05/0.5878, allocations: 11.88 kB / 1.024 GB, free: 11.49 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.317e-06/0.5878, allocations: 0 / 1.024 GB, free: 11.49 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.571e-06/0.5878, allocations: 7.875 kB / 1.024 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.254e-06/0.5878, allocations: 0 / 1.024 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002367/0.5881, allocations: 241.6 kB / 1.024 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.5881, allocations: 0 / 1.024 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001974/0.5883, allocations: 51.91 kB / 1.024 GB, free: 11.15 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.5883, allocations: 0 / 1.024 GB, free: 11.15 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.252e-05/0.5883, allocations: 3.984 kB / 1.024 GB, free: 11.14 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.5883, allocations: 0 / 1.024 GB, free: 11.14 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.5883, allocations: 7.938 kB / 1.024 GB, free: 11.14 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006627/0.589, allocations: 347.2 kB / 1.025 GB, free: 10.78 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.407e-05/0.5891, allocations: 85 kB / 1.025 GB, free: 10.68 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.817e-05/0.5891, allocations: 4 kB / 1.025 GB, free: 10.68 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001958/0.5893, allocations: 39.91 kB / 1.025 GB, free: 10.64 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.054e-05/0.5893, allocations: 3.938 kB / 1.025 GB, free: 10.63 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.459e-05/0.5894, allocations: 7.984 kB / 1.025 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 9.103e-05/0.5895, allocations: 125.4 kB / 1.025 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5895, allocations: 4 kB / 1.025 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002581/0.5897, allocations: 15.98 kB / 1.025 GB, free: 10.48 MB / 0.7794 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.0009316/0.5907, allocations: 0.8841 MB / 1.026 GB, free: 9.57 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0006202/0.5913, allocations: 231.7 kB / 1.026 GB, free: 9.344 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.5913, allocations: 0 / 1.026 GB, free: 9.344 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0003065/0.5916, allocations: 123.9 kB / 1.026 GB, free: 9.223 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002326/0.5919, allocations: 10.12 kB / 1.026 GB, free: 9.215 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003172/0.595, allocations: 2.325 MB / 1.028 GB, free: 6.812 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002189/0.5953, allocations: 0.6961 MB / 1.029 GB, free: 6.09 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001006/0.5954, allocations: 28 kB / 1.029 GB, free: 6.062 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.31e-05/0.5955, allocations: 31.41 kB / 1.029 GB, free: 6.031 MB / 0.7794 GB Notification: Performance of SimCode: time 3.41e-07/0.5955, allocations: 0 / 1.029 GB, free: 6.031 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0179/0.6134, allocations: 2.613 MB / 1.032 GB, free: 3.492 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.161/7.775, allocations: 8.703 kB / 1.032 GB, free: 3.484 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe ; mkfifo Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe >> ../files/Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.sim & python3 -m fmpy simulate --output-file Buildings_10_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_10_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar.fmu > Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar_res.csv. Warning: Get data of variable lmtd.y from file Buildings_10_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]