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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.007673/0.007673, allocations: 99.77 kB / 15.73 MB, free: 6.012 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.002112/0.002112, allocations: 193.6 kB / 16.67 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.394/1.394, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.791/2.791, allocations: 482.4 MB / 0.7548 GB, free: 6.914 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.00194/0.00194, allocations: 72.16 kB / 1.083 GB, free: 13.92 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2739/0.2759, allocations: 162.2 MB / 1.241 GB, free: 9.301 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate): time 0.003219/0.2791, allocations: 1.97 MB / 1.243 GB, free: 7.32 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001165/0.2803, allocations: 0.6973 MB / 1.244 GB, free: 6.617 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.389e-05/0.2804, allocations: 4 kB / 1.244 GB, free: 6.613 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001215/0.2805, allocations: 19.8 kB / 1.244 GB, free: 6.594 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 7.794e-05/0.2806, allocations: 27.72 kB / 1.244 GB, free: 6.566 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003186/0.2809, allocations: 83.84 kB / 1.244 GB, free: 6.484 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001875/0.2811, allocations: 143.6 kB / 1.244 GB, free: 6.344 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001793/0.2813, allocations: 80.61 kB / 1.244 GB, free: 6.262 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000109/0.2814, allocations: 67.72 kB / 1.244 GB, free: 6.195 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001181/0.2816, allocations: 67.62 kB / 1.245 GB, free: 6.129 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 3.377e-05/0.2816, allocations: 16 kB / 1.245 GB, free: 6.113 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001552/0.2818, allocations: 63.95 kB / 1.245 GB, free: 6.051 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 9.794e-05/0.2819, allocations: 71.73 kB / 1.245 GB, free: 5.98 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 9.55e-05/0.282, allocations: 91.41 kB / 1.245 GB, free: 5.891 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0003446/0.2823, allocations: 267 kB / 1.245 GB, free: 5.629 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.2823, allocations: 0 / 1.245 GB, free: 5.629 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.122e-06/0.2824, allocations: 0 / 1.245 GB, free: 5.629 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 4.97e-06/0.2824, allocations: 0 / 1.245 GB, free: 5.629 MB / 0.9669 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.0008165/0.2832, allocations: 0.5411 MB / 1.246 GB, free: 5.039 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.588e-05/0.2832, allocations: 20.02 kB / 1.246 GB, free: 5.02 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.474e-05/0.2833, allocations: 46.69 kB / 1.246 GB, free: 4.965 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001748/0.285, allocations: 424 kB / 1.246 GB, free: 4.551 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004209/0.2855, allocations: 319.9 kB / 1.246 GB, free: 4.199 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.217e-05/0.2856, allocations: 68.19 kB / 1.246 GB, free: 4.121 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.993e-05/0.2856, allocations: 16.38 kB / 1.246 GB, free: 4.105 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009024/0.2865, allocations: 392.2 kB / 1.247 GB, free: 3.719 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.186e-05/0.2866, allocations: 0 / 1.247 GB, free: 3.719 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.391e-05/0.2866, allocations: 7.938 kB / 1.247 GB, free: 3.711 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.663e-06/0.2866, allocations: 4 kB / 1.247 GB, free: 3.707 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001348/0.2879, allocations: 0.539 MB / 1.247 GB, free: 3.168 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001738/0.2897, allocations: 0.9939 MB / 1.248 GB, free: 2.121 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007295/0.2904, allocations: 294.3 kB / 1.249 GB, free: 1.824 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00066/0.2911, allocations: 272.6 kB / 1.249 GB, free: 1.555 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.952e-05/0.2911, allocations: 4.141 kB / 1.249 GB, free: 1.551 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.035e-05/0.2912, allocations: 34.56 kB / 1.249 GB, free: 1.508 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.313e-06/0.2912, allocations: 4 kB / 1.249 GB, free: 1.504 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.002072/0.2933, allocations: 0.7783 MB / 1.25 GB, free: 0.7188 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.949e-05/0.2933, allocations: 51.41 kB / 1.25 GB, free: 0.6562 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003477/0.2937, allocations: 306.6 kB / 1.25 GB, free: 352 kB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.871e-05/0.2937, allocations: 29.7 kB / 1.25 GB, free: 316 kB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001165/0.2938, allocations: 152.2 kB / 1.25 GB, free: 160 kB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.346e-05/0.2939, allocations: 19.84 kB / 1.25 GB, free: 140 kB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.96e-05/0.294, allocations: 37.67 kB / 1.25 GB, free: 96 kB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001698/0.2941, allocations: 338.8 kB / 1.251 GB, free: 15.75 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006666/0.2948, allocations: 259.8 kB / 1.251 GB, free: 15.5 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000642/0.2955, allocations: 259.8 kB / 1.251 GB, free: 15.25 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001167/0.2966, allocations: 440.4 kB / 1.251 GB, free: 14.81 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.2967, allocations: 4 kB / 1.251 GB, free: 14.81 MB / 0.9825 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.001368/0.298, allocations: 0.5322 MB / 1.252 GB, free: 14.27 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.253e-05/0.298, allocations: 4 kB / 1.252 GB, free: 14.27 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.216e-06/0.2981, allocations: 0 / 1.252 GB, free: 14.27 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.1e-05/0.2981, allocations: 4 kB / 1.252 GB, free: 14.26 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004021/0.2985, allocations: 91.83 kB / 1.252 GB, free: 14.17 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.419e-06/0.2985, allocations: 0 / 1.252 GB, free: 14.17 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003285/0.2988, allocations: 83.75 kB / 1.252 GB, free: 14.09 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.644e-05/0.2989, allocations: 7.984 kB / 1.252 GB, free: 14.08 MB / 0.9825 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.0001525/0.299, allocations: 141.8 kB / 1.252 GB, free: 13.93 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.131e-05/0.2991, allocations: 19.86 kB / 1.252 GB, free: 13.91 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.646e-05/0.2991, allocations: 29.7 kB / 1.252 GB, free: 13.88 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.2991, allocations: 3.938 kB / 1.252 GB, free: 13.88 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.845e-06/0.2992, allocations: 0 / 1.252 GB, free: 13.88 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/0.2992, allocations: 4 kB / 1.252 GB, free: 13.88 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005135/0.2997, allocations: 444.3 kB / 1.253 GB, free: 13.39 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.2997, allocations: 8 kB / 1.253 GB, free: 13.39 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003923/0.3001, allocations: 91.77 kB / 1.253 GB, free: 13.3 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.3001, allocations: 0 / 1.253 GB, free: 13.3 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.682e-05/0.3001, allocations: 7.984 kB / 1.253 GB, free: 13.29 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.3001, allocations: 0 / 1.253 GB, free: 13.29 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.12e-07/0.3002, allocations: 4 kB / 1.253 GB, free: 13.29 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001415/0.3016, allocations: 0.6278 MB / 1.253 GB, free: 12.64 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 7.514e-05/0.3017, allocations: 101 kB / 1.254 GB, free: 12.52 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.717e-05/0.3017, allocations: 4 kB / 1.254 GB, free: 12.52 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003624/0.3021, allocations: 71.86 kB / 1.254 GB, free: 12.45 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.659e-05/0.3021, allocations: 11.98 kB / 1.254 GB, free: 12.44 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.407e-05/0.3022, allocations: 7.969 kB / 1.254 GB, free: 12.43 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0002276/0.3024, allocations: 221.9 kB / 1.254 GB, free: 12.21 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3024, allocations: 0 / 1.254 GB, free: 12.21 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003012/0.3027, allocations: 39.89 kB / 1.254 GB, free: 12.18 MB / 0.9825 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.001754/0.3045, allocations: 1.179 MB / 1.255 GB, free: 10.97 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.001373/0.3059, allocations: 0.5307 MB / 1.256 GB, free: 10.44 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.3059, allocations: 0 / 1.256 GB, free: 10.44 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0006813/0.3066, allocations: 271.7 kB / 1.256 GB, free: 10.18 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000277/0.3068, allocations: 21.19 kB / 1.256 GB, free: 10.16 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006583/0.3134, allocations: 3.902 MB / 1.26 GB, free: 6.176 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004045/0.3138, allocations: 0.7435 MB / 1.26 GB, free: 5.406 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0001999/0.3141, allocations: 57.42 kB / 1.26 GB, free: 5.348 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001715/0.3142, allocations: 83.38 kB / 1.261 GB, free: 5.27 MB / 0.9825 GB Notification: Performance of SimCode: time 2.5e-07/0.3142, allocations: 0 / 1.261 GB, free: 5.27 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02585/0.3401, allocations: 5.065 MB / 1.265 GB, free: 360 kB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.777/8.117, allocations: 10.34 kB / 1.266 GB, free: 352 kB / 0.9825 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 400 --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]