Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.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.NormalizedHeatFlowRate,fileNamePrefix="Buildings_11_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_NormalizedHeatFlowRate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate,fileNamePrefix="Buildings_11_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_NormalizedHeatFlowRate",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.007202/0.007202, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.002046/0.002046, allocations: 196 kB / 16.68 MB, free: 5.934 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.16 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.716/2.716, allocations: 469.8 MB / 0.7425 GB, free: 3.344 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001984/0.001984, allocations: 63.91 kB / 1.065 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6472/0.6492, allocations: 159.1 MB / 1.22 GB, free: 2.074 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate): time 0.003376/0.6526, allocations: 1.978 MB / 1.222 GB, free: 88 kB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001282/0.6539, allocations: 0.6905 MB / 1.223 GB, free: 15.39 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.936e-05/0.654, allocations: 4 kB / 1.223 GB, free: 15.39 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0001295/0.6542, allocations: 23.73 kB / 1.223 GB, free: 15.36 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 8.152e-05/0.6543, allocations: 27.78 kB / 1.223 GB, free: 15.34 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003337/0.6546, allocations: 83.78 kB / 1.223 GB, free: 15.25 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0001963/0.6548, allocations: 151.5 kB / 1.223 GB, free: 15.11 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001843/0.655, allocations: 80.61 kB / 1.223 GB, free: 15.02 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001093/0.6551, allocations: 55.78 kB / 1.223 GB, free: 14.97 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000119/0.6553, allocations: 71.62 kB / 1.223 GB, free: 14.9 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 3.307e-05/0.6553, allocations: 16 kB / 1.223 GB, free: 14.88 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000164/0.6555, allocations: 67.89 kB / 1.223 GB, free: 14.82 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 9.563e-05/0.6556, allocations: 67.8 kB / 1.223 GB, free: 14.75 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 9.482e-05/0.6557, allocations: 95.41 kB / 1.223 GB, free: 14.66 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0003592/0.656, allocations: 266.5 kB / 1.224 GB, free: 14.4 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 2.846e-06/0.6561, allocations: 0 / 1.224 GB, free: 14.4 MB / 0.9512 GB Notification: Performance of FrontEnd: time 5.029e-06/0.6561, allocations: 0 / 1.224 GB, free: 14.4 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 5.401e-06/0.6561, allocations: 3.938 kB / 1.224 GB, free: 14.39 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0008492/0.6569, allocations: 0.545 MB / 1.224 GB, free: 13.8 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.35e-05/0.657, allocations: 8.031 kB / 1.224 GB, free: 13.79 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.061e-05/0.657, allocations: 50.73 kB / 1.224 GB, free: 13.73 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001774/0.6588, allocations: 416 kB / 1.225 GB, free: 13.33 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000445/0.6593, allocations: 319.9 kB / 1.225 GB, free: 12.98 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.408e-05/0.6594, allocations: 72.17 kB / 1.225 GB, free: 12.9 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.206e-05/0.6594, allocations: 12.38 kB / 1.225 GB, free: 12.89 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009038/0.6603, allocations: 387.1 kB / 1.225 GB, free: 12.5 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.947e-06/0.6603, allocations: 0 / 1.225 GB, free: 12.5 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.362e-05/0.6604, allocations: 8 kB / 1.225 GB, free: 12.5 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.835e-06/0.6604, allocations: 4 kB / 1.225 GB, free: 12.49 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001385/0.6618, allocations: 0.535 MB / 1.226 GB, free: 11.96 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001778/0.6636, allocations: 1.009 MB / 1.227 GB, free: 10.89 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007334/0.6643, allocations: 298.2 kB / 1.227 GB, free: 10.59 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006741/0.665, allocations: 272.6 kB / 1.228 GB, free: 10.32 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.351e-05/0.665, allocations: 0 / 1.228 GB, free: 10.32 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.529e-05/0.6651, allocations: 34.55 kB / 1.228 GB, free: 10.28 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=7): time 1.072e-06/0.6651, allocations: 4 kB / 1.228 GB, free: 10.28 MB / 0.9512 GB Notification: Performance of matching and sorting (n=7): time 0.002095/0.6672, allocations: 0.782 MB / 1.228 GB, free: 9.488 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.731e-05/0.6672, allocations: 51.41 kB / 1.228 GB, free: 9.426 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000345/0.6676, allocations: 294.7 kB / 1.229 GB, free: 9.125 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 3.258e-05/0.6676, allocations: 29.7 kB / 1.229 GB, free: 9.09 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001127/0.6677, allocations: 156.4 kB / 1.229 GB, free: 8.934 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 3.927e-05/0.6678, allocations: 27.75 kB / 1.229 GB, free: 8.906 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.917e-05/0.6679, allocations: 37.61 kB / 1.229 GB, free: 8.863 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001614/0.6681, allocations: 342.8 kB / 1.229 GB, free: 8.52 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006567/0.6687, allocations: 255.8 kB / 1.229 GB, free: 8.27 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006515/0.6694, allocations: 259.8 kB / 1.23 GB, free: 8.016 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001163/0.6705, allocations: 440.8 kB / 1.23 GB, free: 7.582 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.6706, allocations: 4 kB / 1.23 GB, free: 7.578 MB / 0.9512 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.001356/0.6719, allocations: 0.5284 MB / 1.231 GB, free: 7.043 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.262e-05/0.6719, allocations: 4 kB / 1.231 GB, free: 7.039 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.672, allocations: 4 kB / 1.231 GB, free: 7.035 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.573e-05/0.672, allocations: 0 / 1.231 GB, free: 7.035 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004116/0.6724, allocations: 99.77 kB / 1.231 GB, free: 6.938 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.298e-06/0.6724, allocations: 0 / 1.231 GB, free: 6.938 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003231/0.6727, allocations: 71.83 kB / 1.231 GB, free: 6.867 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.883e-05/0.6728, allocations: 11.97 kB / 1.231 GB, free: 6.855 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: 1 (not1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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.0001532/0.6729, allocations: 146.3 kB / 1.231 GB, free: 6.703 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.794e-05/0.673, allocations: 19.86 kB / 1.231 GB, free: 6.684 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.605e-05/0.6731, allocations: 25.7 kB / 1.231 GB, free: 6.656 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.873e-06/0.6731, allocations: 0 / 1.231 GB, free: 6.656 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.591e-06/0.6731, allocations: 4 kB / 1.231 GB, free: 6.652 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.385e-06/0.6731, allocations: 4 kB / 1.231 GB, free: 6.648 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005398/0.6736, allocations: 452 kB / 1.231 GB, free: 6.156 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.6736, allocations: 0 / 1.231 GB, free: 6.156 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004018/0.674, allocations: 91.83 kB / 1.232 GB, free: 6.066 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.6741, allocations: 0 / 1.232 GB, free: 6.066 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.932e-05/0.6741, allocations: 15.97 kB / 1.232 GB, free: 6.051 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.6741, allocations: 0 / 1.232 GB, free: 6.051 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.6741, allocations: 0 / 1.232 GB, free: 6.051 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001436/0.6755, allocations: 0.6316 MB / 1.232 GB, free: 5.402 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 7.889e-05/0.6756, allocations: 108.9 kB / 1.232 GB, free: 5.277 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.545e-05/0.6757, allocations: 0 / 1.232 GB, free: 5.277 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003585/0.676, allocations: 71.81 kB / 1.232 GB, free: 5.207 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.61e-05/0.6761, allocations: 11.98 kB / 1.232 GB, free: 5.195 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.476e-05/0.6761, allocations: 11.98 kB / 1.232 GB, free: 5.184 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0002336/0.6764, allocations: 217.9 kB / 1.233 GB, free: 4.973 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6764, allocations: 0 / 1.233 GB, free: 4.973 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.000309/0.6767, allocations: 43.89 kB / 1.233 GB, free: 4.93 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: 1 (not1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 7 * 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.001794/0.6785, allocations: 1.179 MB / 1.234 GB, free: 3.727 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.001359/0.6799, allocations: 0.5307 MB / 1.234 GB, free: 3.195 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.6799, allocations: 0 / 1.234 GB, free: 3.195 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0006813/0.6806, allocations: 275.7 kB / 1.235 GB, free: 2.926 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002764/0.6809, allocations: 12.56 kB / 1.235 GB, free: 2.914 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006597/0.6875, allocations: 3.89 MB / 1.238 GB, free: 14.95 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003988/0.6879, allocations: 0.7513 MB / 1.239 GB, free: 14.17 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.0001923/0.6881, allocations: 53.42 kB / 1.239 GB, free: 14.12 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001741/0.6882, allocations: 83.38 kB / 1.239 GB, free: 14.04 MB / 0.9669 GB Notification: Performance of SimCode: time 2.91e-07/0.6883, allocations: 4 kB / 1.239 GB, free: 14.04 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02618/0.7144, allocations: 5.066 MB / 1.244 GB, free: 9.109 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.815/8.53, allocations: 2.5 kB / 1.244 GB, free: 9.109 MB / 0.9669 GB (rm -f Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.pipe ; mkfifo Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.pipe >> ../files/Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate_res.csv --start-time 0 --stop-time 7200 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 2.88 Buildings_11_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_NormalizedHeatFlowRate.fmu > Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_NormalizedHeatFlowRate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[502]=7200.000000 File[1199]=4498.560000 Error: Could not read variable norQSta.canMelt in file Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate_res.csv. Warning: Get data of variable norQSta.canMelt from file Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate_res.csv failed! Error: Could not read variable norQSta.SOC in file Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate_res.csv. Warning: Get data of variable norQSta.SOC from file Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate_res.csv failed! " Variables in the reference:time,norQSta.qNor,norQSta.canMelt,norQSta.SOC Variables in the result:time,fra.y,lmtd.y,norQSta.qNor,coeCha[1],coeCha[2]