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.00136/0.00136, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001547/0.001547, allocations: 194.9 kB / 16.25 MB, free: 6.629 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.209/1.209, allocations: 222.9 MB / 239.9 MB, free: 4.523 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.311/2.311, allocations: 437 MB / 0.7101 GB, free: 5.246 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001285/0.001285, allocations: 67.91 kB / 0.8689 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5138/0.5151, allocations: 151.6 MB / 1.017 GB, free: 2.676 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar): time 0.002498/0.5176, allocations: 1.645 MB / 1.019 GB, free: 1.02 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.000823/0.5184, allocations: 0.5854 MB / 1.019 GB, free: 436 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.343e-05/0.5185, allocations: 0 / 1.019 GB, free: 436 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 4.073e-05/0.5185, allocations: 7.875 kB / 1.019 GB, free: 428 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 7.42e-05/0.5186, allocations: 15.92 kB / 1.019 GB, free: 412 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002465/0.5189, allocations: 43.89 kB / 1.019 GB, free: 368 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 7.797e-05/0.519, allocations: 39.92 kB / 1.019 GB, free: 328 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 8.418e-05/0.519, allocations: 23.88 kB / 1.019 GB, free: 304 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 7.642e-05/0.5191, allocations: 23.88 kB / 1.019 GB, free: 280 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 6.535e-05/0.5192, allocations: 27.84 kB / 1.019 GB, free: 252 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.661e-05/0.5192, allocations: 4 kB / 1.019 GB, free: 248 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001147/0.5193, allocations: 59.94 kB / 1.019 GB, free: 188 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 4.679e-05/0.5194, allocations: 19.92 kB / 1.019 GB, free: 168 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 3.982e-05/0.5194, allocations: 31.8 kB / 1.019 GB, free: 136 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001411/0.5196, allocations: 90 kB / 1.019 GB, free: 48 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 2.995e-06/0.5196, allocations: 0 / 1.019 GB, free: 48 kB / 0.7637 GB Notification: Performance of FrontEnd: time 1.272e-06/0.5196, allocations: 0 / 1.019 GB, free: 48 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 3.807e-06/0.5196, allocations: 0 / 1.019 GB, free: 48 kB / 0.7637 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.0004825/0.5201, allocations: 387.1 kB / 1.02 GB, free: 15.62 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.27e-05/0.5201, allocations: 12.03 kB / 1.02 GB, free: 15.61 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.171e-05/0.5202, allocations: 38.75 kB / 1.02 GB, free: 15.56 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009178/0.5211, allocations: 204.5 kB / 1.02 GB, free: 15.36 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001367/0.5213, allocations: 193.7 kB / 1.02 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.45e-05/0.5213, allocations: 49.94 kB / 1.02 GB, free: 15.08 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.652e-05/0.5213, allocations: 4 kB / 1.02 GB, free: 15.08 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004067/0.5218, allocations: 169.5 kB / 1.02 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.62e-06/0.5218, allocations: 0 / 1.02 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.326e-05/0.5218, allocations: 0 / 1.02 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.34e-06/0.5218, allocations: 8 kB / 1.02 GB, free: 14.9 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005836/0.5224, allocations: 235.7 kB / 1.021 GB, free: 14.67 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007937/0.5232, allocations: 0.5076 MB / 1.021 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005714/0.5238, allocations: 238.3 kB / 1.021 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002929/0.5241, allocations: 120.8 kB / 1.022 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.339e-05/0.5241, allocations: 0 / 1.022 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.911e-05/0.5241, allocations: 30.56 kB / 1.022 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=2): time 8.81e-07/0.5241, allocations: 0 / 1.022 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2): time 0.0009771/0.5251, allocations: 377.2 kB / 1.022 GB, free: 13.33 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.127e-05/0.5252, allocations: 55.34 kB / 1.022 GB, free: 13.26 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001356/0.5253, allocations: 167.8 kB / 1.022 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.722e-05/0.5253, allocations: 25.7 kB / 1.022 GB, free: 13.06 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.823e-05/0.5254, allocations: 104.1 kB / 1.022 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.003e-05/0.5254, allocations: 11.83 kB / 1.022 GB, free: 12.94 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.892e-05/0.5255, allocations: 21.73 kB / 1.022 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001108/0.5256, allocations: 322.8 kB / 1.023 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002977/0.5259, allocations: 115.9 kB / 1.023 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002884/0.5262, allocations: 111.9 kB / 1.023 GB, free: 12.37 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005313/0.5267, allocations: 200.6 kB / 1.023 GB, free: 12.17 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.5267, allocations: 4 kB / 1.023 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000637/0.5274, allocations: 249.4 kB / 1.023 GB, free: 11.91 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.232e-05/0.5274, allocations: 8 kB / 1.023 GB, free: 11.91 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.569e-06/0.5274, allocations: 3.984 kB / 1.023 GB, free: 11.9 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.075e-06/0.5274, allocations: 0 / 1.023 GB, free: 11.9 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002139/0.5276, allocations: 43.95 kB / 1.023 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.673e-06/0.5277, allocations: 3.938 kB / 1.023 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001686/0.5278, allocations: 35.94 kB / 1.023 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.712e-05/0.5279, allocations: 3.984 kB / 1.023 GB, free: 11.82 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 9.156e-05/0.528, allocations: 119 kB / 1.023 GB, free: 11.69 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.806e-05/0.528, allocations: 15.75 kB / 1.023 GB, free: 11.68 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.796e-05/0.528, allocations: 15.88 kB / 1.024 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-06/0.528, allocations: 4 kB / 1.024 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.528, allocations: 3.938 kB / 1.024 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.724e-06/0.528, allocations: 0 / 1.024 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002379/0.5283, allocations: 245.6 kB / 1.024 GB, free: 11.37 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.5283, allocations: 0 / 1.024 GB, free: 11.37 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001966/0.5285, allocations: 47.84 kB / 1.024 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.5285, allocations: 8 kB / 1.024 GB, free: 11.31 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.215e-05/0.5285, allocations: 0 / 1.024 GB, free: 11.31 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.5285, allocations: 0 / 1.024 GB, free: 11.31 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.5285, allocations: 3.938 kB / 1.024 GB, free: 11.31 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006548/0.5292, allocations: 355.2 kB / 1.024 GB, free: 10.95 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.115e-05/0.5293, allocations: 89 kB / 1.024 GB, free: 10.84 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.245e-05/0.5293, allocations: 0 / 1.024 GB, free: 10.84 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002006/0.5295, allocations: 35.97 kB / 1.024 GB, free: 10.8 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.712e-05/0.5295, allocations: 11.94 kB / 1.024 GB, free: 10.79 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.21e-05/0.5295, allocations: 3.984 kB / 1.024 GB, free: 10.79 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 8.571e-05/0.5296, allocations: 130.5 kB / 1.024 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.9e-07/0.5296, allocations: 0 / 1.024 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002497/0.5299, allocations: 16 kB / 1.024 GB, free: 10.65 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.00093/0.5308, allocations: 0.8918 MB / 1.025 GB, free: 9.727 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0006391/0.5315, allocations: 235.8 kB / 1.026 GB, free: 9.496 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.5315, allocations: 0 / 1.026 GB, free: 9.496 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0003098/0.5318, allocations: 127.7 kB / 1.026 GB, free: 9.371 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000228/0.532, allocations: 7.938 kB / 1.026 GB, free: 9.363 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003125/0.5352, allocations: 2.337 MB / 1.028 GB, free: 6.949 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002187/0.5354, allocations: 0.7 MB / 1.029 GB, free: 6.223 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001045/0.5355, allocations: 20 kB / 1.029 GB, free: 6.203 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.584e-05/0.5356, allocations: 31.41 kB / 1.029 GB, free: 6.172 MB / 0.7794 GB Notification: Performance of SimCode: time 2.8e-07/0.5356, allocations: 0 / 1.029 GB, free: 6.172 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.038/2.574, allocations: 2.516 MB / 1.031 GB, free: 3.777 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002676/2.574, allocations: 207.8 kB / 1.031 GB, free: 3.52 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.837/5.41, allocations: 3.938 kB / 1.031 GB, free: 3.516 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)