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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.001075/0.001075, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001099/0.001099, allocations: 198.6 kB / 16.53 MB, free: 6.391 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.285/1.285, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.453/2.453, allocations: 437 MB / 0.7104 GB, free: 5.113 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002091/0.002091, allocations: 59.91 kB / 0.8694 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5268/0.5289, allocations: 151.6 MB / 1.017 GB, free: 2.465 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar): time 0.002609/0.5316, allocations: 1.586 MB / 1.019 GB, free: 0.8672 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0008994/0.5325, allocations: 0.5853 MB / 1.02 GB, free: 280 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.712e-05/0.5326, allocations: 4 kB / 1.02 GB, free: 276 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.876e-05/0.5326, allocations: 3.938 kB / 1.02 GB, free: 272 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 6.756e-05/0.5327, allocations: 11.92 kB / 1.02 GB, free: 260 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002602/0.5329, allocations: 55.81 kB / 1.02 GB, free: 204 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 8.155e-05/0.533, allocations: 47.8 kB / 1.02 GB, free: 156 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 8.736e-05/0.5331, allocations: 23.89 kB / 1.02 GB, free: 132 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 8.395e-05/0.5332, allocations: 19.92 kB / 1.02 GB, free: 112 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 6.818e-05/0.5333, allocations: 27.84 kB / 1.02 GB, free: 84 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.646e-05/0.5333, allocations: 4 kB / 1.02 GB, free: 80 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000122/0.5335, allocations: 51.89 kB / 1.02 GB, free: 28 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 5.122e-05/0.5335, allocations: 23.92 kB / 1.02 GB, free: 4 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 4.853e-05/0.5336, allocations: 31.91 kB / 1.02 GB, free: 15.97 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001574/0.5337, allocations: 93.88 kB / 1.02 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.5337, allocations: 0 / 1.02 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.152e-06/0.5337, allocations: 4 kB / 1.02 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.248e-06/0.5338, allocations: 0 / 1.02 GB, free: 15.88 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.0005088/0.5343, allocations: 387.8 kB / 1.02 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.4e-05/0.5343, allocations: 8.031 kB / 1.02 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.336e-05/0.5344, allocations: 34.75 kB / 1.02 GB, free: 15.4 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008994/0.5353, allocations: 208.5 kB / 1.021 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001439/0.5354, allocations: 193.8 kB / 1.021 GB, free: 14.97 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.095e-05/0.5355, allocations: 38 kB / 1.021 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.75e-05/0.5355, allocations: 4 kB / 1.021 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004072/0.5359, allocations: 177.4 kB / 1.021 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.618e-06/0.5359, allocations: 4 kB / 1.021 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.254e-05/0.536, allocations: 3.938 kB / 1.021 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.997e-06/0.536, allocations: 0 / 1.021 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006049/0.5366, allocations: 235.7 kB / 1.021 GB, free: 14.51 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007818/0.5374, allocations: 0.5155 MB / 1.022 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005679/0.5379, allocations: 242.3 kB / 1.022 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002872/0.5382, allocations: 116.8 kB / 1.022 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.363e-05/0.5383, allocations: 8 kB / 1.022 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.894e-05/0.5383, allocations: 30.56 kB / 1.022 GB, free: 13.53 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=2): time 1.022e-06/0.5383, allocations: 0 / 1.022 GB, free: 13.53 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2): time 0.0009556/0.5393, allocations: 369.2 kB / 1.022 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.421e-05/0.5393, allocations: 55.34 kB / 1.022 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001362/0.5394, allocations: 176.5 kB / 1.023 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.663e-05/0.5395, allocations: 25.7 kB / 1.023 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.094e-05/0.5395, allocations: 100.1 kB / 1.023 GB, free: 12.78 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.971e-05/0.5396, allocations: 7.891 kB / 1.023 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.12e-05/0.5396, allocations: 21.7 kB / 1.023 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 8.992e-05/0.5397, allocations: 322.8 kB / 1.023 GB, free: 12.42 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003008/0.54, allocations: 115.9 kB / 1.023 GB, free: 12.31 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002942/0.5403, allocations: 107.9 kB / 1.023 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005272/0.5408, allocations: 200.7 kB / 1.023 GB, free: 12 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.5409, allocations: 0 / 1.023 GB, free: 12 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0006188/0.5415, allocations: 257.3 kB / 1.024 GB, free: 11.75 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.292e-05/0.5415, allocations: 12.03 kB / 1.024 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.5415, allocations: 3.984 kB / 1.024 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.588e-06/0.5415, allocations: 0 / 1.024 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002114/0.5417, allocations: 39.92 kB / 1.024 GB, free: 11.69 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.38e-06/0.5418, allocations: 3.938 kB / 1.024 GB, free: 11.69 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001655/0.5419, allocations: 43.94 kB / 1.024 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.388e-05/0.542, allocations: 3.984 kB / 1.024 GB, free: 11.64 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 7.868e-05/0.542, allocations: 117.8 kB / 1.024 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.978e-05/0.5421, allocations: 11.81 kB / 1.024 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.819e-05/0.5421, allocations: 7.875 kB / 1.024 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.433e-06/0.5421, allocations: 0 / 1.024 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/0.5421, allocations: 7.938 kB / 1.024 GB, free: 11.49 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.144e-06/0.5421, allocations: 3.938 kB / 1.024 GB, free: 11.49 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002406/0.5424, allocations: 249.6 kB / 1.024 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.5424, allocations: 0 / 1.024 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001929/0.5426, allocations: 47.84 kB / 1.024 GB, free: 11.15 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.377e-06/0.5426, allocations: 4 kB / 1.024 GB, free: 11.14 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.094e-05/0.5426, allocations: 0 / 1.024 GB, free: 11.14 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.323e-06/0.5426, allocations: 0 / 1.024 GB, free: 11.14 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.5426, allocations: 3.938 kB / 1.024 GB, free: 11.14 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006641/0.5433, allocations: 355.1 kB / 1.025 GB, free: 10.78 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.298e-05/0.5433, allocations: 93 kB / 1.025 GB, free: 10.67 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.278e-05/0.5434, allocations: 0 / 1.025 GB, free: 10.67 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001925/0.5436, allocations: 31.94 kB / 1.025 GB, free: 10.64 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.062e-05/0.5436, allocations: 7.938 kB / 1.025 GB, free: 10.63 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.122e-05/0.5436, allocations: 3.984 kB / 1.025 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 9.323e-05/0.5437, allocations: 129 kB / 1.025 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5437, allocations: 0 / 1.025 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.000248/0.544, allocations: 16 kB / 1.025 GB, free: 10.48 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.0009252/0.5449, allocations: 0.884 MB / 1.026 GB, free: 9.57 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0006165/0.5455, allocations: 235.8 kB / 1.026 GB, free: 9.34 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.664e-06/0.5456, allocations: 0 / 1.026 GB, free: 9.34 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0003019/0.5459, allocations: 119.9 kB / 1.026 GB, free: 9.223 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002227/0.5461, allocations: 15.88 kB / 1.026 GB, free: 9.207 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003094/0.5492, allocations: 2.321 MB / 1.028 GB, free: 6.809 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002221/0.5494, allocations: 0.7 MB / 1.029 GB, free: 6.082 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001003/0.5495, allocations: 24 kB / 1.029 GB, free: 6.059 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.199e-05/0.5496, allocations: 31.41 kB / 1.029 GB, free: 6.027 MB / 0.7794 GB Notification: Performance of SimCode: time 2.31e-07/0.5496, allocations: 0 / 1.029 GB, free: 6.027 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3093/0.859, allocations: 2.618 MB / 1.032 GB, free: 3.48 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.734/8.593, allocations: 8.875 kB / 1.032 GB, free: 3.477 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)