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.007766/0.007766, allocations: 98.47 kB / 15.73 MB, free: 6.07 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.001925/0.001925, allocations: 192.3 kB / 16.67 MB, free: 5.977 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.333/1.333, allocations: 222.9 MB / 240.4 MB, free: 4.18 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.334/2.334, allocations: 390.2 MB / 0.6648 GB, free: 208 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001223/0.001223, allocations: 64.31 kB / 0.9504 GB, free: 5.895 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2404/0.2416, allocations: 140.4 MB / 1.087 GB, free: 2.023 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate): time 0.003049/0.2447, allocations: 1.973 MB / 1.089 GB, free: 28 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001196/0.2459, allocations: 0.6866 MB / 1.09 GB, free: 15.33 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001024/0.246, allocations: 0 / 1.09 GB, free: 15.33 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001191/0.2462, allocations: 19.8 kB / 1.09 GB, free: 15.31 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 9.069e-05/0.2463, allocations: 35.72 kB / 1.09 GB, free: 15.28 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003192/0.2466, allocations: 83.78 kB / 1.09 GB, free: 15.2 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001816/0.2468, allocations: 155.6 kB / 1.09 GB, free: 15.04 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001604/0.2469, allocations: 84.59 kB / 1.09 GB, free: 14.96 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001086/0.2471, allocations: 59.72 kB / 1.091 GB, free: 14.9 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000102/0.2472, allocations: 71.62 kB / 1.091 GB, free: 14.83 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.883e-05/0.2472, allocations: 16 kB / 1.091 GB, free: 14.82 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001338/0.2473, allocations: 55.95 kB / 1.091 GB, free: 14.76 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 8.501e-05/0.2474, allocations: 71.8 kB / 1.091 GB, free: 14.69 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 8.157e-05/0.2475, allocations: 99.28 kB / 1.091 GB, free: 14.59 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002982/0.2478, allocations: 267.1 kB / 1.091 GB, free: 14.33 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.2478, allocations: 0 / 1.091 GB, free: 14.33 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.172e-06/0.2479, allocations: 0 / 1.091 GB, free: 14.33 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.861e-06/0.2479, allocations: 0 / 1.091 GB, free: 14.33 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.0007527/0.2486, allocations: 0.5389 MB / 1.092 GB, free: 13.75 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.481e-05/0.2487, allocations: 19.95 kB / 1.092 GB, free: 13.73 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.807e-05/0.2487, allocations: 42.75 kB / 1.092 GB, free: 13.68 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00178/0.2505, allocations: 432 kB / 1.092 GB, free: 13.25 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004288/0.2509, allocations: 308 kB / 1.092 GB, free: 12.91 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.274e-05/0.251, allocations: 80.12 kB / 1.092 GB, free: 12.82 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.259e-05/0.2511, allocations: 4.375 kB / 1.092 GB, free: 12.82 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000866/0.252, allocations: 387.1 kB / 1.093 GB, free: 12.44 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.779e-06/0.252, allocations: 4 kB / 1.093 GB, free: 12.43 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.647e-05/0.252, allocations: 4 kB / 1.093 GB, free: 12.43 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.755e-06/0.252, allocations: 11.98 kB / 1.093 GB, free: 12.42 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001324/0.2534, allocations: 0.5275 MB / 1.093 GB, free: 11.89 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001778/0.2551, allocations: 1.002 MB / 1.094 GB, free: 10.84 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006839/0.2558, allocations: 290.3 kB / 1.095 GB, free: 10.54 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006343/0.2565, allocations: 276.8 kB / 1.095 GB, free: 10.27 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.061e-05/0.2565, allocations: 3.984 kB / 1.095 GB, free: 10.27 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.212e-05/0.2566, allocations: 34.5 kB / 1.095 GB, free: 10.22 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.353e-06/0.2566, allocations: 0 / 1.095 GB, free: 10.22 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.001897/0.2585, allocations: 0.7898 MB / 1.096 GB, free: 9.426 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.236e-05/0.2585, allocations: 51.41 kB / 1.096 GB, free: 9.363 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002795/0.2588, allocations: 298.7 kB / 1.096 GB, free: 9.066 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.448e-05/0.2588, allocations: 25.7 kB / 1.096 GB, free: 9.035 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 9.346e-05/0.2589, allocations: 156.2 kB / 1.096 GB, free: 8.879 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.627e-05/0.259, allocations: 27.78 kB / 1.096 GB, free: 8.852 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.232e-05/0.2591, allocations: 37.67 kB / 1.096 GB, free: 8.809 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001092/0.2592, allocations: 342.8 kB / 1.097 GB, free: 8.465 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006/0.2598, allocations: 255.8 kB / 1.097 GB, free: 8.215 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005881/0.2604, allocations: 259.8 kB / 1.097 GB, free: 7.961 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001094/0.2615, allocations: 436.4 kB / 1.097 GB, free: 7.531 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.504e-06/0.2615, allocations: 3.938 kB / 1.097 GB, free: 7.527 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.001258/0.2627, allocations: 0.5284 MB / 1.098 GB, free: 6.992 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.571e-05/0.2628, allocations: 8 kB / 1.098 GB, free: 6.984 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.458e-06/0.2628, allocations: 0 / 1.098 GB, free: 6.984 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.394e-05/0.2628, allocations: 4 kB / 1.098 GB, free: 6.98 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004062/0.2632, allocations: 91.83 kB / 1.098 GB, free: 6.891 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.889e-06/0.2632, allocations: 4 kB / 1.098 GB, free: 6.887 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003174/0.2636, allocations: 75.8 kB / 1.098 GB, free: 6.812 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.404e-05/0.2636, allocations: 7.984 kB / 1.098 GB, free: 6.805 MB / 0.8575 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.0001337/0.2637, allocations: 145.8 kB / 1.098 GB, free: 6.652 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.962e-05/0.2638, allocations: 19.86 kB / 1.098 GB, free: 6.633 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.247e-05/0.2638, allocations: 29.64 kB / 1.098 GB, free: 6.605 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.424e-06/0.2638, allocations: 0 / 1.098 GB, free: 6.605 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.2639, allocations: 4 kB / 1.098 GB, free: 6.602 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.355e-06/0.2639, allocations: 0 / 1.098 GB, free: 6.602 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004391/0.2643, allocations: 440.4 kB / 1.099 GB, free: 6.121 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.2643, allocations: 0 / 1.099 GB, free: 6.121 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003935/0.2647, allocations: 95.83 kB / 1.099 GB, free: 6.027 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.464e-06/0.2647, allocations: 0 / 1.099 GB, free: 6.027 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.421e-05/0.2648, allocations: 11.98 kB / 1.099 GB, free: 6.016 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.2648, allocations: 0 / 1.099 GB, free: 6.016 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.2648, allocations: 0 / 1.099 GB, free: 6.016 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001307/0.2661, allocations: 0.6283 MB / 1.099 GB, free: 5.371 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 7.307e-05/0.2662, allocations: 101 kB / 1.1 GB, free: 5.254 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.847e-05/0.2662, allocations: 0 / 1.1 GB, free: 5.254 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003495/0.2666, allocations: 75.86 kB / 1.1 GB, free: 5.18 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.287e-05/0.2666, allocations: 7.938 kB / 1.1 GB, free: 5.172 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.425e-05/0.2666, allocations: 11.97 kB / 1.1 GB, free: 5.16 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0002051/0.2669, allocations: 225.9 kB / 1.1 GB, free: 4.938 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.51e-07/0.2669, allocations: 3.938 kB / 1.1 GB, free: 4.934 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003126/0.2672, allocations: 43.89 kB / 1.1 GB, free: 4.891 MB / 0.8575 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.001603/0.2688, allocations: 1.177 MB / 1.101 GB, free: 3.688 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.001265/0.2701, allocations: 0.5307 MB / 1.102 GB, free: 3.156 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.2701, allocations: 0 / 1.102 GB, free: 3.156 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0006319/0.2707, allocations: 271.7 kB / 1.102 GB, free: 2.891 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00029/0.271, allocations: 16.55 kB / 1.102 GB, free: 2.875 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005979/0.277, allocations: 3.891 MB / 1.106 GB, free: 14.9 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002875/0.2773, allocations: 0.7474 MB / 1.106 GB, free: 14.13 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001945/0.2775, allocations: 57.41 kB / 1.106 GB, free: 14.07 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001602/0.2777, allocations: 83.38 kB / 1.107 GB, free: 13.99 MB / 0.8731 GB Notification: Performance of SimCode: time 2.9e-07/0.2777, allocations: 0 / 1.107 GB, free: 13.99 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02049/0.2982, allocations: 5.062 MB / 1.111 GB, free: 9.074 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.327/7.625, allocations: 19.61 kB / 1.112 GB, free: 9.055 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]