Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar,fileNamePrefix="Buildings_latest_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.001802/0.001809, 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.01473/0.01473, allocations: 195.2 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 2.453/2.453, allocations: 222.9 MB / 239.9 MB, free: 4.516 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 6.194/6.194, allocations: 461.9 MB / 0.7343 GB, free: 14.96 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002664/0.002663, allocations: 64.5 kB / 0.8987 GB, free: 37.17 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5633/0.566, allocations: 157.4 MB / 1.052 GB, free: 8.664 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar): time 0.005275/0.5714, allocations: 1.642 MB / 1.054 GB, free: 7.004 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001732/0.5731, allocations: 0.6044 MB / 1.055 GB, free: 6.395 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.254e-05/0.5732, allocations: 0 / 1.055 GB, free: 6.395 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 6.608e-05/0.5733, allocations: 0 / 1.055 GB, free: 6.395 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001385/0.5735, allocations: 7.938 kB / 1.055 GB, free: 6.387 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.000492/0.574, allocations: 47.89 kB / 1.055 GB, free: 6.34 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001547/0.5742, allocations: 47.84 kB / 1.055 GB, free: 6.293 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001452/0.5744, allocations: 15.98 kB / 1.055 GB, free: 6.277 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000154/0.5745, allocations: 23.92 kB / 1.055 GB, free: 6.254 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000117/0.5747, allocations: 31.84 kB / 1.055 GB, free: 6.223 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.228e-05/0.5747, allocations: 0 / 1.055 GB, free: 6.223 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002254/0.5749, allocations: 51.95 kB / 1.055 GB, free: 6.172 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 8.932e-05/0.5751, allocations: 19.92 kB / 1.055 GB, free: 6.152 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 6.855e-05/0.5751, allocations: 31.78 kB / 1.055 GB, free: 6.121 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002855/0.5754, allocations: 103.9 kB / 1.055 GB, free: 6.02 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.65e-06/0.5755, allocations: 0 / 1.055 GB, free: 6.02 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.224e-06/0.5755, allocations: 4 kB / 1.055 GB, free: 6.016 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.865e-06/0.5755, allocations: 0 / 1.055 GB, free: 6.016 MB / 0.8106 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.0009265/0.5764, allocations: 391.1 kB / 1.055 GB, free: 5.586 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.959e-05/0.5765, allocations: 8.625 kB / 1.055 GB, free: 5.578 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.081e-05/0.5766, allocations: 34.75 kB / 1.055 GB, free: 5.535 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001639/0.5782, allocations: 208.5 kB / 1.056 GB, free: 5.332 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002845/0.5785, allocations: 192.6 kB / 1.056 GB, free: 5.105 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001049/0.5787, allocations: 38 kB / 1.056 GB, free: 5.062 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.875e-05/0.5787, allocations: 4 kB / 1.056 GB, free: 5.059 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007582/0.5795, allocations: 173.5 kB / 1.056 GB, free: 4.883 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.594e-05/0.5795, allocations: 0 / 1.056 GB, free: 4.883 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.221e-05/0.5795, allocations: 3.938 kB / 1.056 GB, free: 4.879 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.898e-06/0.5796, allocations: 4 kB / 1.056 GB, free: 4.875 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00112/0.5807, allocations: 235.8 kB / 1.056 GB, free: 4.645 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001518/0.5822, allocations: 0.5078 MB / 1.057 GB, free: 4.09 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001108/0.5834, allocations: 234.3 kB / 1.057 GB, free: 3.852 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000567/0.5839, allocations: 120.8 kB / 1.057 GB, free: 3.73 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.705e-05/0.584, allocations: 4 kB / 1.057 GB, free: 3.727 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.54e-05/0.5841, allocations: 34.56 kB / 1.057 GB, free: 3.684 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 3.387e-06/0.5841, allocations: 0 / 1.057 GB, free: 3.684 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.001876/0.586, allocations: 365.2 kB / 1.057 GB, free: 3.32 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.587e-05/0.586, allocations: 55.34 kB / 1.057 GB, free: 3.254 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002742/0.5863, allocations: 171.5 kB / 1.058 GB, free: 3.074 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 4.325e-05/0.5864, allocations: 25.7 kB / 1.058 GB, free: 3.043 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 9.391e-05/0.5865, allocations: 100.1 kB / 1.058 GB, free: 2.941 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.998e-05/0.5866, allocations: 11.84 kB / 1.058 GB, free: 2.93 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001508/0.5867, allocations: 21.69 kB / 1.058 GB, free: 2.902 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001782/0.5869, allocations: 322.8 kB / 1.058 GB, free: 2.578 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005501/0.5875, allocations: 111.9 kB / 1.058 GB, free: 2.469 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005474/0.588, allocations: 111.9 kB / 1.058 GB, free: 2.359 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009993/0.5891, allocations: 200.7 kB / 1.059 GB, free: 2.16 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/0.5891, allocations: 0 / 1.059 GB, free: 2.16 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.001193/0.5903, allocations: 253.4 kB / 1.059 GB, free: 1.906 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.735e-05/0.5903, allocations: 8.031 kB / 1.059 GB, free: 1.898 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.278e-05/0.5904, allocations: 3.984 kB / 1.059 GB, free: 1.895 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.808e-05/0.5904, allocations: 3.984 kB / 1.059 GB, free: 1.891 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003905/0.5908, allocations: 51.8 kB / 1.059 GB, free: 1.84 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.23e-05/0.5909, allocations: 3.938 kB / 1.059 GB, free: 1.836 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003166/0.5912, allocations: 39.84 kB / 1.059 GB, free: 1.797 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.12e-05/0.5912, allocations: 7.984 kB / 1.059 GB, free: 1.789 MB / 0.8106 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 0.0001626/0.5914, allocations: 117.8 kB / 1.059 GB, free: 1.664 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.587e-05/0.5915, allocations: 7.906 kB / 1.059 GB, free: 1.656 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.348e-05/0.5915, allocations: 15.88 kB / 1.059 GB, free: 1.641 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.477e-06/0.5916, allocations: 0 / 1.059 GB, free: 1.641 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.587e-06/0.5916, allocations: 3.938 kB / 1.059 GB, free: 1.637 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.898e-06/0.5916, allocations: 0 / 1.059 GB, free: 1.637 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004756/0.5921, allocations: 253.5 kB / 1.059 GB, free: 1.34 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.335e-06/0.5921, allocations: 0 / 1.059 GB, free: 1.34 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003512/0.5925, allocations: 47.84 kB / 1.059 GB, free: 1.293 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.679e-06/0.5925, allocations: 0 / 1.059 GB, free: 1.293 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.571e-05/0.5925, allocations: 4 kB / 1.059 GB, free: 1.289 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.5925, allocations: 0 / 1.059 GB, free: 1.289 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.634e-06/0.5926, allocations: 3.938 kB / 1.059 GB, free: 1.285 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001271/0.5938, allocations: 359.1 kB / 1.06 GB, free: 0.918 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 8.14e-05/0.5939, allocations: 85.02 kB / 1.06 GB, free: 0.8164 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.507e-05/0.594, allocations: 3.984 kB / 1.06 GB, free: 0.8125 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003857/0.5944, allocations: 31.94 kB / 1.06 GB, free: 0.7812 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.292e-05/0.5945, allocations: 3.938 kB / 1.06 GB, free: 0.7773 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.54e-05/0.5945, allocations: 7.984 kB / 1.06 GB, free: 0.7695 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0001748/0.5947, allocations: 129.5 kB / 1.06 GB, free: 0.6445 MB / 0.8106 GB Notification: Performance of sort global known variables: time 2.41e-07/0.5947, allocations: 0 / 1.06 GB, free: 0.6445 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0005425/0.5953, allocations: 16 kB / 1.06 GB, free: 0.6289 MB / 0.8106 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.001767/0.597, allocations: 0.8819 MB / 1.061 GB, free: 15.72 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001203/0.5983, allocations: 235.7 kB / 1.061 GB, free: 15.49 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.085e-06/0.5983, allocations: 0 / 1.061 GB, free: 15.49 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0007222/0.599, allocations: 123.9 kB / 1.061 GB, free: 15.37 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004733/0.5995, allocations: 7.938 kB / 1.061 GB, free: 15.36 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006103/0.6056, allocations: 2.335 MB / 1.063 GB, free: 12.95 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004224/0.6061, allocations: 0.7001 MB / 1.064 GB, free: 12.22 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.00022/0.6064, allocations: 28 kB / 1.064 GB, free: 12.2 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001479/0.6065, allocations: 31.41 kB / 1.064 GB, free: 12.17 MB / 0.8262 GB Notification: Performance of SimCode: time 7.32e-07/0.6066, allocations: 0 / 1.064 GB, free: 12.17 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.184/1.791, allocations: 2.512 MB / 1.067 GB, free: 9.773 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004354/1.791, allocations: 213.9 kB / 1.067 GB, free: 9.516 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.827/6.619, allocations: 0 / 1.067 GB, free: 9.516 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe >> ../files/Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar.fmu > Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe 2>&1)