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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001702/0.001702, 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.001996/0.001996, allocations: 192.5 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.346/1.346, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.67/2.67, allocations: 469.4 MB / 0.742 GB, free: 7.664 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001237/0.001237, allocations: 72.03 kB / 0.9083 GB, free: 34.48 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2948/0.296, allocations: 159.1 MB / 1.064 GB, free: 14.5 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate): time 0.003205/0.2993, allocations: 1.98 MB / 1.066 GB, free: 12.5 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.00116/0.3005, allocations: 0.6857 MB / 1.066 GB, free: 11.81 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.893e-05/0.3006, allocations: 4 kB / 1.066 GB, free: 11.8 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001116/0.3007, allocations: 19.8 kB / 1.066 GB, free: 11.79 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 7.872e-05/0.3008, allocations: 23.73 kB / 1.066 GB, free: 11.76 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003039/0.3011, allocations: 79.84 kB / 1.066 GB, free: 11.68 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.000172/0.3013, allocations: 155.5 kB / 1.067 GB, free: 11.53 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001657/0.3015, allocations: 84.59 kB / 1.067 GB, free: 11.45 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001135/0.3016, allocations: 67.7 kB / 1.067 GB, free: 11.38 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001049/0.3017, allocations: 67.64 kB / 1.067 GB, free: 11.31 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.919e-05/0.3017, allocations: 12 kB / 1.067 GB, free: 11.3 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001412/0.3019, allocations: 63.95 kB / 1.067 GB, free: 11.24 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 8.445e-05/0.302, allocations: 67.81 kB / 1.067 GB, free: 11.17 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 9.088e-05/0.3021, allocations: 99.33 kB / 1.067 GB, free: 11.07 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002812/0.3023, allocations: 255.3 kB / 1.067 GB, free: 10.82 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.3024, allocations: 3.984 kB / 1.067 GB, free: 10.82 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.132e-06/0.3024, allocations: 0 / 1.067 GB, free: 10.82 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.25e-06/0.3024, allocations: 0 / 1.067 GB, free: 10.82 MB / 0.8262 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.0007394/0.3031, allocations: 0.5335 MB / 1.068 GB, free: 10.24 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.168e-05/0.3032, allocations: 12.03 kB / 1.068 GB, free: 10.23 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.423e-05/0.3032, allocations: 42.75 kB / 1.068 GB, free: 10.18 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001778/0.305, allocations: 427.8 kB / 1.068 GB, free: 9.758 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003548/0.3054, allocations: 307.8 kB / 1.069 GB, free: 9.418 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.957e-05/0.3055, allocations: 72.19 kB / 1.069 GB, free: 9.336 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.774e-05/0.3055, allocations: 8.375 kB / 1.069 GB, free: 9.328 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008354/0.3063, allocations: 391.1 kB / 1.069 GB, free: 8.941 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.095e-06/0.3064, allocations: 0 / 1.069 GB, free: 8.941 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.83e-05/0.3064, allocations: 11.98 kB / 1.069 GB, free: 8.93 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.318e-06/0.3064, allocations: 3.938 kB / 1.069 GB, free: 8.926 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001281/0.3077, allocations: 0.5392 MB / 1.07 GB, free: 8.387 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001633/0.3093, allocations: 0.9978 MB / 1.07 GB, free: 7.34 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006855/0.31, allocations: 290.3 kB / 1.071 GB, free: 7.047 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000639/0.3107, allocations: 276.6 kB / 1.071 GB, free: 6.773 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.504e-05/0.3107, allocations: 0 / 1.071 GB, free: 6.773 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.404e-05/0.3107, allocations: 38.5 kB / 1.071 GB, free: 6.727 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 2.334e-06/0.3107, allocations: 0 / 1.071 GB, free: 6.727 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.001971/0.3127, allocations: 0.7898 MB / 1.072 GB, free: 5.93 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.898e-05/0.3128, allocations: 51.41 kB / 1.072 GB, free: 5.867 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002907/0.3131, allocations: 302.7 kB / 1.072 GB, free: 5.566 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.478e-05/0.3131, allocations: 25.7 kB / 1.072 GB, free: 5.535 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 9.553e-05/0.3132, allocations: 152.1 kB / 1.072 GB, free: 5.383 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.471e-05/0.3132, allocations: 19.75 kB / 1.072 GB, free: 5.363 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.542e-05/0.3133, allocations: 37.67 kB / 1.072 GB, free: 5.32 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001106/0.3134, allocations: 338.8 kB / 1.073 GB, free: 4.98 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006197/0.3141, allocations: 255.8 kB / 1.073 GB, free: 4.73 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006096/0.3147, allocations: 259.8 kB / 1.073 GB, free: 4.477 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001104/0.3158, allocations: 448.3 kB / 1.074 GB, free: 4.035 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.3158, allocations: 0 / 1.074 GB, free: 4.035 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.001288/0.3171, allocations: 0.5287 MB / 1.074 GB, free: 3.5 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.499e-05/0.3171, allocations: 8 kB / 1.074 GB, free: 3.492 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.008e-06/0.3171, allocations: 0 / 1.074 GB, free: 3.492 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.888e-06/0.3172, allocations: 0 / 1.074 GB, free: 3.492 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004004/0.3176, allocations: 91.83 kB / 1.074 GB, free: 3.402 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.129e-06/0.3176, allocations: 4 kB / 1.074 GB, free: 3.398 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003256/0.3179, allocations: 75.8 kB / 1.074 GB, free: 3.324 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.347e-05/0.3179, allocations: 7.984 kB / 1.074 GB, free: 3.316 MB / 0.8262 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.000134/0.3181, allocations: 150.2 kB / 1.074 GB, free: 3.16 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.956e-05/0.3181, allocations: 19.72 kB / 1.074 GB, free: 3.141 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.762e-05/0.3182, allocations: 25.7 kB / 1.075 GB, free: 3.117 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.987e-06/0.3182, allocations: 4 kB / 1.075 GB, free: 3.113 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.848e-06/0.3182, allocations: 0 / 1.075 GB, free: 3.113 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.594e-06/0.3182, allocations: 0 / 1.075 GB, free: 3.113 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004493/0.3187, allocations: 440.3 kB / 1.075 GB, free: 2.629 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.3187, allocations: 0 / 1.075 GB, free: 2.629 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003783/0.3191, allocations: 91.83 kB / 1.075 GB, free: 2.539 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.445e-06/0.3191, allocations: 0 / 1.075 GB, free: 2.539 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.509e-05/0.3191, allocations: 11.98 kB / 1.075 GB, free: 2.527 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.3191, allocations: 80 / 1.075 GB, free: 2.527 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.3191, allocations: 3.984 kB / 1.075 GB, free: 2.523 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001325/0.3205, allocations: 0.6354 MB / 1.076 GB, free: 1.871 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.335e-05/0.3205, allocations: 112.7 kB / 1.076 GB, free: 1.742 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.037e-05/0.3206, allocations: 4 kB / 1.076 GB, free: 1.738 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000356/0.3209, allocations: 71.86 kB / 1.076 GB, free: 1.668 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.407e-05/0.321, allocations: 8 kB / 1.076 GB, free: 1.66 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.479e-05/0.321, allocations: 15.97 kB / 1.076 GB, free: 1.645 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0002081/0.3212, allocations: 217.9 kB / 1.076 GB, free: 1.434 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.7e-07/0.3212, allocations: 0 / 1.076 GB, free: 1.434 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003016/0.3216, allocations: 43.94 kB / 1.076 GB, free: 1.391 MB / 0.8262 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.0016/0.3232, allocations: 1.169 MB / 1.077 GB, free: 200 kB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001296/0.3245, allocations: 0.5346 MB / 1.078 GB, free: 15.66 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.3245, allocations: 0 / 1.078 GB, free: 15.66 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0006381/0.3251, allocations: 279.7 kB / 1.078 GB, free: 15.39 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002824/0.3254, allocations: 13.97 kB / 1.078 GB, free: 15.38 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006026/0.3315, allocations: 3.886 MB / 1.082 GB, free: 11.4 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003077/0.3318, allocations: 0.7513 MB / 1.083 GB, free: 10.62 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.000217/0.332, allocations: 57.42 kB / 1.083 GB, free: 10.57 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001692/0.3322, allocations: 83.38 kB / 1.083 GB, free: 10.49 MB / 0.8419 GB Notification: Performance of SimCode: time 4.81e-07/0.3322, allocations: 0 / 1.083 GB, free: 10.49 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02045/0.3526, allocations: 5 MB / 1.088 GB, free: 5.609 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.279/7.632, allocations: 16.14 kB / 1.088 GB, free: 5.602 MB / 0.8419 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]