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.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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.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.007552/0.007552, allocations: 101.2 kB / 15.73 MB, free: 5.996 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.001895/0.001895, allocations: 185.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.35/1.35, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.72/2.72, allocations: 469.4 MB / 0.7421 GB, free: 7.648 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001341/0.001341, allocations: 59.91 kB / 1.064 GB, free: 13.92 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2605/0.2619, allocations: 159.1 MB / 1.22 GB, free: 14.67 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar): time 0.00259/0.2645, allocations: 1.581 MB / 1.221 GB, free: 13.08 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.00096/0.2655, allocations: 0.5884 MB / 1.222 GB, free: 12.49 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.105e-05/0.2655, allocations: 0 / 1.222 GB, free: 12.49 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 4.188e-05/0.2656, allocations: 7.922 kB / 1.222 GB, free: 12.48 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 7.919e-05/0.2657, allocations: 15.81 kB / 1.222 GB, free: 12.46 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002724/0.2659, allocations: 47.88 kB / 1.222 GB, free: 12.42 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 9.337e-05/0.2661, allocations: 51.84 kB / 1.222 GB, free: 12.37 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 9.011e-05/0.2661, allocations: 15.98 kB / 1.222 GB, free: 12.35 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 8.749e-05/0.2662, allocations: 27.86 kB / 1.222 GB, free: 12.32 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 7.941e-05/0.2663, allocations: 19.86 kB / 1.222 GB, free: 12.3 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.572e-05/0.2664, allocations: 4 kB / 1.222 GB, free: 12.3 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001255/0.2665, allocations: 63.88 kB / 1.222 GB, free: 12.24 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 5.202e-05/0.2665, allocations: 19.91 kB / 1.222 GB, free: 12.22 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 3.842e-05/0.2666, allocations: 27.81 kB / 1.222 GB, free: 12.19 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001689/0.2668, allocations: 95.62 kB / 1.222 GB, free: 12.1 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 2.946e-06/0.2668, allocations: 0 / 1.222 GB, free: 12.1 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.192e-06/0.2668, allocations: 4 kB / 1.222 GB, free: 12.09 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 4.388e-06/0.2668, allocations: 0 / 1.222 GB, free: 12.09 MB / 0.9825 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.000543/0.2673, allocations: 398.9 kB / 1.223 GB, free: 11.66 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.266e-05/0.2674, allocations: 8.031 kB / 1.223 GB, free: 11.65 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.541e-05/0.2674, allocations: 38.75 kB / 1.223 GB, free: 11.6 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009408/0.2684, allocations: 208.5 kB / 1.223 GB, free: 11.4 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001447/0.2685, allocations: 192.8 kB / 1.223 GB, free: 11.17 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.585e-05/0.2686, allocations: 42 kB / 1.223 GB, free: 11.12 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.796e-05/0.2686, allocations: 0 / 1.223 GB, free: 11.12 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004189/0.269, allocations: 173.5 kB / 1.223 GB, free: 10.95 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.763e-06/0.2691, allocations: 0 / 1.223 GB, free: 10.95 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.294e-05/0.2691, allocations: 0 / 1.223 GB, free: 10.95 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.13e-06/0.2691, allocations: 4 kB / 1.223 GB, free: 10.95 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006006/0.2697, allocations: 231.8 kB / 1.223 GB, free: 10.72 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008647/0.2706, allocations: 0.5193 MB / 1.224 GB, free: 10.15 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005912/0.2712, allocations: 242.3 kB / 1.224 GB, free: 9.902 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002976/0.2715, allocations: 116.8 kB / 1.224 GB, free: 9.785 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.405e-05/0.2715, allocations: 4 kB / 1.224 GB, free: 9.781 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.566e-05/0.2715, allocations: 38.56 kB / 1.224 GB, free: 9.734 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=2): time 1.232e-06/0.2715, allocations: 0 / 1.224 GB, free: 9.734 MB / 0.9825 GB Notification: Performance of matching and sorting (n=2): time 0.001006/0.2725, allocations: 369.2 kB / 1.225 GB, free: 9.367 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.621e-05/0.2726, allocations: 55.34 kB / 1.225 GB, free: 9.301 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001379/0.2727, allocations: 167.2 kB / 1.225 GB, free: 9.129 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.846e-05/0.2728, allocations: 29.7 kB / 1.225 GB, free: 9.094 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 5.391e-05/0.2728, allocations: 104.1 kB / 1.225 GB, free: 8.988 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.893e-05/0.2729, allocations: 3.953 kB / 1.225 GB, free: 8.984 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.545e-05/0.2729, allocations: 25.69 kB / 1.225 GB, free: 8.953 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 9.472e-05/0.273, allocations: 318.8 kB / 1.225 GB, free: 8.633 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003317/0.2733, allocations: 111.9 kB / 1.226 GB, free: 8.523 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002883/0.2736, allocations: 111.9 kB / 1.226 GB, free: 8.414 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005445/0.2742, allocations: 200.7 kB / 1.226 GB, free: 8.215 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.2742, allocations: 3.938 kB / 1.226 GB, free: 8.211 MB / 0.9825 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000635/0.2749, allocations: 253.4 kB / 1.226 GB, free: 7.957 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.177e-05/0.2749, allocations: 4 kB / 1.226 GB, free: 7.953 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.929e-06/0.2749, allocations: 7.969 kB / 1.226 GB, free: 7.945 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.296e-05/0.2749, allocations: 11.92 kB / 1.226 GB, free: 7.934 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000234/0.2751, allocations: 47.91 kB / 1.226 GB, free: 7.887 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.942e-06/0.2752, allocations: 3.938 kB / 1.226 GB, free: 7.883 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001683/0.2753, allocations: 39.94 kB / 1.226 GB, free: 7.844 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.645e-05/0.2754, allocations: 7.984 kB / 1.226 GB, free: 7.836 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: 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 8.125e-05/0.2754, allocations: 110.4 kB / 1.226 GB, free: 7.719 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.086e-05/0.2755, allocations: 11.91 kB / 1.226 GB, free: 7.707 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.41e-05/0.2755, allocations: 15.86 kB / 1.226 GB, free: 7.691 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.2755, allocations: 0 / 1.226 GB, free: 7.691 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.2755, allocations: 3.938 kB / 1.226 GB, free: 7.688 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.954e-06/0.2755, allocations: 0 / 1.226 GB, free: 7.688 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002413/0.2758, allocations: 245.6 kB / 1.227 GB, free: 7.398 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.2758, allocations: 4 kB / 1.227 GB, free: 7.395 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002009/0.276, allocations: 39.92 kB / 1.227 GB, free: 7.355 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.276, allocations: 3.938 kB / 1.227 GB, free: 7.352 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.702e-05/0.276, allocations: 11.98 kB / 1.227 GB, free: 7.34 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/0.276, allocations: 0 / 1.227 GB, free: 7.34 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.276, allocations: 3.938 kB / 1.227 GB, free: 7.336 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006881/0.2767, allocations: 351.2 kB / 1.227 GB, free: 6.977 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.156e-05/0.2768, allocations: 85.06 kB / 1.227 GB, free: 6.875 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.251e-05/0.2768, allocations: 0 / 1.227 GB, free: 6.875 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000202/0.277, allocations: 35.92 kB / 1.227 GB, free: 6.84 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.767e-05/0.2771, allocations: 3.938 kB / 1.227 GB, free: 6.836 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.304e-05/0.2771, allocations: 8 kB / 1.227 GB, free: 6.828 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 9.344e-05/0.2772, allocations: 127.2 kB / 1.227 GB, free: 6.703 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2772, allocations: 4.031 kB / 1.227 GB, free: 6.699 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002604/0.2774, allocations: 19.94 kB / 1.227 GB, free: 6.68 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: 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.0009508/0.2784, allocations: 0.8841 MB / 1.228 GB, free: 5.77 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0006777/0.2791, allocations: 231.8 kB / 1.228 GB, free: 5.543 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.2791, allocations: 0 / 1.228 GB, free: 5.543 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0003087/0.2794, allocations: 123.9 kB / 1.228 GB, free: 5.422 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002331/0.2797, allocations: 15.34 kB / 1.228 GB, free: 5.41 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003304/0.283, allocations: 2.338 MB / 1.231 GB, free: 2.992 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002655/0.2833, allocations: 0.6924 MB / 1.231 GB, free: 2.273 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 9.701e-05/0.2834, allocations: 27.98 kB / 1.231 GB, free: 2.246 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.898e-05/0.2834, allocations: 27.42 kB / 1.231 GB, free: 2.219 MB / 0.9825 GB Notification: Performance of SimCode: time 2.5e-07/0.2835, allocations: 7.875 kB / 1.231 GB, free: 2.211 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0198/0.3033, allocations: 2.637 MB / 1.234 GB, free: 15.66 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.118/7.421, allocations: 12.88 kB / 1.234 GB, free: 15.66 MB / 0.9981 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]