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.0009157/0.0009158, allocations: 98.27 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.005225/0.005225, allocations: 170.4 kB / 16.27 MB, free: 6.648 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.296/1.296, allocations: 223.3 MB / 240.3 MB, free: 5.332 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.263/2.263, allocations: 390.9 MB / 0.6664 GB, free: 2.406 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0002945/0.0002945, allocations: 8 kB / 0.8161 GB, free: 13.14 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5348/0.5351, allocations: 142.4 MB / 0.9552 GB, free: 7.754 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar): time 0.001327/0.5365, allocations: 1.294 MB / 0.9564 GB, free: 6.734 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0007437/0.5372, allocations: 0.5833 MB / 0.957 GB, free: 6.277 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.79e-05/0.5373, allocations: 1 kB / 0.957 GB, free: 6.277 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.762e-05/0.5373, allocations: 5.062 kB / 0.957 GB, free: 6.273 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.397e-05/0.5374, allocations: 9 kB / 0.957 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002066/0.5376, allocations: 44.95 kB / 0.9571 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.105e-05/0.5377, allocations: 44.47 kB / 0.9571 GB, free: 6.211 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 7.857e-05/0.5378, allocations: 14.52 kB / 0.9571 GB, free: 6.203 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.674e-05/0.5379, allocations: 24.95 kB / 0.9571 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.92e-05/0.5379, allocations: 31.5 kB / 0.9572 GB, free: 6.164 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.347e-05/0.538, allocations: 1.062 kB / 0.9572 GB, free: 6.164 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001089/0.5381, allocations: 49.95 kB / 0.9572 GB, free: 6.137 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.59e-05/0.5381, allocations: 15.69 kB / 0.9572 GB, free: 6.129 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.593e-05/0.5382, allocations: 55.86 kB / 0.9573 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001262/0.5383, allocations: 86.42 kB / 0.9574 GB, free: 6.02 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.056e-06/0.5383, allocations: 0 / 0.9574 GB, free: 6.02 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.844e-06/0.5383, allocations: 1.156 kB / 0.9574 GB, free: 6.02 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.397e-06/0.5383, allocations: 0 / 0.9574 GB, free: 6.02 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.0003874/0.5387, allocations: 387.9 kB / 0.9577 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.324e-05/0.5388, allocations: 12.94 kB / 0.9578 GB, free: 5.613 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.382e-05/0.5388, allocations: 31.72 kB / 0.9578 GB, free: 5.574 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008348/0.5396, allocations: 212.5 kB / 0.958 GB, free: 5.469 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.891e-05/0.5397, allocations: 201.3 kB / 0.9582 GB, free: 5.246 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.567e-05/0.5398, allocations: 36.06 kB / 0.9582 GB, free: 5.207 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.648e-05/0.5398, allocations: 3.75 kB / 0.9582 GB, free: 5.207 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003755/0.5402, allocations: 175.2 kB / 0.9584 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.314e-06/0.5402, allocations: 0 / 0.9584 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.384e-05/0.5402, allocations: 0 / 0.9584 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.348e-06/0.5402, allocations: 1.375 kB / 0.9584 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005466/0.5408, allocations: 246.7 kB / 0.9586 GB, free: 5.004 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006987/0.5415, allocations: 0.5134 MB / 0.9591 GB, free: 4.574 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005194/0.542, allocations: 237.1 kB / 0.9594 GB, free: 4.465 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002674/0.5423, allocations: 126.9 kB / 0.9595 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.461e-05/0.5423, allocations: 1.375 kB / 0.9595 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.23e-05/0.5423, allocations: 34.5 kB / 0.9595 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.703e-06/0.5424, allocations: 3.984 kB / 0.9595 GB, free: 4.359 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0009256/0.5433, allocations: 378.8 kB / 0.9599 GB, free: 4.184 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.852e-05/0.5433, allocations: 59.28 kB / 0.9599 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001181/0.5434, allocations: 170.5 kB / 0.9601 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.371e-05/0.5435, allocations: 25.7 kB / 0.9601 GB, free: 3.949 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.315e-05/0.5435, allocations: 105.3 kB / 0.9602 GB, free: 3.848 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.919e-05/0.5435, allocations: 8.656 kB / 0.9602 GB, free: 3.84 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.562e-05/0.5436, allocations: 10.38 kB / 0.9602 GB, free: 3.824 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.832e-05/0.5436, allocations: 321.8 kB / 0.9605 GB, free: 3.504 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002821/0.5439, allocations: 116.5 kB / 0.9607 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000264/0.5442, allocations: 121.9 kB / 0.9608 GB, free: 3.406 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005036/0.5447, allocations: 201.6 kB / 0.961 GB, free: 3.32 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.5447, allocations: 0 / 0.961 GB, free: 3.32 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000583/0.5453, allocations: 265.9 kB / 0.9612 GB, free: 3.188 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.109e-05/0.5453, allocations: 4.969 kB / 0.9612 GB, free: 3.188 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.416e-06/0.5453, allocations: 1.031 kB / 0.9612 GB, free: 3.188 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.618e-06/0.5453, allocations: 0 / 0.9612 GB, free: 3.188 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001988/0.5455, allocations: 50.97 kB / 0.9613 GB, free: 3.16 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.51e-06/0.5455, allocations: 4.938 kB / 0.9613 GB, free: 3.156 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001555/0.5457, allocations: 34.31 kB / 0.9613 GB, free: 3.141 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.405e-05/0.5457, allocations: 2.094 kB / 0.9613 GB, free: 3.141 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.41e-05/0.5458, allocations: 122.9 kB / 0.9614 GB, free: 3.016 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.595e-05/0.5458, allocations: 15.88 kB / 0.9614 GB, free: 3.004 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.913e-05/0.5459, allocations: 11.83 kB / 0.9615 GB, free: 3 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.383e-06/0.5459, allocations: 0 / 0.9615 GB, free: 3 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.526e-06/0.5459, allocations: 3.938 kB / 0.9615 GB, free: 2.996 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.803e-06/0.5459, allocations: 1.25 kB / 0.9615 GB, free: 2.996 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002011/0.5461, allocations: 238.7 kB / 0.9617 GB, free: 2.766 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.5461, allocations: 3.984 kB / 0.9617 GB, free: 2.762 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001852/0.5463, allocations: 55.3 kB / 0.9617 GB, free: 2.73 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.5463, allocations: 0 / 0.9617 GB, free: 2.73 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.233e-05/0.5463, allocations: 5.141 kB / 0.9617 GB, free: 2.727 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.5463, allocations: 1.344 kB / 0.9617 GB, free: 2.727 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.5463, allocations: 3.938 kB / 0.9618 GB, free: 2.723 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005946/0.5469, allocations: 352.4 kB / 0.9621 GB, free: 2.496 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.352e-05/0.547, allocations: 84.02 kB / 0.9622 GB, free: 2.398 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.077e-05/0.547, allocations: 5.25 kB / 0.9622 GB, free: 2.395 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001846/0.5472, allocations: 37.84 kB / 0.9622 GB, free: 2.375 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.808e-05/0.5472, allocations: 9.234 kB / 0.9622 GB, free: 2.367 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.182e-05/0.5472, allocations: 10.28 kB / 0.9622 GB, free: 2.359 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 7.39e-05/0.5473, allocations: 127.9 kB / 0.9624 GB, free: 2.262 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5473, allocations: 1.188 kB / 0.9624 GB, free: 2.262 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002528/0.5476, allocations: 18.91 kB / 0.9624 GB, free: 2.258 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.0007607/0.5483, allocations: 0.8854 MB / 0.9632 GB, free: 1.5 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000565/0.5489, allocations: 242 kB / 0.9635 GB, free: 1.402 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.5489, allocations: 1.5 kB / 0.9635 GB, free: 1.402 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002835/0.5492, allocations: 122.9 kB / 0.9636 GB, free: 1.352 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002294/0.5495, allocations: 14.31 kB / 0.9636 GB, free: 1.34 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002822/0.5523, allocations: 2.37 MB / 0.9659 GB, free: 15.62 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002134/0.5525, allocations: 0.6955 MB / 0.9666 GB, free: 14.92 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001027/0.5526, allocations: 21.56 kB / 0.9666 GB, free: 14.91 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.689e-05/0.5527, allocations: 31.28 kB / 0.9666 GB, free: 14.88 MB / 0.7325 GB Notification: Performance of SimCode: time 3.4e-07/0.5527, allocations: 0.9688 kB / 0.9666 GB, free: 14.88 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6731/1.226, allocations: 2.373 MB / 0.969 GB, free: 13.76 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000203/1.226, allocations: 199.3 kB / 0.9692 GB, free: 13.51 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.217/3.444, allocations: 4 kB / 0.9692 GB, free: 13.51 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)