Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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.NormalizedHeatFlowRate,fileNamePrefix="Buildings_10_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_NormalizedHeatFlowRate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate,fileNamePrefix="Buildings_10_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.0017/0.0017, allocations: 108 kB / 15.61 MB, free: 152 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.001997/0.001997, allocations: 193.8 kB / 16.53 MB, free: 6.664 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.355/1.355, allocations: 222.9 MB / 240.2 MB, free: 4.402 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.553/2.553, allocations: 437 MB / 0.7104 GB, free: 5.066 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001328/0.001328, allocations: 75.88 kB / 0.8694 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5256/0.5269, allocations: 151.6 MB / 1.017 GB, free: 2.488 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate): time 0.003221/0.5302, allocations: 1.982 MB / 1.019 GB, free: 500 kB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001175/0.5314, allocations: 0.6787 MB / 1.02 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001194/0.5315, allocations: 11.94 kB / 1.02 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001207/0.5317, allocations: 15.8 kB / 1.02 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 8.062e-05/0.5318, allocations: 27.73 kB / 1.02 GB, free: 15.75 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003265/0.5321, allocations: 87.83 kB / 1.02 GB, free: 15.66 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001884/0.5323, allocations: 155.5 kB / 1.02 GB, free: 15.51 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001666/0.5325, allocations: 76.61 kB / 1.02 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001035/0.5326, allocations: 63.77 kB / 1.02 GB, free: 15.37 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001103/0.5327, allocations: 71.62 kB / 1.021 GB, free: 15.3 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.987e-05/0.5327, allocations: 15.94 kB / 1.021 GB, free: 15.29 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000145/0.5329, allocations: 63.89 kB / 1.021 GB, free: 15.22 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 8.817e-05/0.533, allocations: 75.8 kB / 1.021 GB, free: 15.15 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 7.919e-05/0.5331, allocations: 87.41 kB / 1.021 GB, free: 15.06 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002821/0.5334, allocations: 257.3 kB / 1.021 GB, free: 14.81 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.5334, allocations: 0 / 1.021 GB, free: 14.81 MB / 0.7794 GB Notification: Performance of FrontEnd: time 3.497e-06/0.5334, allocations: 0 / 1.021 GB, free: 14.81 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.851e-06/0.5334, allocations: 3.938 kB / 1.021 GB, free: 14.81 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0007712/0.5342, allocations: 0.5414 MB / 1.022 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4e-05/0.5342, allocations: 8.031 kB / 1.022 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.532e-05/0.5343, allocations: 46.73 kB / 1.022 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001732/0.536, allocations: 419.9 kB / 1.022 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003566/0.5364, allocations: 315.7 kB / 1.022 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.671e-05/0.5365, allocations: 72.17 kB / 1.022 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.175e-05/0.5365, allocations: 12.38 kB / 1.022 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008313/0.5374, allocations: 384.3 kB / 1.023 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.059e-05/0.5374, allocations: 4 kB / 1.023 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.587e-05/0.5374, allocations: 4 kB / 1.023 GB, free: 12.92 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.728e-06/0.5374, allocations: 4 kB / 1.023 GB, free: 12.92 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001259/0.5387, allocations: 0.5434 MB / 1.023 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001677/0.5404, allocations: 0.9937 MB / 1.024 GB, free: 11.33 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006907/0.5411, allocations: 294.3 kB / 1.025 GB, free: 11.03 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006064/0.5417, allocations: 272.6 kB / 1.025 GB, free: 10.76 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.124e-05/0.5417, allocations: 8.141 kB / 1.025 GB, free: 10.75 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.458e-05/0.5418, allocations: 34.56 kB / 1.025 GB, free: 10.71 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.422e-06/0.5418, allocations: 0 / 1.025 GB, free: 10.71 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.001917/0.5437, allocations: 0.7896 MB / 1.026 GB, free: 9.914 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.258e-05/0.5437, allocations: 55.41 kB / 1.026 GB, free: 9.848 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002791/0.544, allocations: 290.7 kB / 1.026 GB, free: 9.555 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.448e-05/0.544, allocations: 25.7 kB / 1.026 GB, free: 9.523 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 9.371e-05/0.5441, allocations: 156.1 kB / 1.026 GB, free: 9.367 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.871e-05/0.5442, allocations: 31.64 kB / 1.026 GB, free: 9.336 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.373e-05/0.5443, allocations: 41.66 kB / 1.026 GB, free: 9.289 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001012/0.5444, allocations: 334.8 kB / 1.026 GB, free: 8.953 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006082/0.545, allocations: 263.7 kB / 1.027 GB, free: 8.695 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005803/0.5456, allocations: 255.8 kB / 1.027 GB, free: 8.445 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00106/0.5467, allocations: 444.8 kB / 1.027 GB, free: 8.008 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.5467, allocations: 0 / 1.027 GB, free: 8.008 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.001247/0.5479, allocations: 0.5282 MB / 1.028 GB, free: 7.473 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.569e-05/0.548, allocations: 11.98 kB / 1.028 GB, free: 7.461 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.548, allocations: 0 / 1.028 GB, free: 7.461 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.213e-05/0.548, allocations: 4 kB / 1.028 GB, free: 7.457 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004001/0.5484, allocations: 87.83 kB / 1.028 GB, free: 7.371 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.031e-06/0.5484, allocations: 3.938 kB / 1.028 GB, free: 7.367 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003143/0.5487, allocations: 71.88 kB / 1.028 GB, free: 7.297 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.693e-05/0.5488, allocations: 11.98 kB / 1.028 GB, free: 7.285 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: 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.0001411/0.5489, allocations: 145.7 kB / 1.028 GB, free: 7.133 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.262e-05/0.549, allocations: 23.72 kB / 1.028 GB, free: 7.109 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.14e-05/0.549, allocations: 25.7 kB / 1.028 GB, free: 7.086 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.878e-06/0.549, allocations: 4 kB / 1.028 GB, free: 7.082 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.668e-06/0.549, allocations: 0 / 1.028 GB, free: 7.082 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.549, allocations: 0 / 1.028 GB, free: 7.082 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004355/0.5495, allocations: 440.4 kB / 1.029 GB, free: 6.602 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.5495, allocations: 0 / 1.029 GB, free: 6.602 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003788/0.5499, allocations: 91.83 kB / 1.029 GB, free: 6.512 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.916e-06/0.5499, allocations: 0 / 1.029 GB, free: 6.512 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.187e-05/0.5499, allocations: 7.984 kB / 1.029 GB, free: 6.504 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.824e-06/0.5499, allocations: 0 / 1.029 GB, free: 6.504 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.5499, allocations: 3.984 kB / 1.029 GB, free: 6.5 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001317/0.5513, allocations: 0.6276 MB / 1.029 GB, free: 5.855 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 7.808e-05/0.5513, allocations: 104.8 kB / 1.03 GB, free: 5.734 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.151e-05/0.5514, allocations: 4 kB / 1.03 GB, free: 5.73 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003468/0.5517, allocations: 75.88 kB / 1.03 GB, free: 5.656 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.686e-05/0.5518, allocations: 7.984 kB / 1.03 GB, free: 5.648 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.343e-05/0.5518, allocations: 15.92 kB / 1.03 GB, free: 5.633 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0002146/0.5521, allocations: 217.9 kB / 1.03 GB, free: 5.422 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5521, allocations: 0 / 1.03 GB, free: 5.422 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003157/0.5524, allocations: 35.91 kB / 1.03 GB, free: 5.387 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: 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.00157/0.554, allocations: 1.177 MB / 1.031 GB, free: 4.184 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.001255/0.5552, allocations: 0.5346 MB / 1.032 GB, free: 3.648 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.993e-06/0.5552, allocations: 0 / 1.032 GB, free: 3.648 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0006259/0.5559, allocations: 279.7 kB / 1.032 GB, free: 3.375 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002867/0.5562, allocations: 21.06 kB / 1.032 GB, free: 3.355 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00587/0.5621, allocations: 3.881 MB / 1.036 GB, free: 15.39 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002688/0.5623, allocations: 0.7552 MB / 1.036 GB, free: 14.61 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0002015/0.5626, allocations: 49.42 kB / 1.036 GB, free: 14.57 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000157/0.5627, allocations: 83.38 kB / 1.036 GB, free: 14.48 MB / 0.795 GB Notification: Performance of SimCode: time 4.1e-07/0.5627, allocations: 4 kB / 1.036 GB, free: 14.48 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02057/0.5833, allocations: 5.006 MB / 1.041 GB, free: 9.598 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.171/7.754, allocations: 7.328 kB / 1.041 GB, free: 9.594 MB / 0.795 GB (rm -f Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.pipe ; mkfifo Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.pipe >> ../files/Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.sim & python3 -m fmpy simulate --output-file Buildings_10_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_10_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_NormalizedHeatFlowRate.fmu > Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_NormalizedHeatFlowRate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate_res.csv. Warning: Get data of variable norQSta.canMelt from file Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate_res.csv failed! Error: Could not read variable norQSta.SOC in file Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate_res.csv. Warning: Get data of variable norQSta.SOC from file Buildings_10_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]