Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001452/0.001452, allocations: 113.5 kB / 19.73 MB, free: 2.242 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.001624/0.001624, allocations: 219.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.366/1.366, allocations: 230.6 MB / 256.8 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.143/3.143, allocations: 0.49 GB / 0.7959 GB, free: 33.4 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/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_12_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar,fileNamePrefix="Buildings_12_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.001928/0.001928, allocations: 71.41 kB / 1.155 GB, free: 25.68 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3601/0.362, allocations: 176.1 MB / 1.327 GB, free: 1.949 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar): time 0.003057/0.3651, allocations: 1.617 MB / 1.328 GB, free: 336 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001196/0.3663, allocations: 0.6662 MB / 1.329 GB, free: 15.66 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.171e-05/0.3664, allocations: 0 / 1.329 GB, free: 15.66 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 4.475e-05/0.3664, allocations: 7.938 kB / 1.329 GB, free: 15.65 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 8.352e-05/0.3665, allocations: 15.86 kB / 1.329 GB, free: 15.63 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003057/0.3668, allocations: 63.81 kB / 1.329 GB, free: 15.57 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0001112/0.3669, allocations: 47.84 kB / 1.329 GB, free: 15.52 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 9.344e-05/0.367, allocations: 12.27 kB / 1.329 GB, free: 15.51 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002012/0.3672, allocations: 31.84 kB / 1.329 GB, free: 15.48 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 6.455e-05/0.3673, allocations: 23.92 kB / 1.329 GB, free: 15.46 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.513e-05/0.3673, allocations: 4 kB / 1.329 GB, free: 15.45 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000141/0.3674, allocations: 63.94 kB / 1.329 GB, free: 15.39 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 5.517e-05/0.3675, allocations: 23.92 kB / 1.329 GB, free: 15.37 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 4.447e-05/0.3675, allocations: 39.72 kB / 1.329 GB, free: 15.33 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001921/0.3677, allocations: 99.56 kB / 1.329 GB, free: 15.23 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.3677, allocations: 0 / 1.329 GB, free: 15.23 MB / 1.029 GB Notification: Performance of FrontEnd: time 9.01e-07/0.3677, allocations: 0 / 1.329 GB, free: 15.23 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.821e-06/0.3677, allocations: 0 / 1.329 GB, free: 15.23 MB / 1.029 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.0005762/0.3683, allocations: 317.8 kB / 1.33 GB, free: 14.89 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.265e-05/0.3683, allocations: 15.97 kB / 1.33 GB, free: 14.88 MB / 1.029 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.344e-05/0.3683, allocations: 4.188 kB / 1.33 GB, free: 14.87 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.457e-05/0.3684, allocations: 34.75 kB / 1.33 GB, free: 14.83 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009671/0.3693, allocations: 220.5 kB / 1.33 GB, free: 14.61 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002474/0.3696, allocations: 156.8 kB / 1.33 GB, free: 14.44 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.877e-05/0.3697, allocations: 67.52 kB / 1.33 GB, free: 14.36 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.572e-05/0.3697, allocations: 0 / 1.33 GB, free: 14.36 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004329/0.3701, allocations: 173.5 kB / 1.33 GB, free: 14.18 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.955e-06/0.3701, allocations: 4 kB / 1.33 GB, free: 14.18 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.409e-05/0.3701, allocations: 0 / 1.33 GB, free: 14.18 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.068e-06/0.3701, allocations: 0 / 1.33 GB, free: 14.18 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005983/0.3707, allocations: 235.8 kB / 1.33 GB, free: 13.95 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008861/0.3716, allocations: 487 kB / 1.331 GB, free: 13.43 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006045/0.3722, allocations: 246.3 kB / 1.331 GB, free: 13.18 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003002/0.3725, allocations: 116.8 kB / 1.331 GB, free: 13.06 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.25e-05/0.3726, allocations: 0 / 1.331 GB, free: 13.06 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.751e-05/0.3726, allocations: 38.5 kB / 1.331 GB, free: 13.01 MB / 1.029 GB Notification: Performance of pre-optimization done (n=2): time 1.002e-06/0.3726, allocations: 4 kB / 1.331 GB, free: 13.01 MB / 1.029 GB Notification: Performance of matching and sorting (n=2): time 0.001006/0.3736, allocations: 369.3 kB / 1.332 GB, free: 12.64 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.387e-05/0.3736, allocations: 59.34 kB / 1.332 GB, free: 12.57 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001661/0.3738, allocations: 166.2 kB / 1.332 GB, free: 12.39 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.067e-05/0.3738, allocations: 25.7 kB / 1.332 GB, free: 12.36 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 7.037e-05/0.3739, allocations: 104.1 kB / 1.332 GB, free: 12.26 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.067e-05/0.3739, allocations: 7.984 kB / 1.332 GB, free: 12.25 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.755e-05/0.374, allocations: 25.69 kB / 1.332 GB, free: 12.22 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001372/0.3741, allocations: 318.8 kB / 1.332 GB, free: 11.9 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002938/0.3744, allocations: 107.9 kB / 1.332 GB, free: 11.79 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002845/0.3747, allocations: 115.9 kB / 1.333 GB, free: 11.68 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005394/0.3752, allocations: 204.7 kB / 1.333 GB, free: 11.48 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.3752, allocations: 4 kB / 1.333 GB, free: 11.47 MB / 1.029 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0006333/0.3759, allocations: 257.3 kB / 1.333 GB, free: 11.21 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.703e-05/0.3759, allocations: 4 kB / 1.333 GB, free: 11.21 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.987e-06/0.3759, allocations: 0 / 1.333 GB, free: 11.21 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.447e-05/0.3759, allocations: 0 / 1.333 GB, free: 11.21 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002125/0.3761, allocations: 59.81 kB / 1.333 GB, free: 11.15 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.863e-06/0.3761, allocations: 0 / 1.333 GB, free: 11.15 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000155/0.3763, allocations: 31.94 kB / 1.333 GB, free: 11.12 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.43e-05/0.3763, allocations: 7.984 kB / 1.333 GB, free: 11.11 MB / 1.029 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.0001008/0.3764, allocations: 120.1 kB / 1.333 GB, free: 10.99 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.276e-05/0.3764, allocations: 15.89 kB / 1.333 GB, free: 10.97 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.757e-05/0.3765, allocations: 11.97 kB / 1.333 GB, free: 10.96 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.3765, allocations: 3.938 kB / 1.333 GB, free: 10.95 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.3765, allocations: 0 / 1.333 GB, free: 10.95 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.3765, allocations: 0 / 1.333 GB, free: 10.95 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00027/0.3767, allocations: 220.7 kB / 1.333 GB, free: 10.7 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.3767, allocations: 0 / 1.333 GB, free: 10.7 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001838/0.3769, allocations: 43.92 kB / 1.334 GB, free: 10.65 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.606e-06/0.3769, allocations: 3.984 kB / 1.334 GB, free: 10.65 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.255e-05/0.3769, allocations: 4 kB / 1.334 GB, free: 10.64 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.126e-06/0.377, allocations: 3.938 kB / 1.334 GB, free: 10.64 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.377, allocations: 0 / 1.334 GB, free: 10.64 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006936/0.3776, allocations: 359.2 kB / 1.334 GB, free: 10.27 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.093e-05/0.3777, allocations: 7.953 kB / 1.334 GB, free: 10.27 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.463e-05/0.3777, allocations: 0 / 1.334 GB, free: 10.27 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001925/0.3779, allocations: 47.89 kB / 1.334 GB, free: 10.22 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.2e-05/0.3779, allocations: 0 / 1.334 GB, free: 10.22 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.245e-05/0.3779, allocations: 3.984 kB / 1.334 GB, free: 10.21 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001088/0.378, allocations: 125.7 kB / 1.334 GB, free: 10.09 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.2e-07/0.378, allocations: 3.938 kB / 1.334 GB, free: 10.09 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002651/0.3783, allocations: 23.94 kB / 1.334 GB, free: 10.07 MB / 1.029 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.001084/0.3794, allocations: 0.8879 MB / 1.335 GB, free: 9.152 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0006457/0.38, allocations: 231.8 kB / 1.335 GB, free: 8.926 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.38, allocations: 0 / 1.335 GB, free: 8.926 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.000313/0.3803, allocations: 119.9 kB / 1.335 GB, free: 8.809 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002328/0.3806, allocations: 15.45 kB / 1.335 GB, free: 8.797 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003468/0.384, allocations: 2.351 MB / 1.338 GB, free: 6.367 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003197/0.3844, allocations: 0.7002 MB / 1.338 GB, free: 5.641 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 9.058e-05/0.3845, allocations: 20 kB / 1.338 GB, free: 5.621 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.529e-05/0.3845, allocations: 31.41 kB / 1.338 GB, free: 5.594 MB / 1.029 GB Notification: Performance of SimCode: time 5.81e-07/0.3845, allocations: 4 kB / 1.338 GB, free: 5.59 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02247/0.407, allocations: 2.809 MB / 1.341 GB, free: 2.926 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.94/11.34, allocations: 5.859 kB / 1.341 GB, free: 2.922 MB / 1.029 GB " [Timeout remaining time 289] (rm -f Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe ; mkfifo Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe >> ../files/Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar_res.mat --tempDir=temp_Buildings_12_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar_fmu --startTime=0 --stopTime=86400 --stepSize=34.56 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar.fmu > Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 17.98889615701046]