Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.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.QStar,fileNamePrefix="Buildings_latest_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar,fileNamePrefix="Buildings_latest_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar",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.001184/0.001184, 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.001238/0.001238, allocations: 194.2 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.323/1.323, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.695/2.695, allocations: 469.4 MB / 0.742 GB, free: 7.727 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001455/0.001455, allocations: 64.66 kB / 0.9083 GB, free: 34.38 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2698/0.2712, allocations: 159.1 MB / 1.064 GB, free: 14.52 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar): time 0.002745/0.274, allocations: 1.57 MB / 1.065 GB, free: 12.93 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0009661/0.275, allocations: 0.5884 MB / 1.066 GB, free: 12.34 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.748e-05/0.2751, allocations: 7.938 kB / 1.066 GB, free: 12.33 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 4.449e-05/0.2751, allocations: 3.938 kB / 1.066 GB, free: 12.33 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 7.806e-05/0.2752, allocations: 7.875 kB / 1.066 GB, free: 12.32 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002986/0.2755, allocations: 47.88 kB / 1.066 GB, free: 12.27 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 9.808e-05/0.2756, allocations: 47.84 kB / 1.066 GB, free: 12.23 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001128/0.2758, allocations: 19.98 kB / 1.066 GB, free: 12.21 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 9.591e-05/0.2759, allocations: 19.92 kB / 1.066 GB, free: 12.19 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 7.947e-05/0.276, allocations: 31.84 kB / 1.066 GB, free: 12.16 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.951e-05/0.276, allocations: 4 kB / 1.066 GB, free: 12.15 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001393/0.2761, allocations: 55.89 kB / 1.066 GB, free: 12.1 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 5.938e-05/0.2762, allocations: 19.92 kB / 1.066 GB, free: 12.08 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 4.197e-05/0.2762, allocations: 27.8 kB / 1.066 GB, free: 12.05 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001801/0.2764, allocations: 99.95 kB / 1.066 GB, free: 11.95 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.2764, allocations: 4 kB / 1.066 GB, free: 11.95 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.302e-06/0.2764, allocations: 0 / 1.066 GB, free: 11.95 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.11e-06/0.2765, allocations: 0 / 1.066 GB, free: 11.95 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.000554/0.277, allocations: 395 kB / 1.067 GB, free: 11.52 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.703e-05/0.2771, allocations: 12.03 kB / 1.067 GB, free: 11.5 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.539e-05/0.2771, allocations: 34.75 kB / 1.067 GB, free: 11.46 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009234/0.278, allocations: 208.5 kB / 1.067 GB, free: 11.26 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001502/0.2782, allocations: 190 kB / 1.067 GB, free: 11.04 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.949e-05/0.2783, allocations: 38 kB / 1.067 GB, free: 10.99 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.984e-05/0.2783, allocations: 8 kB / 1.067 GB, free: 10.98 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000439/0.2787, allocations: 169.5 kB / 1.067 GB, free: 10.81 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.893e-06/0.2788, allocations: 0 / 1.067 GB, free: 10.81 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.681e-05/0.2788, allocations: 4 kB / 1.067 GB, free: 10.81 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.039e-06/0.2788, allocations: 0 / 1.067 GB, free: 10.81 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000606/0.2794, allocations: 235.8 kB / 1.067 GB, free: 10.58 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008662/0.2803, allocations: 0.5117 MB / 1.068 GB, free: 10.02 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005873/0.2809, allocations: 238.3 kB / 1.068 GB, free: 9.777 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002981/0.2812, allocations: 120.8 kB / 1.068 GB, free: 9.656 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.554e-05/0.2812, allocations: 0 / 1.068 GB, free: 9.656 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.359e-05/0.2812, allocations: 30.56 kB / 1.068 GB, free: 9.617 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=2): time 9.62e-07/0.2812, allocations: 0 / 1.068 GB, free: 9.617 MB / 0.8262 GB Notification: Performance of matching and sorting (n=2): time 0.001002/0.2822, allocations: 377.1 kB / 1.069 GB, free: 9.242 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.194e-05/0.2823, allocations: 55.47 kB / 1.069 GB, free: 9.176 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001474/0.2824, allocations: 172 kB / 1.069 GB, free: 9 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.903e-05/0.2825, allocations: 25.7 kB / 1.069 GB, free: 8.969 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.169e-05/0.2825, allocations: 104 kB / 1.069 GB, free: 8.863 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.58e-05/0.2826, allocations: 0 / 1.069 GB, free: 8.863 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.277e-05/0.2826, allocations: 21.69 kB / 1.069 GB, free: 8.836 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000128/0.2828, allocations: 322.8 kB / 1.069 GB, free: 8.512 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003085/0.2831, allocations: 115.9 kB / 1.069 GB, free: 8.398 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002986/0.2834, allocations: 111.9 kB / 1.07 GB, free: 8.289 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005556/0.284, allocations: 200.7 kB / 1.07 GB, free: 8.09 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.284, allocations: 0 / 1.07 GB, free: 8.09 MB / 0.8262 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0006377/0.2846, allocations: 261.2 kB / 1.07 GB, free: 7.828 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.627e-05/0.2847, allocations: 12.03 kB / 1.07 GB, free: 7.816 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.619e-06/0.2847, allocations: 0 / 1.07 GB, free: 7.816 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.414e-05/0.2847, allocations: 3.984 kB / 1.07 GB, free: 7.812 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002198/0.2849, allocations: 39.92 kB / 1.07 GB, free: 7.773 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.444e-06/0.2849, allocations: 3.938 kB / 1.07 GB, free: 7.77 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001712/0.2851, allocations: 39.94 kB / 1.07 GB, free: 7.73 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.729e-05/0.2851, allocations: 3.984 kB / 1.07 GB, free: 7.727 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 9.628e-05/0.2852, allocations: 121.8 kB / 1.07 GB, free: 7.598 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.854e-05/0.2853, allocations: 7.906 kB / 1.07 GB, free: 7.59 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.475e-05/0.2853, allocations: 11.88 kB / 1.07 GB, free: 7.574 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/0.2853, allocations: 4 kB / 1.07 GB, free: 7.57 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.92e-06/0.2853, allocations: 7.875 kB / 1.07 GB, free: 7.562 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.023e-06/0.2853, allocations: 0 / 1.07 GB, free: 7.562 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002531/0.2856, allocations: 249.5 kB / 1.07 GB, free: 7.27 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.2856, allocations: 0 / 1.07 GB, free: 7.27 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001917/0.2858, allocations: 43.91 kB / 1.071 GB, free: 7.227 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.484e-06/0.2858, allocations: 4 kB / 1.071 GB, free: 7.223 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.177e-05/0.2858, allocations: 0 / 1.071 GB, free: 7.223 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.055e-06/0.2858, allocations: 3.938 kB / 1.071 GB, free: 7.219 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.584e-06/0.2858, allocations: 3.938 kB / 1.071 GB, free: 7.215 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006552/0.2865, allocations: 355.2 kB / 1.071 GB, free: 6.852 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.747e-05/0.2866, allocations: 85.02 kB / 1.071 GB, free: 6.75 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.571e-05/0.2866, allocations: 3.984 kB / 1.071 GB, free: 6.746 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001885/0.2868, allocations: 31.94 kB / 1.071 GB, free: 6.715 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.327e-05/0.2868, allocations: 7.938 kB / 1.071 GB, free: 6.707 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.196e-05/0.2869, allocations: 3.984 kB / 1.071 GB, free: 6.703 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 9.602e-05/0.287, allocations: 129 kB / 1.071 GB, free: 6.578 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.5e-07/0.287, allocations: 0 / 1.071 GB, free: 6.578 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002663/0.2872, allocations: 20 kB / 1.071 GB, free: 6.559 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.001013/0.2882, allocations: 0.8806 MB / 1.072 GB, free: 5.652 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0006676/0.2889, allocations: 235.8 kB / 1.072 GB, free: 5.422 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.2889, allocations: 0 / 1.072 GB, free: 5.422 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0003155/0.2893, allocations: 119.9 kB / 1.072 GB, free: 5.305 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002471/0.2895, allocations: 13.81 kB / 1.072 GB, free: 5.293 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003328/0.2929, allocations: 2.333 MB / 1.075 GB, free: 2.887 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002207/0.2931, allocations: 0.7001 MB / 1.075 GB, free: 2.16 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.000105/0.2932, allocations: 24 kB / 1.075 GB, free: 2.137 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.585e-05/0.2933, allocations: 31.41 kB / 1.075 GB, free: 2.105 MB / 0.8262 GB Notification: Performance of SimCode: time 4.01e-07/0.2933, allocations: 0 / 1.075 GB, free: 2.105 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0191/0.3124, allocations: 2.606 MB / 1.078 GB, free: 15.57 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.193/7.505, allocations: 9.812 kB / 1.078 GB, free: 15.56 MB / 0.8419 GB (rm -f Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe >> ../files/Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar_res.csv --start-time 0 --stop-time 86400 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 34.56 Buildings_latest_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar.fmu > Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[501]=86400.000000 File[27]=1002.240000 Error: Could not read variable lmtd.y in file Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar_res.csv. Warning: Get data of variable lmtd.y from file Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar_res.csv failed! " Variables in the reference:time,qSta.qNor,fra.y,lmtd.y Variables in the result:time,fra.y,qSta.qNor,coeCha[1],coeCha[2],coeCha[3]