Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_NormalizedHeatFlowRate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate,fileNamePrefix="Buildings_9_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.00465/0.00465, allocations: 100.1 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.001117/0.001117, allocations: 199.2 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.284/1.284, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.245/2.245, allocations: 390.2 MB / 0.6648 GB, free: 0.6445 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001251/0.001251, allocations: 63.91 kB / 0.9504 GB, free: 8.141 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6777/0.6789, allocations: 140.4 MB / 1.087 GB, free: 5.156 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate): time 0.00265/0.6816, allocations: 1.985 MB / 1.089 GB, free: 3.766 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0009717/0.6826, allocations: 0.6853 MB / 1.09 GB, free: 3.281 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.802e-05/0.6827, allocations: 3.281 kB / 1.09 GB, free: 3.281 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001191/0.6828, allocations: 15.8 kB / 1.09 GB, free: 3.27 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 7.488e-05/0.6829, allocations: 26.06 kB / 1.09 GB, free: 3.25 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003012/0.6832, allocations: 89.91 kB / 1.09 GB, free: 3.203 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001635/0.6834, allocations: 144.3 kB / 1.09 GB, free: 3.137 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001619/0.6836, allocations: 85.84 kB / 1.09 GB, free: 3.09 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 9.833e-05/0.6837, allocations: 75.61 kB / 1.091 GB, free: 3.043 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001059/0.6838, allocations: 65.53 kB / 1.091 GB, free: 3.008 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.874e-05/0.6838, allocations: 14.78 kB / 1.091 GB, free: 3.008 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001389/0.684, allocations: 59.77 kB / 1.091 GB, free: 2.996 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 8.528e-05/0.6841, allocations: 69.38 kB / 1.091 GB, free: 2.965 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 7.271e-05/0.6842, allocations: 99.14 kB / 1.091 GB, free: 2.891 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.000297/0.6845, allocations: 262.8 kB / 1.091 GB, free: 2.789 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.6845, allocations: 0 / 1.091 GB, free: 2.789 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.252e-06/0.6845, allocations: 0.9062 kB / 1.091 GB, free: 2.789 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.039e-06/0.6845, allocations: 0 / 1.091 GB, free: 2.789 MB / 0.8575 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.000681/0.6852, allocations: 0.5345 MB / 1.092 GB, free: 2.312 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.638e-05/0.6852, allocations: 9.625 kB / 1.092 GB, free: 2.312 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.297e-05/0.6853, allocations: 49.58 kB / 1.092 GB, free: 2.262 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001799/0.6871, allocations: 420.5 kB / 1.092 GB, free: 2.238 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003461/0.6874, allocations: 316.3 kB / 1.092 GB, free: 1.965 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.24e-05/0.6875, allocations: 70.66 kB / 1.092 GB, free: 1.898 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.518e-05/0.6875, allocations: 11.22 kB / 1.092 GB, free: 1.895 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008696/0.6884, allocations: 393.6 kB / 1.093 GB, free: 1.777 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.01e-05/0.6884, allocations: 0.8125 kB / 1.093 GB, free: 1.777 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.5e-05/0.6885, allocations: 5.453 kB / 1.093 GB, free: 1.773 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.292e-06/0.6885, allocations: 3.031 kB / 1.093 GB, free: 1.773 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001332/0.6898, allocations: 0.5398 MB / 1.093 GB, free: 1.664 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001662/0.6915, allocations: 1.001 MB / 1.094 GB, free: 1.156 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007232/0.6922, allocations: 303.6 kB / 1.095 GB, free: 1.066 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006677/0.6929, allocations: 266.3 kB / 1.095 GB, free: 1.012 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.084e-05/0.6929, allocations: 5.594 kB / 1.095 GB, free: 1.008 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.82e-05/0.693, allocations: 36.38 kB / 1.095 GB, free: 0.9648 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.383e-06/0.693, allocations: 0 / 1.095 GB, free: 0.9648 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.002117/0.6951, allocations: 0.7848 MB / 1.096 GB, free: 0.7812 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.498e-05/0.6951, allocations: 52.41 kB / 1.096 GB, free: 0.7188 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003087/0.6954, allocations: 298.3 kB / 1.096 GB, free: 0.5664 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.296e-05/0.6955, allocations: 25.7 kB / 1.096 GB, free: 0.5352 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 7.759e-05/0.6956, allocations: 154.2 kB / 1.096 GB, free: 412 kB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.32e-05/0.6956, allocations: 25.28 kB / 1.096 GB, free: 392 kB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.716e-05/0.6957, allocations: 39.7 kB / 1.096 GB, free: 368 kB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.189e-05/0.6957, allocations: 335 kB / 1.097 GB, free: 36 kB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006516/0.6964, allocations: 260.2 kB / 1.097 GB, free: 15.98 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006306/0.697, allocations: 257.1 kB / 1.097 GB, free: 15.93 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001178/0.6982, allocations: 445.8 kB / 1.097 GB, free: 15.84 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.013e-06/0.6983, allocations: 0 / 1.097 GB, free: 15.84 MB / 0.8731 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.001368/0.6996, allocations: 0.535 MB / 1.098 GB, free: 15.7 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.428e-05/0.6996, allocations: 5.734 kB / 1.098 GB, free: 15.7 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.468e-06/0.6997, allocations: 0 / 1.098 GB, free: 15.7 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.296e-05/0.6997, allocations: 1.375 kB / 1.098 GB, free: 15.7 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004207/0.7001, allocations: 92.62 kB / 1.098 GB, free: 15.7 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.34e-06/0.7001, allocations: 0.5625 kB / 1.098 GB, free: 15.7 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003355/0.7005, allocations: 73.64 kB / 1.098 GB, free: 15.7 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.637e-05/0.7005, allocations: 8.922 kB / 1.098 GB, free: 15.7 MB / 0.8731 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.0001468/0.7006, allocations: 143 kB / 1.098 GB, free: 15.57 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.404e-05/0.7007, allocations: 20.44 kB / 1.098 GB, free: 15.55 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.719e-05/0.7008, allocations: 24.98 kB / 1.098 GB, free: 15.54 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.465e-06/0.7008, allocations: 1.734 kB / 1.098 GB, free: 15.54 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.7008, allocations: 5.562 kB / 1.098 GB, free: 15.54 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.534e-06/0.7008, allocations: 4.5 kB / 1.098 GB, free: 15.54 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000499/0.7013, allocations: 439.9 kB / 1.099 GB, free: 15.25 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.507e-06/0.7013, allocations: 1.156 kB / 1.099 GB, free: 15.25 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004065/0.7017, allocations: 96 kB / 1.099 GB, free: 15.25 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.168e-06/0.7017, allocations: 4.688 kB / 1.099 GB, free: 15.24 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.526e-05/0.7018, allocations: 8.297 kB / 1.099 GB, free: 15.24 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.7018, allocations: 3.938 kB / 1.099 GB, free: 15.24 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.7018, allocations: 1.812 kB / 1.099 GB, free: 15.24 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001439/0.7032, allocations: 0.6279 MB / 1.099 GB, free: 15 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 7.489e-05/0.7033, allocations: 103.6 kB / 1.1 GB, free: 14.89 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.84e-05/0.7034, allocations: 0.9688 kB / 1.1 GB, free: 14.89 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003783/0.7037, allocations: 77.17 kB / 1.1 GB, free: 14.88 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.96e-05/0.7038, allocations: 5.641 kB / 1.1 GB, free: 14.88 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.895e-05/0.7038, allocations: 12.45 kB / 1.1 GB, free: 14.88 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.000283/0.7041, allocations: 221.9 kB / 1.1 GB, free: 14.76 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.71e-07/0.7041, allocations: 0 / 1.1 GB, free: 14.76 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0003397/0.7045, allocations: 32.62 kB / 1.1 GB, free: 14.76 MB / 0.8731 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.001719/0.7062, allocations: 1.18 MB / 1.101 GB, free: 13.99 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001328/0.7075, allocations: 0.5245 MB / 1.102 GB, free: 13.89 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.7076, allocations: 4 kB / 1.102 GB, free: 13.88 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0006554/0.7082, allocations: 274.5 kB / 1.102 GB, free: 13.83 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000294/0.7085, allocations: 14.61 kB / 1.102 GB, free: 13.82 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006358/0.7149, allocations: 3.891 MB / 1.106 GB, free: 11.95 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003015/0.7152, allocations: 0.7456 MB / 1.106 GB, free: 11.25 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001967/0.7154, allocations: 56.83 kB / 1.106 GB, free: 11.23 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001681/0.7156, allocations: 82.42 kB / 1.107 GB, free: 11.18 MB / 0.8731 GB Notification: Performance of SimCode: time 3.5e-07/0.7156, allocations: 1.375 kB / 1.107 GB, free: 11.18 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02205/0.7377, allocations: 5.065 MB / 1.111 GB, free: 10.58 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.406/8.143, allocations: 18.17 kB / 1.111 GB, free: 10.57 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.pipe ; mkfifo Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.pipe >> ../files/Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.sim & python3 -m fmpy simulate --output-file Buildings_9_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_9_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_NormalizedHeatFlowRate.fmu > Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_NormalizedHeatFlowRate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate_res.csv. Warning: Get data of variable norQSta.canMelt from file Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate_res.csv failed! Error: Could not read variable norQSta.SOC in file Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate_res.csv. Warning: Get data of variable norQSta.SOC from file Buildings_9_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]