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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001454/0.001454, allocations: 109.2 kB / 18.94 MB, free: 2.949 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001589/0.001589, allocations: 218.6 kB / 22.26 MB, free: 5.121 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.326/1.326, allocations: 230.6 MB / 256 MB, free: 8 MB / 206.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.954/2.954, allocations: 0.505 GB / 0.8101 GB, free: 22.05 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001888/0.001888, allocations: 72.28 kB / 1.177 GB, free: 17.13 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3029/0.3048, allocations: 180.2 MB / 1.353 GB, free: 8.418 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar): time 0.002759/0.3075, allocations: 1.615 MB / 1.354 GB, free: 6.793 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001146/0.3087, allocations: 0.6474 MB / 1.355 GB, free: 6.141 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.935e-05/0.3087, allocations: 4 kB / 1.355 GB, free: 6.137 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 5.163e-05/0.3088, allocations: 7.922 kB / 1.355 GB, free: 6.129 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 8.052e-05/0.3088, allocations: 11.88 kB / 1.355 GB, free: 6.117 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002995/0.3091, allocations: 59.8 kB / 1.355 GB, free: 6.059 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0001059/0.3092, allocations: 39.92 kB / 1.355 GB, free: 6.02 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 8.797e-05/0.3093, allocations: 20.25 kB / 1.355 GB, free: 6 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001157/0.3095, allocations: 39.8 kB / 1.355 GB, free: 5.961 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 6.314e-05/0.3095, allocations: 19.92 kB / 1.355 GB, free: 5.941 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 1.393e-05/0.3095, allocations: 0 / 1.355 GB, free: 5.941 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001226/0.3097, allocations: 55.94 kB / 1.355 GB, free: 5.887 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 5.486e-05/0.3097, allocations: 19.92 kB / 1.355 GB, free: 5.867 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 3.927e-05/0.3097, allocations: 35.8 kB / 1.355 GB, free: 5.832 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0001677/0.3099, allocations: 99.5 kB / 1.355 GB, free: 5.734 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.3099, allocations: 3.984 kB / 1.355 GB, free: 5.73 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.222e-06/0.3099, allocations: 4 kB / 1.355 GB, free: 5.727 MB / 1.045 GB Notification: Performance of Transformations before backend: time 4.839e-06/0.3099, allocations: 0 / 1.355 GB, free: 5.727 MB / 1.045 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.0005212/0.3104, allocations: 321.8 kB / 1.356 GB, free: 5.383 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.361e-05/0.3105, allocations: 8.031 kB / 1.356 GB, free: 5.375 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.676e-05/0.3105, allocations: 34.75 kB / 1.356 GB, free: 5.332 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009327/0.3114, allocations: 224.4 kB / 1.356 GB, free: 5.113 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002518/0.3117, allocations: 157.2 kB / 1.356 GB, free: 4.938 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.539e-05/0.3118, allocations: 59.72 kB / 1.356 GB, free: 4.867 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.492e-05/0.3118, allocations: 7.984 kB / 1.356 GB, free: 4.859 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004079/0.3122, allocations: 177.4 kB / 1.356 GB, free: 4.68 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.313e-06/0.3122, allocations: 0 / 1.356 GB, free: 4.68 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.118e-05/0.3122, allocations: 3.938 kB / 1.356 GB, free: 4.676 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.827e-06/0.3122, allocations: 4 kB / 1.356 GB, free: 4.672 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005728/0.3128, allocations: 231.8 kB / 1.357 GB, free: 4.445 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008149/0.3136, allocations: 491.1 kB / 1.357 GB, free: 3.922 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005584/0.3142, allocations: 238.3 kB / 1.357 GB, free: 3.68 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002897/0.3145, allocations: 124.8 kB / 1.357 GB, free: 3.555 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 1.151e-05/0.3145, allocations: 0 / 1.357 GB, free: 3.555 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.066e-05/0.3145, allocations: 30.56 kB / 1.358 GB, free: 3.516 MB / 1.045 GB Notification: Performance of pre-optimization done (n=2): time 7.32e-07/0.3145, allocations: 0 / 1.358 GB, free: 3.516 MB / 1.045 GB Notification: Performance of matching and sorting (n=2): time 0.0009425/0.3154, allocations: 369.4 kB / 1.358 GB, free: 3.148 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.161e-05/0.3155, allocations: 55.34 kB / 1.358 GB, free: 3.082 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001602/0.3156, allocations: 174.2 kB / 1.358 GB, free: 2.902 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 1.885e-05/0.3157, allocations: 25.7 kB / 1.358 GB, free: 2.871 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 6.107e-05/0.3157, allocations: 100.1 kB / 1.358 GB, free: 2.77 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 2.263e-05/0.3157, allocations: 15.83 kB / 1.358 GB, free: 2.754 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.941e-05/0.3158, allocations: 17.7 kB / 1.358 GB, free: 2.73 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001356/0.3159, allocations: 326.9 kB / 1.359 GB, free: 2.402 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002826/0.3162, allocations: 111.9 kB / 1.359 GB, free: 2.293 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000281/0.3165, allocations: 115.9 kB / 1.359 GB, free: 2.18 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005002/0.317, allocations: 196.7 kB / 1.359 GB, free: 1.984 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.317, allocations: 0 / 1.359 GB, free: 1.984 MB / 1.045 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0005927/0.3176, allocations: 257.4 kB / 1.359 GB, free: 1.727 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.503e-05/0.3176, allocations: 8 kB / 1.359 GB, free: 1.719 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.328e-06/0.3176, allocations: 0 / 1.359 GB, free: 1.719 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.18e-05/0.3176, allocations: 0 / 1.359 GB, free: 1.719 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002066/0.3178, allocations: 47.84 kB / 1.359 GB, free: 1.672 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.552e-06/0.3178, allocations: 3.938 kB / 1.359 GB, free: 1.668 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001532/0.318, allocations: 43.92 kB / 1.359 GB, free: 1.625 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.162e-05/0.318, allocations: 0 / 1.359 GB, free: 1.625 MB / 1.045 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 0.0001015/0.3181, allocations: 121.8 kB / 1.359 GB, free: 1.496 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.401e-05/0.3181, allocations: 7.953 kB / 1.359 GB, free: 1.488 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.315e-05/0.3181, allocations: 15.95 kB / 1.359 GB, free: 1.473 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.749e-06/0.3182, allocations: 7.938 kB / 1.359 GB, free: 1.465 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.3182, allocations: 7.938 kB / 1.359 GB, free: 1.457 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.863e-06/0.3182, allocations: 0 / 1.359 GB, free: 1.457 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002488/0.3184, allocations: 212.7 kB / 1.36 GB, free: 1.207 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.3184, allocations: 3.938 kB / 1.36 GB, free: 1.203 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000177/0.3186, allocations: 43.92 kB / 1.36 GB, free: 1.16 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.493e-06/0.3186, allocations: 0 / 1.36 GB, free: 1.16 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.41e-05/0.3186, allocations: 3.984 kB / 1.36 GB, free: 1.156 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.213e-06/0.3186, allocations: 4 kB / 1.36 GB, free: 1.152 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.3186, allocations: 3.938 kB / 1.36 GB, free: 1.148 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000651/0.3193, allocations: 363.2 kB / 1.36 GB, free: 0.7773 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 1.833e-05/0.3193, allocations: 3.953 kB / 1.36 GB, free: 0.7734 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.242e-05/0.3193, allocations: 4 kB / 1.36 GB, free: 0.7695 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000177/0.3195, allocations: 31.94 kB / 1.36 GB, free: 0.7383 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.873e-05/0.3195, allocations: 11.95 kB / 1.36 GB, free: 0.7266 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.036e-05/0.3195, allocations: 4 kB / 1.36 GB, free: 0.7227 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0001027/0.3196, allocations: 132.1 kB / 1.36 GB, free: 0.5938 MB / 1.045 GB Notification: Performance of sort global known variables: time 6e-08/0.3196, allocations: 0 / 1.36 GB, free: 0.5938 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002345/0.3199, allocations: 12 kB / 1.36 GB, free: 0.582 MB / 1.045 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.001011/0.3209, allocations: 0.8802 MB / 1.361 GB, free: 15.68 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0005998/0.3215, allocations: 239.7 kB / 1.361 GB, free: 15.44 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.3215, allocations: 4.062 kB / 1.361 GB, free: 15.44 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0002873/0.3218, allocations: 115.9 kB / 1.361 GB, free: 15.32 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002153/0.322, allocations: 13.41 kB / 1.361 GB, free: 15.31 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003196/0.3252, allocations: 2.355 MB / 1.364 GB, free: 12.88 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002879/0.3255, allocations: 0.6924 MB / 1.364 GB, free: 12.16 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 8.655e-05/0.3255, allocations: 27.98 kB / 1.364 GB, free: 12.13 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.273e-05/0.3256, allocations: 31.41 kB / 1.364 GB, free: 12.1 MB / 1.061 GB Notification: Performance of SimCode: time 3.11e-07/0.3256, allocations: 0 / 1.364 GB, free: 12.1 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02721/0.3528, allocations: 2.77 MB / 1.367 GB, free: 9.461 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.582/9.935, allocations: 1.562 kB / 1.367 GB, free: 9.461 MB / 1.061 GB " [Timeout remaining time 290] (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 800 --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) [Timeout 840.0] 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) [Timeout 300] "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! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 15.99751113000002]