Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar,fileNamePrefix="Buildings_10_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar,fileNamePrefix="Buildings_10_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007753/0.0007755, allocations: 97.8 kB / 15.36 MB, free: 0.7344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00421/0.00421, allocations: 171.2 kB / 16.27 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.238/1.238, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.342/2.342, allocations: 437.8 MB / 0.7121 GB, free: 7.016 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003025/0.0003025, allocations: 15.98 kB / 0.873 GB, free: 3.215 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.535/0.5353, allocations: 153.8 MB / 1.023 GB, free: 15.87 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar): time 0.001621/0.537, allocations: 1.302 MB / 1.024 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.0009421/0.5379, allocations: 0.5855 MB / 1.025 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.44e-05/0.538, allocations: 0 / 1.025 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 2.605e-05/0.538, allocations: 0 / 1.025 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 7.848e-05/0.5381, allocations: 7.938 kB / 1.025 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002415/0.5383, allocations: 47.88 kB / 1.025 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 8.301e-05/0.5384, allocations: 51.73 kB / 1.025 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 9.031e-05/0.5385, allocations: 27.88 kB / 1.025 GB, free: 13.83 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 8.086e-05/0.5386, allocations: 15.94 kB / 1.025 GB, free: 13.81 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 7.407e-05/0.5387, allocations: 23.84 kB / 1.025 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.283e-05/0.5387, allocations: 0 / 1.025 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001236/0.5389, allocations: 47.95 kB / 1.025 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 5.441e-05/0.5389, allocations: 27.84 kB / 1.025 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 4.549e-05/0.539, allocations: 45.52 kB / 1.025 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001457/0.5391, allocations: 89.98 kB / 1.025 GB, free: 13.58 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.5391, allocations: 8 kB / 1.025 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.643e-06/0.5391, allocations: 0 / 1.025 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.436e-06/0.5392, allocations: 0 / 1.025 GB, free: 13.57 MB / 0.7794 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.0004773/0.5396, allocations: 375.3 kB / 1.026 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.609e-05/0.5397, allocations: 8.031 kB / 1.026 GB, free: 13.15 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.906e-05/0.5397, allocations: 34.75 kB / 1.026 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008805/0.5406, allocations: 212.5 kB / 1.026 GB, free: 12.9 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001471/0.5408, allocations: 189.2 kB / 1.026 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.863e-05/0.5408, allocations: 42 kB / 1.026 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.726e-05/0.5409, allocations: 0 / 1.026 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004139/0.5413, allocations: 189.4 kB / 1.026 GB, free: 12.44 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.823e-06/0.5413, allocations: 0 / 1.026 GB, free: 12.44 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.291e-05/0.5413, allocations: 0 / 1.026 GB, free: 12.44 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.198e-06/0.5413, allocations: 0 / 1.026 GB, free: 12.44 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005917/0.5419, allocations: 239.8 kB / 1.027 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008136/0.5427, allocations: 0.5115 MB / 1.027 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005671/0.5433, allocations: 242.3 kB / 1.027 GB, free: 11.39 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002906/0.5436, allocations: 124.8 kB / 1.027 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.043e-05/0.5436, allocations: 0 / 1.027 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.048e-05/0.5437, allocations: 34.56 kB / 1.027 GB, free: 11.22 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=2): time 8.51e-07/0.5437, allocations: 0 / 1.027 GB, free: 11.22 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2): time 0.0009589/0.5446, allocations: 377.3 kB / 1.028 GB, free: 10.85 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.452e-05/0.5447, allocations: 63.28 kB / 1.028 GB, free: 10.77 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001429/0.5448, allocations: 164.4 kB / 1.028 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.986e-05/0.5449, allocations: 29.7 kB / 1.028 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.365e-05/0.5449, allocations: 100.1 kB / 1.028 GB, free: 10.47 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.876e-05/0.545, allocations: 7.938 kB / 1.028 GB, free: 10.46 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.873e-05/0.545, allocations: 13.72 kB / 1.028 GB, free: 10.44 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.857e-05/0.5451, allocations: 318.8 kB / 1.029 GB, free: 10.12 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000294/0.5454, allocations: 115.9 kB / 1.029 GB, free: 10.01 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002796/0.5457, allocations: 119.9 kB / 1.029 GB, free: 9.891 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005222/0.5462, allocations: 200.7 kB / 1.029 GB, free: 9.691 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.5462, allocations: 0 / 1.029 GB, free: 9.691 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0006162/0.5469, allocations: 265.3 kB / 1.029 GB, free: 9.426 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.434e-05/0.5469, allocations: 12.03 kB / 1.029 GB, free: 9.414 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.897e-06/0.5469, allocations: 3.938 kB / 1.029 GB, free: 9.41 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.06e-05/0.5469, allocations: 0 / 1.029 GB, free: 9.41 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002119/0.5471, allocations: 55.89 kB / 1.029 GB, free: 9.355 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.442e-06/0.5471, allocations: 3.938 kB / 1.029 GB, free: 9.352 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000166/0.5473, allocations: 39.84 kB / 1.029 GB, free: 9.312 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.506e-05/0.5473, allocations: 7.984 kB / 1.029 GB, free: 9.305 MB / 0.7794 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 8.523e-05/0.5474, allocations: 114.4 kB / 1.029 GB, free: 9.184 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.576e-05/0.5475, allocations: 7.906 kB / 1.029 GB, free: 9.176 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.448e-05/0.5475, allocations: 15.86 kB / 1.029 GB, free: 9.164 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.5475, allocations: 3.938 kB / 1.029 GB, free: 9.16 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.551e-06/0.5475, allocations: 3.938 kB / 1.029 GB, free: 9.156 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.517e-06/0.5475, allocations: 4 kB / 1.029 GB, free: 9.152 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002487/0.5478, allocations: 245.6 kB / 1.03 GB, free: 8.863 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.5478, allocations: 0 / 1.03 GB, free: 8.863 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001881/0.548, allocations: 43.92 kB / 1.03 GB, free: 8.82 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.548, allocations: 0 / 1.03 GB, free: 8.82 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.275e-05/0.548, allocations: 3.984 kB / 1.03 GB, free: 8.816 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.548, allocations: 0 / 1.03 GB, free: 8.816 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.548, allocations: 3.938 kB / 1.03 GB, free: 8.812 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006611/0.5487, allocations: 367.1 kB / 1.03 GB, free: 8.438 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.171e-05/0.5487, allocations: 81.02 kB / 1.03 GB, free: 8.34 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.088e-05/0.5488, allocations: 4 kB / 1.03 GB, free: 8.336 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001904/0.549, allocations: 31.94 kB / 1.03 GB, free: 8.305 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.049e-05/0.549, allocations: 15.95 kB / 1.03 GB, free: 8.289 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.001e-05/0.549, allocations: 0 / 1.03 GB, free: 8.289 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 9.406e-05/0.5491, allocations: 130.5 kB / 1.03 GB, free: 8.164 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5491, allocations: 0 / 1.03 GB, free: 8.164 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002685/0.5494, allocations: 24 kB / 1.03 GB, free: 8.141 MB / 0.7794 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.0009263/0.5503, allocations: 0.8802 MB / 1.031 GB, free: 7.23 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0006118/0.551, allocations: 247.7 kB / 1.031 GB, free: 6.988 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.551, allocations: 0 / 1.031 GB, free: 6.988 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0002973/0.5513, allocations: 115.9 kB / 1.032 GB, free: 6.875 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002367/0.5515, allocations: 14.73 kB / 1.032 GB, free: 6.863 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003146/0.5547, allocations: 2.363 MB / 1.034 GB, free: 4.43 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000231/0.5549, allocations: 0.6965 MB / 1.035 GB, free: 3.707 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001081/0.555, allocations: 35.92 kB / 1.035 GB, free: 3.672 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.363e-05/0.5551, allocations: 27.42 kB / 1.035 GB, free: 3.645 MB / 0.7794 GB Notification: Performance of SimCode: time 3.41e-07/0.5551, allocations: 0 / 1.035 GB, free: 3.645 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8012/1.356, allocations: 2.382 MB / 1.037 GB, free: 1.391 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002254/1.357, allocations: 206.4 kB / 1.037 GB, free: 1.133 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.805/3.162, allocations: 0 / 1.037 GB, free: 1.133 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe ; mkfifo Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe >> ../files/Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar.fmu > Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe 2>&1)