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.001451/0.001451, allocations: 110.4 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.001609/0.001609, allocations: 214.6 kB / 22.26 MB, free: 5.125 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.36/1.36, allocations: 230.6 MB / 256 MB, free: 7.984 MB / 206.1 MB " [Timeout remaining time 178] 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.999/2.999, allocations: 0.505 GB / 0.8101 GB, free: 22.06 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.001904/0.001904, allocations: 71.06 kB / 1.177 GB, free: 17.3 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3015/0.3034, allocations: 180.2 MB / 1.353 GB, free: 8.562 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar): time 0.00273/0.3062, allocations: 1.61 MB / 1.354 GB, free: 6.945 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001163/0.3073, allocations: 0.6474 MB / 1.355 GB, free: 6.293 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.272e-05/0.3074, allocations: 7.938 kB / 1.355 GB, free: 6.285 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 4.906e-05/0.3074, allocations: 7.922 kB / 1.355 GB, free: 6.277 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 8.254e-05/0.3075, allocations: 3.938 kB / 1.355 GB, free: 6.273 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003267/0.3078, allocations: 63.8 kB / 1.355 GB, free: 6.211 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0001203/0.308, allocations: 51.78 kB / 1.355 GB, free: 6.16 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 9.402e-05/0.3081, allocations: 19.98 kB / 1.355 GB, free: 6.141 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001239/0.3082, allocations: 31.86 kB / 1.355 GB, free: 6.109 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 7.392e-05/0.3083, allocations: 23.91 kB / 1.355 GB, free: 6.086 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 1.578e-05/0.3083, allocations: 0 / 1.355 GB, free: 6.086 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001355/0.3084, allocations: 51.95 kB / 1.355 GB, free: 6.035 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 6.246e-05/0.3085, allocations: 31.84 kB / 1.355 GB, free: 6.004 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 4.477e-05/0.3085, allocations: 31.8 kB / 1.355 GB, free: 5.973 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0001928/0.3087, allocations: 95.84 kB / 1.355 GB, free: 5.879 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.107e-06/0.3087, allocations: 0 / 1.355 GB, free: 5.879 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.412e-06/0.3087, allocations: 4 kB / 1.355 GB, free: 5.875 MB / 1.045 GB Notification: Performance of Transformations before backend: time 9.488e-06/0.3087, allocations: 0 / 1.355 GB, free: 5.875 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.0005727/0.3093, allocations: 321.8 kB / 1.356 GB, free: 5.531 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.699e-05/0.3093, allocations: 8.031 kB / 1.356 GB, free: 5.523 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.728e-05/0.3094, allocations: 34.75 kB / 1.356 GB, free: 5.48 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009311/0.3103, allocations: 224.5 kB / 1.356 GB, free: 5.262 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002335/0.3105, allocations: 156.4 kB / 1.356 GB, free: 5.086 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.057e-05/0.3106, allocations: 63.7 kB / 1.356 GB, free: 5.012 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.714e-05/0.3106, allocations: 0 / 1.356 GB, free: 5.012 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004066/0.311, allocations: 177.5 kB / 1.356 GB, free: 4.832 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.926e-06/0.311, allocations: 7.922 kB / 1.356 GB, free: 4.824 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.214e-05/0.3111, allocations: 0 / 1.356 GB, free: 4.824 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.996e-06/0.3111, allocations: 4 kB / 1.356 GB, free: 4.82 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005592/0.3116, allocations: 235.8 kB / 1.357 GB, free: 4.59 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008523/0.3125, allocations: 483.1 kB / 1.357 GB, free: 4.074 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005842/0.3131, allocations: 238.3 kB / 1.357 GB, free: 3.832 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002916/0.3133, allocations: 124.8 kB / 1.357 GB, free: 3.707 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 1.665e-05/0.3134, allocations: 0 / 1.357 GB, free: 3.707 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.704e-05/0.3134, allocations: 30.56 kB / 1.357 GB, free: 3.668 MB / 1.045 GB Notification: Performance of pre-optimization done (n=2): time 1.122e-06/0.3134, allocations: 0 / 1.357 GB, free: 3.668 MB / 1.045 GB Notification: Performance of matching and sorting (n=2): time 0.0009462/0.3143, allocations: 369.2 kB / 1.358 GB, free: 3.301 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.567e-05/0.3144, allocations: 59.47 kB / 1.358 GB, free: 3.23 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000163/0.3145, allocations: 174.2 kB / 1.358 GB, free: 3.051 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 2.131e-05/0.3146, allocations: 25.7 kB / 1.358 GB, free: 3.02 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 6.637e-05/0.3146, allocations: 104.1 kB / 1.358 GB, free: 2.914 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 2.163e-05/0.3146, allocations: 7.891 kB / 1.358 GB, free: 2.906 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.792e-05/0.3147, allocations: 17.7 kB / 1.358 GB, free: 2.883 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001667/0.3149, allocations: 322.8 kB / 1.359 GB, free: 2.559 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002874/0.3151, allocations: 119.9 kB / 1.359 GB, free: 2.441 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002721/0.3154, allocations: 107.9 kB / 1.359 GB, free: 2.336 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004965/0.3159, allocations: 200.7 kB / 1.359 GB, free: 2.137 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.3159, allocations: 0 / 1.359 GB, free: 2.137 MB / 1.045 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0006046/0.3165, allocations: 265.3 kB / 1.359 GB, free: 1.871 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.688e-05/0.3165, allocations: 9.562 kB / 1.359 GB, free: 1.863 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.438e-06/0.3165, allocations: 0 / 1.359 GB, free: 1.863 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.176e-05/0.3166, allocations: 0 / 1.359 GB, free: 1.863 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002075/0.3168, allocations: 47.91 kB / 1.359 GB, free: 1.816 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.433e-06/0.3168, allocations: 3.938 kB / 1.359 GB, free: 1.812 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001572/0.3169, allocations: 43.92 kB / 1.359 GB, free: 1.77 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.287e-05/0.317, allocations: 7.984 kB / 1.359 GB, free: 1.762 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 9.423e-05/0.317, allocations: 113.8 kB / 1.359 GB, free: 1.641 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.638e-05/0.3171, allocations: 7.953 kB / 1.359 GB, free: 1.633 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.598e-05/0.3171, allocations: 15.95 kB / 1.359 GB, free: 1.617 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.3171, allocations: 0 / 1.359 GB, free: 1.617 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.3171, allocations: 11.88 kB / 1.359 GB, free: 1.605 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.034e-06/0.3171, allocations: 4 kB / 1.359 GB, free: 1.602 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002561/0.3174, allocations: 216.7 kB / 1.36 GB, free: 1.348 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.3174, allocations: 0 / 1.36 GB, free: 1.348 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001798/0.3176, allocations: 47.92 kB / 1.36 GB, free: 1.301 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.3176, allocations: 0 / 1.36 GB, free: 1.301 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.263e-05/0.3176, allocations: 3.984 kB / 1.36 GB, free: 1.297 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.3176, allocations: 0 / 1.36 GB, free: 1.297 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.484e-06/0.3176, allocations: 3.938 kB / 1.36 GB, free: 1.293 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00065/0.3182, allocations: 355.2 kB / 1.36 GB, free: 0.9297 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 1.91e-05/0.3182, allocations: 7.953 kB / 1.36 GB, free: 0.9219 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.293e-05/0.3183, allocations: 4 kB / 1.36 GB, free: 0.918 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001803/0.3184, allocations: 31.94 kB / 1.36 GB, free: 0.8867 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.133e-05/0.3185, allocations: 11.92 kB / 1.36 GB, free: 0.875 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.134e-05/0.3185, allocations: 8.031 kB / 1.36 GB, free: 0.8672 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0001032/0.3186, allocations: 128.1 kB / 1.36 GB, free: 0.7422 MB / 1.045 GB Notification: Performance of sort global known variables: time 7e-08/0.3186, allocations: 0 / 1.36 GB, free: 0.7422 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002364/0.3188, allocations: 12 kB / 1.36 GB, free: 0.7305 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.0009719/0.3198, allocations: 0.884 MB / 1.361 GB, free: 15.82 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0005974/0.3204, allocations: 239.8 kB / 1.361 GB, free: 15.59 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.3204, allocations: 0 / 1.361 GB, free: 15.59 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0002828/0.3207, allocations: 115.9 kB / 1.361 GB, free: 15.47 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002215/0.3209, allocations: 15.84 kB / 1.361 GB, free: 15.46 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003231/0.3241, allocations: 2.351 MB / 1.364 GB, free: 13.03 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002988/0.3244, allocations: 0.6885 MB / 1.364 GB, free: 12.31 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 8.866e-05/0.3245, allocations: 35.92 kB / 1.364 GB, free: 12.28 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.687e-05/0.3246, allocations: 35.41 kB / 1.364 GB, free: 12.24 MB / 1.061 GB Notification: Performance of SimCode: time 4.7e-07/0.3246, allocations: 0 / 1.364 GB, free: 12.24 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02851/0.3531, allocations: 2.76 MB / 1.367 GB, free: 9.613 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.964/10.32, allocations: 11.42 kB / 1.367 GB, free: 9.605 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar_fmu --startTime=0 --stopTime=86400 --stepSize=34.56 --timeout=800 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 16.431549215922132]