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.001354/0.001354, allocations: 97.88 kB / 19.73 MB, free: 2.117 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.001436/0.001436, allocations: 218.7 kB / 23.03 MB, free: 4.922 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.457/1.457, allocations: 230.6 MB / 256.8 MB, free: 7.809 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 3.078/3.078, allocations: 0.5003 GB / 0.8062 GB, free: 28.33 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.001938/0.001938, allocations: 62.94 kB / 1.171 GB, free: 19.54 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3483/0.3503, allocations: 179 MB / 1.345 GB, free: 15.95 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar): time 0.003174/0.3535, allocations: 1.584 MB / 1.347 GB, free: 14.35 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001196/0.3547, allocations: 0.6079 MB / 1.347 GB, free: 13.73 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.538e-05/0.3547, allocations: 0 / 1.347 GB, free: 13.73 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 4.766e-05/0.3548, allocations: 3.938 kB / 1.347 GB, free: 13.73 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 9.324e-05/0.3549, allocations: 15.86 kB / 1.347 GB, free: 13.71 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003837/0.3552, allocations: 59.86 kB / 1.348 GB, free: 13.66 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0001245/0.3554, allocations: 51.84 kB / 1.348 GB, free: 13.61 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 9.2e-05/0.3555, allocations: 8.281 kB / 1.348 GB, free: 13.6 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001278/0.3556, allocations: 35.8 kB / 1.348 GB, free: 13.56 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 6.709e-05/0.3557, allocations: 35.83 kB / 1.348 GB, free: 13.53 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 1.999e-05/0.3557, allocations: 4 kB / 1.348 GB, free: 13.52 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001453/0.3558, allocations: 51.95 kB / 1.348 GB, free: 13.47 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 6.38e-05/0.3559, allocations: 23.91 kB / 1.348 GB, free: 13.45 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 3.343e-05/0.3559, allocations: 15.88 kB / 1.348 GB, free: 13.43 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0001934/0.3561, allocations: 103.6 kB / 1.348 GB, free: 13.33 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 6.583e-06/0.3561, allocations: 4 kB / 1.348 GB, free: 13.33 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.243e-06/0.3561, allocations: 0 / 1.348 GB, free: 13.33 MB / 1.045 GB Notification: Performance of Transformations before backend: time 5.37e-06/0.3561, allocations: 0 / 1.348 GB, free: 13.33 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.0005663/0.3567, allocations: 317.8 kB / 1.348 GB, free: 12.99 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.119e-05/0.3567, allocations: 12.03 kB / 1.348 GB, free: 12.98 MB / 1.045 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.834e-05/0.3567, allocations: 192 / 1.348 GB, free: 12.98 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.639e-05/0.3568, allocations: 38.73 kB / 1.348 GB, free: 12.93 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001001/0.3578, allocations: 220.5 kB / 1.348 GB, free: 12.71 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000228/0.358, allocations: 159.8 kB / 1.349 GB, free: 12.54 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.451e-05/0.3581, allocations: 67.45 kB / 1.349 GB, free: 12.46 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.693e-05/0.3581, allocations: 4 kB / 1.349 GB, free: 12.45 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000442/0.3585, allocations: 173.5 kB / 1.349 GB, free: 12.28 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.274e-06/0.3586, allocations: 0 / 1.349 GB, free: 12.28 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.3e-05/0.3586, allocations: 0 / 1.349 GB, free: 12.28 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.218e-06/0.3586, allocations: 0 / 1.349 GB, free: 12.28 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006352/0.3592, allocations: 239.7 kB / 1.349 GB, free: 12.04 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008625/0.3601, allocations: 482.6 kB / 1.349 GB, free: 11.53 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006102/0.3607, allocations: 230.3 kB / 1.35 GB, free: 11.29 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003122/0.361, allocations: 116.8 kB / 1.35 GB, free: 11.18 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 1.771e-05/0.361, allocations: 0 / 1.35 GB, free: 11.18 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.93e-05/0.361, allocations: 42.55 kB / 1.35 GB, free: 11.12 MB / 1.045 GB Notification: Performance of pre-optimization done (n=2): time 1.092e-06/0.361, allocations: 4 kB / 1.35 GB, free: 11.12 MB / 1.045 GB Notification: Performance of matching and sorting (n=2): time 0.001039/0.3621, allocations: 365.2 kB / 1.35 GB, free: 10.76 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.782e-05/0.3621, allocations: 55.34 kB / 1.35 GB, free: 10.69 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001733/0.3623, allocations: 179.4 kB / 1.35 GB, free: 10.51 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 2.6e-05/0.3623, allocations: 25.7 kB / 1.35 GB, free: 10.48 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 6.587e-05/0.3624, allocations: 100.2 kB / 1.351 GB, free: 10.38 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 2.873e-05/0.3624, allocations: 15.88 kB / 1.351 GB, free: 10.36 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.729e-05/0.3625, allocations: 25.83 kB / 1.351 GB, free: 10.33 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001497/0.3626, allocations: 318.8 kB / 1.351 GB, free: 10.01 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000308/0.3629, allocations: 111.9 kB / 1.351 GB, free: 9.898 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002964/0.3632, allocations: 115.9 kB / 1.351 GB, free: 9.785 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005594/0.3638, allocations: 204.6 kB / 1.351 GB, free: 9.582 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.3638, allocations: 0 / 1.351 GB, free: 9.582 MB / 1.045 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0006585/0.3645, allocations: 257.4 kB / 1.352 GB, free: 9.324 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.774e-05/0.3645, allocations: 7.938 kB / 1.352 GB, free: 9.316 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.609e-06/0.3645, allocations: 0 / 1.352 GB, free: 9.316 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.631e-05/0.3645, allocations: 0 / 1.352 GB, free: 9.316 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002289/0.3647, allocations: 47.86 kB / 1.352 GB, free: 9.27 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.131e-06/0.3647, allocations: 0 / 1.352 GB, free: 9.27 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001686/0.3649, allocations: 43.91 kB / 1.352 GB, free: 9.227 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.767e-05/0.3649, allocations: 7.984 kB / 1.352 GB, free: 9.219 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.0001012/0.365, allocations: 117.8 kB / 1.352 GB, free: 9.094 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.866e-05/0.3651, allocations: 11.89 kB / 1.352 GB, free: 9.082 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.397e-05/0.3651, allocations: 11.97 kB / 1.352 GB, free: 9.066 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.679e-06/0.3651, allocations: 3.938 kB / 1.352 GB, free: 9.062 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.396e-06/0.3651, allocations: 0 / 1.352 GB, free: 9.062 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.414e-06/0.3651, allocations: 4 kB / 1.352 GB, free: 9.059 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002658/0.3654, allocations: 204.7 kB / 1.352 GB, free: 8.816 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.537e-06/0.3654, allocations: 4 kB / 1.352 GB, free: 8.812 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001934/0.3656, allocations: 43.86 kB / 1.352 GB, free: 8.77 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.3656, allocations: 0 / 1.352 GB, free: 8.77 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.824e-05/0.3656, allocations: 7.984 kB / 1.352 GB, free: 8.762 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.985e-06/0.3656, allocations: 3.938 kB / 1.352 GB, free: 8.758 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.3656, allocations: 4 kB / 1.352 GB, free: 8.754 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007045/0.3663, allocations: 351.2 kB / 1.352 GB, free: 8.395 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 2.299e-05/0.3663, allocations: 7.953 kB / 1.352 GB, free: 8.387 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.391e-05/0.3663, allocations: 0 / 1.352 GB, free: 8.387 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002155/0.3666, allocations: 39.88 kB / 1.352 GB, free: 8.348 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.97e-05/0.3666, allocations: 7.969 kB / 1.352 GB, free: 8.34 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.119e-05/0.3666, allocations: 0 / 1.352 GB, free: 8.34 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.000108/0.3667, allocations: 135.2 kB / 1.353 GB, free: 8.207 MB / 1.045 GB Notification: Performance of sort global known variables: time 8e-08/0.3667, allocations: 0 / 1.353 GB, free: 8.207 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002483/0.367, allocations: 16.03 kB / 1.353 GB, free: 8.191 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.001092/0.368, allocations: 0.8865 MB / 1.353 GB, free: 7.281 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0006443/0.3687, allocations: 231.8 kB / 1.354 GB, free: 7.055 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.3687, allocations: 0 / 1.354 GB, free: 7.055 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0003318/0.369, allocations: 123.8 kB / 1.354 GB, free: 6.934 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002387/0.3693, allocations: 15.84 kB / 1.354 GB, free: 6.918 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003446/0.3727, allocations: 2.34 MB / 1.356 GB, free: 4.5 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.757e-05/0.3728, allocations: 79.59 kB / 1.356 GB, free: 4.398 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 9.755e-05/0.3729, allocations: 24 kB / 1.356 GB, free: 4.375 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.458e-05/0.373, allocations: 35.34 kB / 1.356 GB, free: 4.34 MB / 1.045 GB Notification: Performance of SimCode: time 4.71e-07/0.373, allocations: 0 / 1.356 GB, free: 4.34 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02357/0.3965, allocations: 2.899 MB / 1.359 GB, free: 1.605 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.26/11.65, allocations: 8.375 kB / 1.359 GB, free: 1.602 MB / 1.045 GB " [Timeout remaining time 288] (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: 18.121126079000533]