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.001295/0.001295, allocations: 116.8 kB / 17.17 MB, free: 5.977 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.001508/0.001508, allocations: 209.5 kB / 20.13 MB, free: 3.035 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.442/1.442, allocations: 230.6 MB / 253.5 MB, free: 15.1 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.952/2.952, allocations: 0.5003 GB / 0.8026 GB, free: 6.879 MB / 0.6387 GB " [Timeout remaining time 176] 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.001964/0.001964, allocations: 67.89 kB / 1.165 GB, free: 0.4922 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8359/0.8378, allocations: 178.9 MB / 1.34 GB, free: 16.25 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar): time 0.00245/0.8403, allocations: 1.604 MB / 1.342 GB, free: 15.14 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.0009145/0.8412, allocations: 0.6424 MB / 1.342 GB, free: 14.7 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.032e-05/0.8413, allocations: 5.094 kB / 1.342 GB, free: 14.69 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 4.235e-05/0.8413, allocations: 10.48 kB / 1.342 GB, free: 14.68 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 7.683e-05/0.8414, allocations: 10.23 kB / 1.342 GB, free: 14.68 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002836/0.8417, allocations: 60.62 kB / 1.342 GB, free: 14.64 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0001013/0.8418, allocations: 48.78 kB / 1.342 GB, free: 14.62 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 8.56e-05/0.8418, allocations: 10.48 kB / 1.342 GB, free: 14.62 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001108/0.842, allocations: 31.92 kB / 1.343 GB, free: 14.61 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 5.493e-05/0.842, allocations: 24.91 kB / 1.343 GB, free: 14.59 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.624e-05/0.842, allocations: 3.625 kB / 1.343 GB, free: 14.59 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001118/0.8421, allocations: 52.42 kB / 1.343 GB, free: 14.58 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 6.986e-05/0.8422, allocations: 32.11 kB / 1.343 GB, free: 14.56 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 3.281e-05/0.8422, allocations: 28.25 kB / 1.343 GB, free: 14.54 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0001747/0.8424, allocations: 95.17 kB / 1.343 GB, free: 14.5 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.097e-06/0.8424, allocations: 0.6094 kB / 1.343 GB, free: 14.5 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.253e-06/0.8424, allocations: 0 / 1.343 GB, free: 14.5 MB / 1.061 GB Notification: Performance of Transformations before backend: time 4.88e-06/0.8424, allocations: 0 / 1.343 GB, free: 14.5 MB / 1.061 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.0004677/0.8429, allocations: 402.7 kB / 1.343 GB, free: 14.11 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.373e-05/0.8429, allocations: 10.75 kB / 1.343 GB, free: 14.11 MB / 1.061 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.562e-05/0.8429, allocations: 4.188 kB / 1.343 GB, free: 14.1 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.01e-05/0.843, allocations: 33.14 kB / 1.343 GB, free: 14.06 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009777/0.8439, allocations: 229.3 kB / 1.343 GB, free: 14.04 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000204/0.8441, allocations: 214 kB / 1.344 GB, free: 13.82 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.91e-05/0.8442, allocations: 35.44 kB / 1.344 GB, free: 13.79 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.797e-05/0.8442, allocations: 6.656 kB / 1.344 GB, free: 13.78 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00042/0.8446, allocations: 169.1 kB / 1.344 GB, free: 13.73 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.909e-06/0.8446, allocations: 4 kB / 1.344 GB, free: 13.73 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.421e-05/0.8447, allocations: 1.094 kB / 1.344 GB, free: 13.73 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.63e-06/0.8447, allocations: 1.734 kB / 1.344 GB, free: 13.73 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005726/0.8452, allocations: 238.5 kB / 1.344 GB, free: 13.69 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007758/0.846, allocations: 0.5028 MB / 1.345 GB, free: 13.36 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005653/0.8466, allocations: 239.6 kB / 1.345 GB, free: 13.31 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002751/0.8468, allocations: 118.7 kB / 1.345 GB, free: 13.29 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.281e-05/0.8469, allocations: 1.984 kB / 1.345 GB, free: 13.29 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.122e-05/0.8469, allocations: 30.56 kB / 1.345 GB, free: 13.25 MB / 1.061 GB Notification: Performance of pre-optimization done (n=2): time 1.203e-06/0.8469, allocations: 5.375 kB / 1.345 GB, free: 13.24 MB / 1.061 GB Notification: Performance of matching and sorting (n=2): time 0.0009459/0.8478, allocations: 368 kB / 1.345 GB, free: 13.16 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.987e-05/0.8478, allocations: 55.34 kB / 1.345 GB, free: 13.1 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001288/0.848, allocations: 171.7 kB / 1.345 GB, free: 12.98 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.311e-05/0.848, allocations: 25.7 kB / 1.345 GB, free: 12.95 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 3.657e-05/0.848, allocations: 103.1 kB / 1.346 GB, free: 12.85 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.133e-05/0.848, allocations: 14.09 kB / 1.346 GB, free: 12.84 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.143e-05/0.8481, allocations: 19.89 kB / 1.346 GB, free: 12.82 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 4.321e-05/0.8481, allocations: 324.6 kB / 1.346 GB, free: 12.5 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002813/0.8484, allocations: 114.2 kB / 1.346 GB, free: 12.49 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002784/0.8487, allocations: 118.4 kB / 1.346 GB, free: 12.47 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005066/0.8492, allocations: 198.9 kB / 1.346 GB, free: 12.44 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.8492, allocations: 0 / 1.346 GB, free: 12.44 MB / 1.061 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0006016/0.8498, allocations: 259 kB / 1.347 GB, free: 12.37 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.334e-05/0.8498, allocations: 4.5 kB / 1.347 GB, free: 12.37 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.079e-06/0.8498, allocations: 0.7031 kB / 1.347 GB, free: 12.37 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.784e-05/0.8498, allocations: 1.188 kB / 1.347 GB, free: 12.37 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002863/0.8501, allocations: 50.83 kB / 1.347 GB, free: 12.36 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.121e-06/0.8501, allocations: 1.344 kB / 1.347 GB, free: 12.36 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001693/0.8503, allocations: 38.11 kB / 1.347 GB, free: 12.36 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.66e-05/0.8503, allocations: 8.578 kB / 1.347 GB, free: 12.36 MB / 1.061 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 6.8e-05/0.8504, allocations: 122.3 kB / 1.347 GB, free: 12.23 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.785e-05/0.8504, allocations: 7.172 kB / 1.347 GB, free: 12.23 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.314e-05/0.8504, allocations: 13.64 kB / 1.347 GB, free: 12.22 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/0.8505, allocations: 4.453 kB / 1.347 GB, free: 12.22 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.586e-06/0.8505, allocations: 0 / 1.347 GB, free: 12.22 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.856e-06/0.8505, allocations: 1.922 kB / 1.347 GB, free: 12.22 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002218/0.8507, allocations: 250.3 kB / 1.347 GB, free: 12 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.8507, allocations: 3.984 kB / 1.347 GB, free: 12 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001941/0.8509, allocations: 48.06 kB / 1.347 GB, free: 12 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.874e-06/0.8509, allocations: 0 / 1.347 GB, free: 12 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.602e-05/0.8509, allocations: 4.281 kB / 1.347 GB, free: 12 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.336e-06/0.8509, allocations: 8.531 kB / 1.347 GB, free: 11.99 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.8509, allocations: 1.062 kB / 1.347 GB, free: 11.99 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006202/0.8515, allocations: 354.2 kB / 1.347 GB, free: 11.82 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 2.731e-05/0.8515, allocations: 84.78 kB / 1.348 GB, free: 11.72 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.214e-05/0.8516, allocations: 2.25 kB / 1.348 GB, free: 11.72 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001846/0.8518, allocations: 41.38 kB / 1.348 GB, free: 11.71 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.128e-05/0.8518, allocations: 1.906 kB / 1.348 GB, free: 11.71 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.403e-05/0.8518, allocations: 4.641 kB / 1.348 GB, free: 11.71 MB / 1.061 GB Notification: Performance of sorting global known variables: time 7.844e-05/0.8519, allocations: 134.2 kB / 1.348 GB, free: 11.62 MB / 1.061 GB Notification: Performance of sort global known variables: time 8.1e-08/0.8519, allocations: 0 / 1.348 GB, free: 11.62 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002538/0.8521, allocations: 14.36 kB / 1.348 GB, free: 11.62 MB / 1.061 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.0008097/0.8529, allocations: 0.889 MB / 1.349 GB, free: 10.92 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0006211/0.8536, allocations: 230.3 kB / 1.349 GB, free: 10.89 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.8536, allocations: 0 / 1.349 GB, free: 10.89 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0003132/0.8539, allocations: 122.8 kB / 1.349 GB, free: 10.88 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002288/0.8541, allocations: 17.41 kB / 1.349 GB, free: 10.86 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003004/0.8571, allocations: 2.343 MB / 1.351 GB, free: 9.441 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001221/0.8572, allocations: 0.6985 MB / 1.352 GB, free: 8.742 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 8.911e-05/0.8573, allocations: 26.17 kB / 1.352 GB, free: 8.734 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.984e-05/0.8574, allocations: 30.8 kB / 1.352 GB, free: 8.715 MB / 1.061 GB Notification: Performance of SimCode: time 6.51e-07/0.8574, allocations: 4 kB / 1.352 GB, free: 8.711 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01925/0.8767, allocations: 2.705 MB / 1.355 GB, free: 8.238 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.312/9.189, allocations: 3.219 kB / 1.355 GB, free: 8.238 MB / 1.061 GB " [Timeout remaining time 291] (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: 15.42071199399652]