Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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_9_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar,fileNamePrefix="Buildings_9_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.001516/0.001516, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001794/0.001794, allocations: 197.9 kB / 16.14 MB, free: 6.719 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.314/1.314, allocations: 222.9 MB / 239.8 MB, free: 4.609 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.15/2.15, allocations: 390.2 MB / 0.6643 GB, free: 0.5859 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001263/0.001263, allocations: 63.89 kB / 0.812 GB, free: 14.75 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4961/0.4974, allocations: 140.4 MB / 0.9491 GB, free: 9.148 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar): time 0.002193/0.4996, allocations: 1.629 MB / 0.9507 GB, free: 7.875 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0007136/0.5004, allocations: 0.5973 MB / 0.9512 GB, free: 7.406 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.966e-05/0.5004, allocations: 1.375 kB / 0.9512 GB, free: 7.406 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 4.069e-05/0.5005, allocations: 3.984 kB / 0.9512 GB, free: 7.402 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.907e-05/0.5005, allocations: 5.312 kB / 0.9512 GB, free: 7.398 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000196/0.5007, allocations: 45.64 kB / 0.9513 GB, free: 7.367 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.714e-05/0.5008, allocations: 44.47 kB / 0.9513 GB, free: 7.344 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 7.669e-05/0.5009, allocations: 17.48 kB / 0.9513 GB, free: 7.332 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.441e-05/0.501, allocations: 22.39 kB / 0.9514 GB, free: 7.32 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.263e-05/0.5011, allocations: 26.47 kB / 0.9514 GB, free: 7.301 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.498e-05/0.5011, allocations: 2.594 kB / 0.9514 GB, free: 7.301 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001086/0.5012, allocations: 51.05 kB / 0.9514 GB, free: 7.273 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.847e-05/0.5012, allocations: 23.47 kB / 0.9515 GB, free: 7.258 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.237e-05/0.5013, allocations: 29.75 kB / 0.9515 GB, free: 7.234 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001293/0.5014, allocations: 87.78 kB / 0.9516 GB, free: 7.18 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.105e-06/0.5014, allocations: 0 / 0.9516 GB, free: 7.18 MB / 0.7169 GB Notification: Performance of FrontEnd: time 6.81e-07/0.5014, allocations: 3.938 kB / 0.9516 GB, free: 7.176 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.076e-06/0.5014, allocations: 4 kB / 0.9516 GB, free: 7.172 MB / 0.7169 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.0003961/0.5018, allocations: 395 kB / 0.952 GB, free: 6.766 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.229e-05/0.5019, allocations: 9.562 kB / 0.952 GB, free: 6.766 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.204e-05/0.5019, allocations: 39.89 kB / 0.952 GB, free: 6.719 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008975/0.5028, allocations: 207.8 kB / 0.9522 GB, free: 6.613 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.625e-05/0.5029, allocations: 195.5 kB / 0.9524 GB, free: 6.395 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.419e-05/0.503, allocations: 33.08 kB / 0.9524 GB, free: 6.359 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.818e-05/0.503, allocations: 2.656 kB / 0.9524 GB, free: 6.359 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003904/0.5034, allocations: 180.4 kB / 0.9526 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.203e-06/0.5034, allocations: 1.219 kB / 0.9526 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.355e-05/0.5034, allocations: 0 / 0.9526 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.341e-06/0.5034, allocations: 1.344 kB / 0.9526 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005622/0.504, allocations: 233.2 kB / 0.9528 GB, free: 6.156 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007174/0.5047, allocations: 0.5059 MB / 0.9533 GB, free: 5.734 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005596/0.5053, allocations: 241.4 kB / 0.9535 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000283/0.5056, allocations: 120.4 kB / 0.9537 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.289e-05/0.5056, allocations: 0 / 0.9537 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.356e-05/0.5056, allocations: 35.91 kB / 0.9537 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 9.02e-07/0.5056, allocations: 0 / 0.9537 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0009384/0.5066, allocations: 361.4 kB / 0.954 GB, free: 5.352 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.717e-05/0.5066, allocations: 60.55 kB / 0.9541 GB, free: 5.281 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001121/0.5067, allocations: 174.1 kB / 0.9543 GB, free: 5.145 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.15e-05/0.5067, allocations: 29.7 kB / 0.9543 GB, free: 5.109 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.134e-05/0.5068, allocations: 105.1 kB / 0.9544 GB, free: 5.008 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.852e-05/0.5068, allocations: 9.203 kB / 0.9544 GB, free: 5 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.537e-05/0.5068, allocations: 21.98 kB / 0.9544 GB, free: 4.977 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.619e-05/0.5069, allocations: 321.7 kB / 0.9547 GB, free: 4.656 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002804/0.5072, allocations: 113.8 kB / 0.9548 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002695/0.5075, allocations: 111.5 kB / 0.9549 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004865/0.5079, allocations: 202.8 kB / 0.9551 GB, free: 4.477 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.508, allocations: 0 / 0.9551 GB, free: 4.477 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0005701/0.5085, allocations: 254.5 kB / 0.9554 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.191e-05/0.5086, allocations: 7.25 kB / 0.9554 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.965e-06/0.5086, allocations: 4.031 kB / 0.9554 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.071e-05/0.5086, allocations: 0 / 0.9554 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002027/0.5088, allocations: 49.41 kB / 0.9554 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.102e-06/0.5088, allocations: 5.719 kB / 0.9554 GB, free: 4.312 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000155/0.509, allocations: 36.91 kB / 0.9555 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.44e-05/0.509, allocations: 10.05 kB / 0.9555 GB, free: 4.285 MB / 0.7169 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 5.708e-05/0.509, allocations: 114.1 kB / 0.9556 GB, free: 4.168 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.728e-05/0.5091, allocations: 7.875 kB / 0.9556 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.802e-05/0.5091, allocations: 15.61 kB / 0.9556 GB, free: 4.156 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.223e-06/0.5091, allocations: 0 / 0.9556 GB, free: 4.156 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.5091, allocations: 5.25 kB / 0.9556 GB, free: 4.152 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.723e-06/0.5091, allocations: 0 / 0.9556 GB, free: 4.152 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001875/0.5093, allocations: 250.4 kB / 0.9559 GB, free: 3.91 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.5093, allocations: 1.375 kB / 0.9559 GB, free: 3.91 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001863/0.5095, allocations: 49.17 kB / 0.9559 GB, free: 3.883 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.453e-06/0.5095, allocations: 0 / 0.9559 GB, free: 3.883 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.426e-05/0.5095, allocations: 9.188 kB / 0.9559 GB, free: 3.875 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.5096, allocations: 1.281 kB / 0.9559 GB, free: 3.875 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.5096, allocations: 7.922 kB / 0.9559 GB, free: 3.867 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005979/0.5102, allocations: 351.4 kB / 0.9563 GB, free: 3.637 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.342e-05/0.5102, allocations: 91.61 kB / 0.9564 GB, free: 3.531 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.259e-05/0.5102, allocations: 1.312 kB / 0.9564 GB, free: 3.531 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000191/0.5104, allocations: 33.19 kB / 0.9564 GB, free: 3.516 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.33e-05/0.5105, allocations: 9.047 kB / 0.9564 GB, free: 3.508 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.16e-05/0.5105, allocations: 1.094 kB / 0.9564 GB, free: 3.508 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 7.213e-05/0.5106, allocations: 129.5 kB / 0.9565 GB, free: 3.41 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.21e-07/0.5106, allocations: 0 / 0.9565 GB, free: 3.41 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002467/0.5108, allocations: 19.31 kB / 0.9565 GB, free: 3.406 MB / 0.7169 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.0007536/0.5116, allocations: 0.8773 MB / 0.9574 GB, free: 2.652 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0005944/0.5122, allocations: 240.9 kB / 0.9576 GB, free: 2.551 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.784e-06/0.5122, allocations: 0 / 0.9576 GB, free: 2.551 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002811/0.5125, allocations: 118.4 kB / 0.9577 GB, free: 2.504 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002224/0.5127, allocations: 10.69 kB / 0.9577 GB, free: 2.496 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002776/0.5155, allocations: 2.351 MB / 0.96 GB, free: 0.7891 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.383e-05/0.5156, allocations: 0.6931 MB / 0.9607 GB, free: 88 kB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0001066/0.5157, allocations: 24.98 kB / 0.9607 GB, free: 76 kB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.914e-05/0.5158, allocations: 28.27 kB / 0.9608 GB, free: 52 kB / 0.7169 GB Notification: Performance of SimCode: time 3.1e-07/0.5158, allocations: 0 / 0.9608 GB, free: 52 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1223/0.638, allocations: 2.451 MB / 0.9632 GB, free: 14.83 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002008/0.6383, allocations: 200.7 kB / 0.9634 GB, free: 14.58 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.695/2.333, allocations: 0 / 0.9634 GB, free: 14.58 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe ; mkfifo Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe >> ../files/Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar.fmu > Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe 2>&1)