Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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-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.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate,fileNamePrefix="Buildings_latest_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_NormalizedHeatFlowRate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate,fileNamePrefix="Buildings_latest_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.007284/0.007284, allocations: 99.95 kB / 15.73 MB, free: 6.016 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.001846/0.001846, allocations: 187.6 kB / 16.67 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.346/1.346, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.565/2.565, allocations: 469.4 MB / 0.7422 GB, free: 3.48 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001322/0.001322, allocations: 63.91 kB / 1.064 GB, free: 14.28 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6863/0.6876, allocations: 159.1 MB / 1.22 GB, free: 2.27 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate): time 0.003414/0.6911, allocations: 1.978 MB / 1.222 GB, free: 284 kB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001299/0.6924, allocations: 0.6983 MB / 1.222 GB, free: 15.57 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001341/0.6926, allocations: 4 kB / 1.222 GB, free: 15.57 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0001364/0.6927, allocations: 23.67 kB / 1.222 GB, free: 15.55 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 9.901e-05/0.6928, allocations: 19.8 kB / 1.222 GB, free: 15.53 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003569/0.6932, allocations: 87.78 kB / 1.222 GB, free: 15.44 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0001981/0.6934, allocations: 139.7 kB / 1.223 GB, free: 15.3 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001893/0.6936, allocations: 92.52 kB / 1.223 GB, free: 15.21 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001198/0.6937, allocations: 63.72 kB / 1.223 GB, free: 15.15 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001118/0.6939, allocations: 67.69 kB / 1.223 GB, free: 15.08 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 3.174e-05/0.6939, allocations: 16 kB / 1.223 GB, free: 15.07 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001475/0.6941, allocations: 71.83 kB / 1.223 GB, free: 15 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 9.813e-05/0.6942, allocations: 63.81 kB / 1.223 GB, free: 14.93 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 9.315e-05/0.6943, allocations: 91.41 kB / 1.223 GB, free: 14.84 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0003452/0.6946, allocations: 274.4 kB / 1.223 GB, free: 14.58 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.6946, allocations: 0 / 1.223 GB, free: 14.58 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.192e-06/0.6946, allocations: 0 / 1.223 GB, free: 14.58 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 7.344e-06/0.6946, allocations: 0 / 1.223 GB, free: 14.58 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.0008588/0.6955, allocations: 0.555 MB / 1.224 GB, free: 13.98 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.501e-05/0.6955, allocations: 8.625 kB / 1.224 GB, free: 13.97 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.188e-05/0.6956, allocations: 42.75 kB / 1.224 GB, free: 13.92 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001789/0.6974, allocations: 424 kB / 1.224 GB, free: 13.5 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004282/0.6978, allocations: 316 kB / 1.225 GB, free: 13.16 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.832e-05/0.6979, allocations: 68.19 kB / 1.225 GB, free: 13.08 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.473e-05/0.698, allocations: 12.38 kB / 1.225 GB, free: 13.07 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008579/0.6988, allocations: 383.1 kB / 1.225 GB, free: 12.69 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.596e-06/0.6989, allocations: 0 / 1.225 GB, free: 12.69 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.701e-05/0.6989, allocations: 4 kB / 1.225 GB, free: 12.69 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.284e-06/0.6989, allocations: 4 kB / 1.225 GB, free: 12.68 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001287/0.7002, allocations: 0.5468 MB / 1.226 GB, free: 12.14 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001669/0.7019, allocations: 0.9977 MB / 1.227 GB, free: 11.09 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006729/0.7026, allocations: 290.3 kB / 1.227 GB, free: 10.79 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006174/0.7032, allocations: 276.6 kB / 1.227 GB, free: 10.52 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.844e-05/0.7032, allocations: 4 kB / 1.227 GB, free: 10.52 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.524e-05/0.7033, allocations: 38.5 kB / 1.227 GB, free: 10.47 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=7): time 2.415e-06/0.7033, allocations: 3.984 kB / 1.227 GB, free: 10.46 MB / 0.9512 GB Notification: Performance of matching and sorting (n=7): time 0.001939/0.7052, allocations: 0.782 MB / 1.228 GB, free: 9.676 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.232e-05/0.7053, allocations: 51.41 kB / 1.228 GB, free: 9.613 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002912/0.7056, allocations: 302.7 kB / 1.228 GB, free: 9.305 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.453e-05/0.7056, allocations: 25.7 kB / 1.228 GB, free: 9.273 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 9.357e-05/0.7057, allocations: 152.4 kB / 1.228 GB, free: 9.121 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 3.892e-05/0.7057, allocations: 27.73 kB / 1.228 GB, free: 9.094 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.395e-05/0.7058, allocations: 37.69 kB / 1.229 GB, free: 9.051 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001065/0.7059, allocations: 334.8 kB / 1.229 GB, free: 8.715 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005969/0.7065, allocations: 259.7 kB / 1.229 GB, free: 8.461 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005828/0.7071, allocations: 259.8 kB / 1.229 GB, free: 8.207 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001078/0.7082, allocations: 444.3 kB / 1.23 GB, free: 7.77 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.7082, allocations: 0 / 1.23 GB, free: 7.77 MB / 0.9512 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.001261/0.7095, allocations: 0.5323 MB / 1.23 GB, free: 7.23 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.672e-05/0.7095, allocations: 11.94 kB / 1.23 GB, free: 7.219 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.87e-06/0.7095, allocations: 0 / 1.23 GB, free: 7.219 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.253e-05/0.7095, allocations: 0 / 1.23 GB, free: 7.219 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004052/0.71, allocations: 91.83 kB / 1.23 GB, free: 7.129 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.38e-06/0.71, allocations: 0.5469 kB / 1.23 GB, free: 7.129 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003254/0.7103, allocations: 79.81 kB / 1.23 GB, free: 7.051 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.477e-05/0.7103, allocations: 7.984 kB / 1.23 GB, free: 7.043 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.000138/0.7105, allocations: 149.7 kB / 1.231 GB, free: 6.887 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.012e-05/0.7105, allocations: 19.86 kB / 1.231 GB, free: 6.867 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.089e-05/0.7106, allocations: 21.72 kB / 1.231 GB, free: 6.844 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.7106, allocations: 0 / 1.231 GB, free: 6.844 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.62e-06/0.7106, allocations: 11.98 kB / 1.231 GB, free: 6.832 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.224e-06/0.7106, allocations: 0 / 1.231 GB, free: 6.832 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004401/0.7111, allocations: 448 kB / 1.231 GB, free: 6.344 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.7111, allocations: 4 kB / 1.231 GB, free: 6.34 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003831/0.7115, allocations: 91.83 kB / 1.231 GB, free: 6.25 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.826e-06/0.7115, allocations: 4 kB / 1.231 GB, free: 6.246 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.254e-05/0.7115, allocations: 7.984 kB / 1.231 GB, free: 6.238 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.464e-06/0.7115, allocations: 0 / 1.231 GB, free: 6.238 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.7115, allocations: 0 / 1.231 GB, free: 6.238 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00133/0.7129, allocations: 0.6394 MB / 1.232 GB, free: 5.582 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 7.974e-05/0.7129, allocations: 96.97 kB / 1.232 GB, free: 5.469 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.932e-05/0.713, allocations: 0 / 1.232 GB, free: 5.469 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003586/0.7134, allocations: 79.86 kB / 1.232 GB, free: 5.391 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.209e-05/0.7134, allocations: 7.984 kB / 1.232 GB, free: 5.383 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.185e-05/0.7135, allocations: 7.984 kB / 1.232 GB, free: 5.375 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0002475/0.7137, allocations: 213.9 kB / 1.232 GB, free: 5.164 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.11e-07/0.7137, allocations: 0 / 1.232 GB, free: 5.164 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0003488/0.7141, allocations: 47.88 kB / 1.232 GB, free: 5.117 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.001855/0.7159, allocations: 1.184 MB / 1.233 GB, free: 3.91 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.001317/0.7173, allocations: 0.5229 MB / 1.234 GB, free: 3.387 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 3.566e-06/0.7173, allocations: 0 / 1.234 GB, free: 3.387 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0006559/0.7179, allocations: 279.7 kB / 1.234 GB, free: 3.113 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003197/0.7183, allocations: 20.5 kB / 1.234 GB, free: 3.094 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006294/0.7246, allocations: 3.888 MB / 1.238 GB, free: 15.13 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000295/0.7249, allocations: 0.7435 MB / 1.239 GB, free: 14.36 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.0001875/0.7251, allocations: 61.41 kB / 1.239 GB, free: 14.3 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001637/0.7253, allocations: 79.39 kB / 1.239 GB, free: 14.22 MB / 0.9669 GB Notification: Performance of SimCode: time 3.41e-07/0.7253, allocations: 0 / 1.239 GB, free: 14.22 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02253/0.7478, allocations: 5.071 MB / 1.244 GB, free: 9.293 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.406/8.154, allocations: 10.42 kB / 1.244 GB, free: 9.285 MB / 0.9669 GB (rm -f Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.pipe >> ../files/Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate_res.csv --start-time 0 --stop-time 7200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 2.88 Buildings_latest_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_NormalizedHeatFlowRate.fmu > Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_NormalizedHeatFlowRate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate_res.csv. Warning: Get data of variable norQSta.canMelt from file Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate_res.csv failed! Error: Could not read variable norQSta.SOC in file Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate_res.csv. Warning: Get data of variable norQSta.SOC from file Buildings_latest_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]