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.001194/0.001194, allocations: 101.5 kB / 19.73 MB, free: 2.23 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.001322/0.001322, allocations: 214.5 kB / 23.04 MB, free: 5.074 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.333/1.333, allocations: 230.6 MB / 256.8 MB, free: 8.004 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.95/2.95, allocations: 0.5003 GB / 0.8061 GB, free: 26.8 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar,fileNamePrefix="Buildings_latest_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar",fmuType="cs",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.001994/0.001994, allocations: 70.8 kB / 1.171 GB, free: 19.8 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.297/0.2989, allocations: 179 MB / 1.345 GB, free: 472 kB / 1.029 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar): time 0.002594/0.3015, allocations: 1.612 MB / 1.347 GB, free: 14.84 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001024/0.3026, allocations: 0.6507 MB / 1.348 GB, free: 14.18 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.544e-05/0.3026, allocations: 4 kB / 1.348 GB, free: 14.18 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 3.863e-05/0.3027, allocations: 7.922 kB / 1.348 GB, free: 14.17 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 6.976e-05/0.3027, allocations: 7.922 kB / 1.348 GB, free: 14.16 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002698/0.303, allocations: 63.8 kB / 1.348 GB, free: 14.1 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 9.662e-05/0.3031, allocations: 43.86 kB / 1.348 GB, free: 14.05 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 8.363e-05/0.3032, allocations: 16.2 kB / 1.348 GB, free: 14.04 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001088/0.3033, allocations: 35.84 kB / 1.348 GB, free: 14 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 6.3e-05/0.3033, allocations: 27.86 kB / 1.348 GB, free: 13.98 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 1.361e-05/0.3034, allocations: 4 kB / 1.348 GB, free: 13.97 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001282/0.3035, allocations: 59.94 kB / 1.348 GB, free: 13.91 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 5.452e-05/0.3035, allocations: 23.92 kB / 1.348 GB, free: 13.89 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 4.029e-05/0.3036, allocations: 31.8 kB / 1.348 GB, free: 13.86 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0001604/0.3037, allocations: 91.58 kB / 1.348 GB, free: 13.77 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.3037, allocations: 3.984 kB / 1.348 GB, free: 13.77 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.173e-06/0.3037, allocations: 0 / 1.348 GB, free: 13.77 MB / 1.045 GB Notification: Performance of Transformations before backend: time 8.977e-06/0.3038, allocations: 4 kB / 1.348 GB, free: 13.76 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.0005096/0.3043, allocations: 325.8 kB / 1.348 GB, free: 13.41 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.408e-05/0.3043, allocations: 8.031 kB / 1.348 GB, free: 13.41 MB / 1.045 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.219e-05/0.3043, allocations: 4.188 kB / 1.348 GB, free: 13.4 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.221e-05/0.3043, allocations: 34.75 kB / 1.348 GB, free: 13.36 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009303/0.3053, allocations: 224.4 kB / 1.349 GB, free: 13.14 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002169/0.3055, allocations: 154.8 kB / 1.349 GB, free: 12.96 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.908e-05/0.3056, allocations: 63.53 kB / 1.349 GB, free: 12.89 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.009e-05/0.3056, allocations: 7.984 kB / 1.349 GB, free: 12.88 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004148/0.306, allocations: 169.5 kB / 1.349 GB, free: 12.71 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.865e-06/0.306, allocations: 4 kB / 1.349 GB, free: 12.71 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.19e-05/0.306, allocations: 0 / 1.349 GB, free: 12.71 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.236e-06/0.306, allocations: 0 / 1.349 GB, free: 12.71 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005844/0.3066, allocations: 235.7 kB / 1.349 GB, free: 12.48 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008128/0.3074, allocations: 498.5 kB / 1.35 GB, free: 11.95 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005987/0.308, allocations: 242.4 kB / 1.35 GB, free: 11.7 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000297/0.3083, allocations: 112.7 kB / 1.35 GB, free: 11.59 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 1.232e-05/0.3083, allocations: 0 / 1.35 GB, free: 11.59 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.098e-05/0.3084, allocations: 42.56 kB / 1.35 GB, free: 11.54 MB / 1.045 GB Notification: Performance of pre-optimization done (n=2): time 7.92e-07/0.3084, allocations: 0 / 1.35 GB, free: 11.54 MB / 1.045 GB Notification: Performance of matching and sorting (n=2): time 0.000969/0.3093, allocations: 365.2 kB / 1.35 GB, free: 11.17 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.068e-05/0.3094, allocations: 55.34 kB / 1.35 GB, free: 11.11 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001703/0.3095, allocations: 174.2 kB / 1.351 GB, free: 10.93 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 1.981e-05/0.3096, allocations: 25.7 kB / 1.351 GB, free: 10.89 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 6.246e-05/0.3096, allocations: 104.2 kB / 1.351 GB, free: 10.79 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 2.101e-05/0.3096, allocations: 7.891 kB / 1.351 GB, free: 10.78 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.618e-05/0.3097, allocations: 25.7 kB / 1.351 GB, free: 10.75 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001347/0.3098, allocations: 318.8 kB / 1.351 GB, free: 10.43 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002933/0.3101, allocations: 115.9 kB / 1.351 GB, free: 10.32 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002807/0.3104, allocations: 111.9 kB / 1.351 GB, free: 10.21 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005174/0.3109, allocations: 196.7 kB / 1.351 GB, free: 10.01 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.3109, allocations: 7.938 kB / 1.351 GB, free: 10 MB / 1.045 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0006114/0.3115, allocations: 257.3 kB / 1.352 GB, free: 9.746 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.402e-05/0.3115, allocations: 8 kB / 1.352 GB, free: 9.738 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.527e-06/0.3115, allocations: 0 / 1.352 GB, free: 9.738 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.066e-05/0.3116, allocations: 32 / 1.352 GB, free: 9.738 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002005/0.3118, allocations: 51.84 kB / 1.352 GB, free: 9.688 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.111e-06/0.3118, allocations: 3.984 kB / 1.352 GB, free: 9.684 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001628/0.3119, allocations: 39.89 kB / 1.352 GB, free: 9.645 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.522e-05/0.3119, allocations: 7.922 kB / 1.352 GB, free: 9.637 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.74e-05/0.312, allocations: 121.8 kB / 1.352 GB, free: 9.508 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.779e-05/0.3121, allocations: 7.953 kB / 1.352 GB, free: 9.5 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.684e-05/0.3121, allocations: 11.95 kB / 1.352 GB, free: 9.484 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.387e-06/0.3121, allocations: 3.938 kB / 1.352 GB, free: 9.48 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.3121, allocations: 0 / 1.352 GB, free: 9.48 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.464e-06/0.3121, allocations: 0 / 1.352 GB, free: 9.48 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002575/0.3124, allocations: 220.7 kB / 1.352 GB, free: 9.223 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.3124, allocations: 4 kB / 1.352 GB, free: 9.219 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001809/0.3126, allocations: 43.92 kB / 1.352 GB, free: 9.176 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.654e-06/0.3126, allocations: 3.938 kB / 1.352 GB, free: 9.172 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.393e-05/0.3126, allocations: 3.984 kB / 1.352 GB, free: 9.168 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.379e-06/0.3126, allocations: 7.938 kB / 1.352 GB, free: 9.16 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.3126, allocations: 0 / 1.352 GB, free: 9.16 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006628/0.3132, allocations: 351.2 kB / 1.353 GB, free: 8.801 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 2.098e-05/0.3133, allocations: 7.953 kB / 1.353 GB, free: 8.793 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.067e-05/0.3133, allocations: 4.031 kB / 1.353 GB, free: 8.789 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001808/0.3135, allocations: 35.88 kB / 1.353 GB, free: 8.754 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.532e-05/0.3135, allocations: 3.984 kB / 1.353 GB, free: 8.75 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.201e-05/0.3135, allocations: 4 kB / 1.353 GB, free: 8.746 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0001012/0.3136, allocations: 128.1 kB / 1.353 GB, free: 8.621 MB / 1.045 GB Notification: Performance of sort global known variables: time 7e-08/0.3136, allocations: 0 / 1.353 GB, free: 8.621 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002297/0.3138, allocations: 16 kB / 1.353 GB, free: 8.605 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.0009443/0.3148, allocations: 0.884 MB / 1.354 GB, free: 7.695 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0006133/0.3154, allocations: 235.8 kB / 1.354 GB, free: 7.465 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.3154, allocations: 0 / 1.354 GB, free: 7.465 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0003019/0.3157, allocations: 115.9 kB / 1.354 GB, free: 7.352 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002145/0.3159, allocations: 15.84 kB / 1.354 GB, free: 7.336 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003209/0.3191, allocations: 2.347 MB / 1.356 GB, free: 4.91 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002915/0.3194, allocations: 0.6963 MB / 1.357 GB, free: 4.188 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 8.952e-05/0.3195, allocations: 31.92 kB / 1.357 GB, free: 4.156 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.699e-05/0.3196, allocations: 39.34 kB / 1.357 GB, free: 4.117 MB / 1.045 GB Notification: Performance of SimCode: time 2.71e-07/0.3196, allocations: 0 / 1.357 GB, free: 4.117 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02156/0.3411, allocations: 2.792 MB / 1.36 GB, free: 1.477 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.997/10.34, allocations: 10 kB / 1.36 GB, free: 1.469 MB / 1.045 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.545504787005484]