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.001178/0.001178, 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.001201/0.001201, allocations: 197 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.321/1.321, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.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.312/2.312, allocations: 390.3 MB / 0.6647 GB, free: 444 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001463/0.001464, allocations: 67.89 kB / 0.8127 GB, free: 14.33 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5712/0.5727, allocations: 140.4 MB / 0.9497 GB, free: 9.059 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate): time 0.002823/0.5756, allocations: 1.967 MB / 0.9517 GB, free: 7.508 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001022/0.5766, allocations: 0.679 MB / 0.9523 GB, free: 6.969 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.045e-05/0.5767, allocations: 2.562 kB / 0.9523 GB, free: 6.969 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001123/0.5768, allocations: 24.92 kB / 0.9523 GB, free: 6.945 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.764e-05/0.5769, allocations: 26.5 kB / 0.9524 GB, free: 6.922 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002717/0.5772, allocations: 88.97 kB / 0.9525 GB, free: 6.855 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001462/0.5774, allocations: 145.3 kB / 0.9526 GB, free: 6.77 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001511/0.5775, allocations: 85.66 kB / 0.9527 GB, free: 6.719 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.434e-05/0.5776, allocations: 67.14 kB / 0.9527 GB, free: 6.672 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.952e-05/0.5777, allocations: 63.52 kB / 0.9528 GB, free: 6.625 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.876e-05/0.5777, allocations: 14.47 kB / 0.9528 GB, free: 6.625 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001322/0.5779, allocations: 63.36 kB / 0.9529 GB, free: 6.598 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 7.244e-05/0.578, allocations: 77.67 kB / 0.953 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.333e-05/0.578, allocations: 88.84 kB / 0.953 GB, free: 6.473 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002222/0.5782, allocations: 257.1 kB / 0.9533 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.006e-06/0.5783, allocations: 0 / 0.9533 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.133e-06/0.5783, allocations: 1.344 kB / 0.9533 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.009e-06/0.5783, allocations: 0 / 0.9533 GB, free: 6.285 MB / 0.7169 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.0006213/0.5789, allocations: 0.5373 MB / 0.9538 GB, free: 5.773 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.77e-05/0.5789, allocations: 14.44 kB / 0.9538 GB, free: 5.77 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.709e-05/0.579, allocations: 42.06 kB / 0.9539 GB, free: 5.723 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001696/0.5807, allocations: 426.3 kB / 0.9543 GB, free: 5.504 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002927/0.581, allocations: 319.7 kB / 0.9546 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.617e-05/0.5811, allocations: 68.66 kB / 0.9546 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.842e-05/0.5811, allocations: 11.47 kB / 0.9547 GB, free: 5.125 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007503/0.5819, allocations: 394.1 kB / 0.955 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.745e-06/0.5819, allocations: 4 kB / 0.955 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.357e-05/0.5819, allocations: 0 / 0.955 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/0.5819, allocations: 3.812 kB / 0.955 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001174/0.5831, allocations: 0.5366 MB / 0.9556 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001481/0.5846, allocations: 1.006 MB / 0.9565 GB, free: 3.941 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006068/0.5852, allocations: 293.7 kB / 0.9568 GB, free: 3.797 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005651/0.5858, allocations: 276.8 kB / 0.9571 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.802e-05/0.5858, allocations: 1.281 kB / 0.9571 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.429e-05/0.5858, allocations: 31.88 kB / 0.9571 GB, free: 3.629 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.382e-06/0.5858, allocations: 0 / 0.9571 GB, free: 3.629 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.001815/0.5877, allocations: 0.7835 MB / 0.9579 GB, free: 3.254 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.154e-05/0.5877, allocations: 52.38 kB / 0.9579 GB, free: 3.191 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002517/0.588, allocations: 299 kB / 0.9582 GB, free: 2.996 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.839e-05/0.588, allocations: 30.7 kB / 0.9582 GB, free: 2.961 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 7.768e-05/0.5881, allocations: 149.8 kB / 0.9584 GB, free: 2.824 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.191e-05/0.5881, allocations: 26.02 kB / 0.9584 GB, free: 2.801 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.841e-05/0.5882, allocations: 36.55 kB / 0.9584 GB, free: 2.77 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.287e-05/0.5882, allocations: 341.6 kB / 0.9588 GB, free: 2.434 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005721/0.5888, allocations: 258.2 kB / 0.959 GB, free: 2.32 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005496/0.5894, allocations: 256.1 kB / 0.9593 GB, free: 2.211 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001011/0.5904, allocations: 440.3 kB / 0.9597 GB, free: 2.012 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.5904, allocations: 3.938 kB / 0.9597 GB, free: 2.008 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.001157/0.5916, allocations: 0.5386 MB / 0.9602 GB, free: 1.738 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.427e-05/0.5916, allocations: 5.156 kB / 0.9602 GB, free: 1.738 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.478e-06/0.5916, allocations: 3.938 kB / 0.9602 GB, free: 1.734 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.289e-05/0.5916, allocations: 1.156 kB / 0.9602 GB, free: 1.734 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000398/0.592, allocations: 93.42 kB / 0.9603 GB, free: 1.688 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.29e-06/0.592, allocations: 0 / 0.9603 GB, free: 1.688 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003046/0.5924, allocations: 78.61 kB / 0.9604 GB, free: 1.645 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.404e-05/0.5924, allocations: 8.203 kB / 0.9604 GB, free: 1.641 MB / 0.7169 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.0001057/0.5925, allocations: 140.9 kB / 0.9605 GB, free: 1.508 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.768e-05/0.5926, allocations: 20.41 kB / 0.9605 GB, free: 1.496 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.668e-05/0.5926, allocations: 26.83 kB / 0.9606 GB, free: 1.484 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.5926, allocations: 9.547 kB / 0.9606 GB, free: 1.477 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-06/0.5926, allocations: 0 / 0.9606 GB, free: 1.477 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.184e-06/0.5926, allocations: 0 / 0.9606 GB, free: 1.477 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003658/0.593, allocations: 444.1 kB / 0.961 GB, free: 1.125 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.593, allocations: 0 / 0.961 GB, free: 1.125 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000362/0.5934, allocations: 97.23 kB / 0.9611 GB, free: 1.074 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.445e-06/0.5934, allocations: 1.344 kB / 0.9611 GB, free: 1.074 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.988e-05/0.5934, allocations: 6.609 kB / 0.9611 GB, free: 1.07 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.5934, allocations: 0 / 0.9611 GB, free: 1.07 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.5934, allocations: 0 / 0.9611 GB, free: 1.07 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001194/0.5946, allocations: 0.6312 MB / 0.9617 GB, free: 0.6992 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.499e-05/0.5947, allocations: 104.7 kB / 0.9618 GB, free: 0.5859 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.834e-05/0.5947, allocations: 1.156 kB / 0.9618 GB, free: 0.5859 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000335/0.5951, allocations: 75.58 kB / 0.9619 GB, free: 0.5469 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.269e-05/0.5951, allocations: 7.125 kB / 0.9619 GB, free: 0.543 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.093e-05/0.5951, allocations: 7.828 kB / 0.9619 GB, free: 0.5391 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001763/0.5953, allocations: 218.4 kB / 0.9621 GB, free: 404 kB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5953, allocations: 0 / 0.9621 GB, free: 404 kB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000307/0.5956, allocations: 37.41 kB / 0.9622 GB, free: 400 kB / 0.7169 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.001587/0.5972, allocations: 1.188 MB / 0.9633 GB, free: 15.47 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.001303/0.5985, allocations: 0.5298 MB / 0.9638 GB, free: 15.23 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.5986, allocations: 0 / 0.9638 GB, free: 15.23 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0006419/0.5992, allocations: 272.7 kB / 0.9641 GB, free: 15.12 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003014/0.5995, allocations: 19.11 kB / 0.9641 GB, free: 15.11 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006153/0.6057, allocations: 3.89 MB / 0.9679 GB, free: 12.67 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00031/0.606, allocations: 0.7598 MB / 0.9687 GB, free: 11.93 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0002238/0.6063, allocations: 51.58 kB / 0.9687 GB, free: 11.91 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001818/0.6064, allocations: 83.09 kB / 0.9688 GB, free: 11.84 MB / 0.7325 GB Notification: Performance of SimCode: time 4.2e-07/0.6065, allocations: 0 / 0.9688 GB, free: 11.84 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02045/0.6269, allocations: 5.005 MB / 0.9737 GB, free: 8.945 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.222/7.849, allocations: 11.55 kB / 0.9737 GB, free: 8.934 MB / 0.7325 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]