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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001439/0.001444, 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.00171/0.00171, allocations: 194.1 kB / 16.25 MB, free: 6.621 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.334/1.334, allocations: 222.9 MB / 239.9 MB, free: 4.512 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.313/2.313, allocations: 390.2 MB / 0.6644 GB, free: 0.543 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001291/0.001291, allocations: 63.91 kB / 0.8122 GB, free: 14.63 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5324/0.5337, allocations: 140.4 MB / 0.9492 GB, free: 9.203 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar): time 0.002499/0.5362, allocations: 1.632 MB / 0.9508 GB, free: 7.926 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0008324/0.537, allocations: 0.5858 MB / 0.9514 GB, free: 7.465 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.417e-05/0.5371, allocations: 1.188 kB / 0.9514 GB, free: 7.465 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 4.303e-05/0.5372, allocations: 3.984 kB / 0.9514 GB, free: 7.461 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 9.367e-05/0.5373, allocations: 5.5 kB / 0.9514 GB, free: 7.457 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002796/0.5376, allocations: 52.03 kB / 0.9515 GB, free: 7.422 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.656e-05/0.5377, allocations: 56.77 kB / 0.9515 GB, free: 7.387 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.98e-05/0.5378, allocations: 19.17 kB / 0.9515 GB, free: 7.375 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.219e-05/0.5378, allocations: 20.3 kB / 0.9516 GB, free: 7.363 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.068e-05/0.5379, allocations: 24.16 kB / 0.9516 GB, free: 7.348 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.47e-05/0.5379, allocations: 3.062 kB / 0.9516 GB, free: 7.348 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001175/0.5381, allocations: 48.92 kB / 0.9516 GB, free: 7.324 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 5.331e-05/0.5381, allocations: 31.69 kB / 0.9517 GB, free: 7.301 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.257e-05/0.5382, allocations: 22.72 kB / 0.9517 GB, free: 7.285 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001531/0.5383, allocations: 99 kB / 0.9518 GB, free: 7.219 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.5383, allocations: 0 / 0.9518 GB, free: 7.219 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.152e-06/0.5383, allocations: 0 / 0.9518 GB, free: 7.219 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.4e-06/0.5384, allocations: 1.25 kB / 0.9518 GB, free: 7.219 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.0004522/0.5388, allocations: 402.7 kB / 0.9522 GB, free: 6.805 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.511e-05/0.5389, allocations: 8.969 kB / 0.9522 GB, free: 6.805 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.454e-05/0.5389, allocations: 32.5 kB / 0.9522 GB, free: 6.766 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008753/0.5398, allocations: 208.5 kB / 0.9524 GB, free: 6.66 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001076/0.5399, allocations: 195 kB / 0.9526 GB, free: 6.441 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.957e-05/0.5399, allocations: 36.12 kB / 0.9526 GB, free: 6.402 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.666e-05/0.54, allocations: 6.141 kB / 0.9526 GB, free: 6.398 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003929/0.5404, allocations: 177.7 kB / 0.9528 GB, free: 6.293 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.734e-06/0.5404, allocations: 0 / 0.9528 GB, free: 6.293 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.327e-05/0.5404, allocations: 0 / 0.9528 GB, free: 6.293 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.5404, allocations: 1.25 kB / 0.9528 GB, free: 6.293 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005494/0.541, allocations: 234.8 kB / 0.953 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007484/0.5417, allocations: 0.5046 MB / 0.9535 GB, free: 5.777 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005436/0.5423, allocations: 241.2 kB / 0.9537 GB, free: 5.66 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002771/0.5426, allocations: 119.8 kB / 0.9539 GB, free: 5.605 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.683e-05/0.5426, allocations: 5.125 kB / 0.9539 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.457e-05/0.5426, allocations: 35.69 kB / 0.9539 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.093e-06/0.5426, allocations: 0 / 0.9539 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.000918/0.5435, allocations: 365.8 kB / 0.9542 GB, free: 5.387 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.479e-05/0.5436, allocations: 63.06 kB / 0.9543 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001028/0.5437, allocations: 169.2 kB / 0.9545 GB, free: 5.184 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.307e-05/0.5437, allocations: 25.83 kB / 0.9545 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.086e-05/0.5437, allocations: 108.1 kB / 0.9546 GB, free: 5.047 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.949e-05/0.5438, allocations: 7.891 kB / 0.9546 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.984e-05/0.5438, allocations: 26.59 kB / 0.9546 GB, free: 5.012 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.574e-05/0.5439, allocations: 316.8 kB / 0.9549 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002785/0.5441, allocations: 114.7 kB / 0.955 GB, free: 4.648 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002612/0.5444, allocations: 111.3 kB / 0.9551 GB, free: 4.605 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004852/0.5449, allocations: 200.1 kB / 0.9553 GB, free: 4.516 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.5449, allocations: 3.938 kB / 0.9553 GB, free: 4.512 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000594/0.5455, allocations: 256.5 kB / 0.9556 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.436e-05/0.5455, allocations: 8.156 kB / 0.9556 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.127e-06/0.5455, allocations: 3.938 kB / 0.9556 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.097e-05/0.5456, allocations: 4.031 kB / 0.9556 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002058/0.5458, allocations: 45.22 kB / 0.9556 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.67e-06/0.5458, allocations: 5.188 kB / 0.9556 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001596/0.546, allocations: 32.69 kB / 0.9557 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.409e-05/0.546, allocations: 9.953 kB / 0.9557 GB, free: 4.324 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 6.139e-05/0.546, allocations: 111.2 kB / 0.9558 GB, free: 4.211 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.844e-05/0.5461, allocations: 12.78 kB / 0.9558 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.064e-05/0.5461, allocations: 10.77 kB / 0.9558 GB, free: 4.199 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.854e-06/0.5461, allocations: 1.688 kB / 0.9558 GB, free: 4.199 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-06/0.5461, allocations: 7.938 kB / 0.9558 GB, free: 4.191 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.004e-06/0.5461, allocations: 0 / 0.9558 GB, free: 4.191 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001952/0.5463, allocations: 247.5 kB / 0.9561 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.5463, allocations: 0 / 0.9561 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001851/0.5465, allocations: 49.52 kB / 0.9561 GB, free: 3.926 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.5465, allocations: 0 / 0.9561 GB, free: 3.926 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.511e-05/0.5466, allocations: 5.797 kB / 0.9561 GB, free: 3.922 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.5466, allocations: 3.938 kB / 0.9561 GB, free: 3.918 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.492e-06/0.5466, allocations: 3.938 kB / 0.9561 GB, free: 3.914 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005902/0.5472, allocations: 351.3 kB / 0.9565 GB, free: 3.684 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.351e-05/0.5472, allocations: 85.14 kB / 0.9565 GB, free: 3.586 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.46e-05/0.5472, allocations: 4.031 kB / 0.9565 GB, free: 3.582 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001907/0.5474, allocations: 37.81 kB / 0.9566 GB, free: 3.562 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.804e-05/0.5475, allocations: 7.922 kB / 0.9566 GB, free: 3.555 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.165e-05/0.5475, allocations: 2.75 kB / 0.9566 GB, free: 3.555 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 6.88e-05/0.5476, allocations: 128.7 kB / 0.9567 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of sort global known variables: time 2.51e-07/0.5476, allocations: 0 / 0.9567 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002552/0.5478, allocations: 19.12 kB / 0.9567 GB, free: 3.453 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.0007563/0.5486, allocations: 0.878 MB / 0.9576 GB, free: 2.699 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000593/0.5492, allocations: 240.6 kB / 0.9578 GB, free: 2.598 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.5492, allocations: 0 / 0.9578 GB, free: 2.598 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0003057/0.5495, allocations: 117.5 kB / 0.9579 GB, free: 2.551 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002319/0.5498, allocations: 14.08 kB / 0.9579 GB, free: 2.539 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002782/0.5525, allocations: 2.347 MB / 0.9602 GB, free: 0.8359 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.664e-05/0.5527, allocations: 0.6971 MB / 0.9609 GB, free: 132 kB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0001041/0.5528, allocations: 29.83 kB / 0.9609 GB, free: 116 kB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.036e-05/0.5528, allocations: 31.41 kB / 0.961 GB, free: 88 kB / 0.7169 GB Notification: Performance of SimCode: time 3.41e-07/0.5528, allocations: 0 / 0.961 GB, free: 88 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.216/0.7689, allocations: 2.494 MB / 0.9634 GB, free: 14.85 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002607/0.7692, allocations: 214.9 kB / 0.9636 GB, free: 14.59 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.937/2.706, allocations: 2.672 kB / 0.9636 GB, free: 14.59 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)