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.005116/0.005116, allocations: 104.7 kB / 15.74 MB, free: 6.484 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.001615/0.001615, allocations: 193.5 kB / 16.67 MB, free: 6.375 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.321/1.321, allocations: 222.9 MB / 240.4 MB, free: 4.316 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.27/2.27, allocations: 390.2 MB / 0.6648 GB, free: 228 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001177/0.001177, allocations: 59.66 kB / 0.9504 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2179/0.2191, allocations: 140.4 MB / 1.087 GB, free: 2.008 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar): time 0.002539/0.2216, allocations: 1.567 MB / 1.089 GB, free: 436 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0009649/0.2226, allocations: 0.5945 MB / 1.09 GB, free: 15.82 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.109e-05/0.2227, allocations: 4 kB / 1.09 GB, free: 15.82 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.884e-05/0.2227, allocations: 3.938 kB / 1.09 GB, free: 15.82 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 7.875e-05/0.2228, allocations: 7.875 kB / 1.09 GB, free: 15.81 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002858/0.2231, allocations: 51.88 kB / 1.09 GB, free: 15.76 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 8.833e-05/0.2232, allocations: 55.84 kB / 1.09 GB, free: 15.7 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 9.374e-05/0.2233, allocations: 19.97 kB / 1.09 GB, free: 15.68 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 8.592e-05/0.2234, allocations: 27.84 kB / 1.09 GB, free: 15.66 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 7.28e-05/0.2235, allocations: 23.86 kB / 1.09 GB, free: 15.63 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.621e-05/0.2235, allocations: 4 kB / 1.09 GB, free: 15.63 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001249/0.2237, allocations: 47.95 kB / 1.09 GB, free: 15.58 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 5.575e-05/0.2237, allocations: 19.92 kB / 1.09 GB, free: 15.56 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.21e-05/0.2238, allocations: 35.78 kB / 1.09 GB, free: 15.53 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001665/0.2239, allocations: 102.5 kB / 1.09 GB, free: 15.43 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.224, allocations: 0 / 1.09 GB, free: 15.43 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.372e-06/0.224, allocations: 0 / 1.09 GB, free: 15.43 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.765e-06/0.224, allocations: 0 / 1.09 GB, free: 15.43 MB / 0.8575 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.0005157/0.2245, allocations: 388 kB / 1.09 GB, free: 15 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.839e-05/0.2245, allocations: 8.031 kB / 1.09 GB, free: 15 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.056e-05/0.2246, allocations: 42.69 kB / 1.09 GB, free: 14.95 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009263/0.2255, allocations: 212.4 kB / 1.091 GB, free: 14.74 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001456/0.2257, allocations: 180.8 kB / 1.091 GB, free: 14.52 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.779e-05/0.2257, allocations: 42 kB / 1.091 GB, free: 14.48 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.876e-05/0.2258, allocations: 4 kB / 1.091 GB, free: 14.47 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004239/0.2262, allocations: 177.5 kB / 1.091 GB, free: 14.29 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.622e-06/0.2262, allocations: 0 / 1.091 GB, free: 14.29 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.513e-05/0.2262, allocations: 0 / 1.091 GB, free: 14.29 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.248e-06/0.2262, allocations: 0 / 1.091 GB, free: 14.29 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006071/0.2269, allocations: 247.7 kB / 1.091 GB, free: 14.05 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008175/0.2277, allocations: 0.5075 MB / 1.092 GB, free: 13.49 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005909/0.2283, allocations: 242.3 kB / 1.092 GB, free: 13.25 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000303/0.2286, allocations: 116.8 kB / 1.092 GB, free: 13.13 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.572e-05/0.2286, allocations: 4 kB / 1.092 GB, free: 13.12 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.316e-05/0.2287, allocations: 42.48 kB / 1.092 GB, free: 13.07 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 1.332e-06/0.2287, allocations: 0 / 1.092 GB, free: 13.07 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.001011/0.2297, allocations: 361.2 kB / 1.092 GB, free: 12.71 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.521e-05/0.2297, allocations: 59.47 kB / 1.093 GB, free: 12.64 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001448/0.2299, allocations: 168 kB / 1.093 GB, free: 12.47 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.164e-05/0.2299, allocations: 29.7 kB / 1.093 GB, free: 12.44 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.111e-05/0.23, allocations: 100 kB / 1.093 GB, free: 12.34 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.149e-05/0.23, allocations: 3.984 kB / 1.093 GB, free: 12.33 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.69e-05/0.2301, allocations: 25.64 kB / 1.093 GB, free: 12.3 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 9.459e-05/0.2302, allocations: 322.8 kB / 1.093 GB, free: 11.98 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000306/0.2305, allocations: 115.9 kB / 1.093 GB, free: 11.86 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002983/0.2308, allocations: 111.8 kB / 1.093 GB, free: 11.75 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00055/0.2313, allocations: 200.7 kB / 1.094 GB, free: 11.55 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.2313, allocations: 0 / 1.094 GB, free: 11.55 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0006505/0.232, allocations: 261.2 kB / 1.094 GB, free: 11.29 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.565e-05/0.232, allocations: 8 kB / 1.094 GB, free: 11.29 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.348e-06/0.232, allocations: 0 / 1.094 GB, free: 11.29 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.242e-05/0.2321, allocations: 0 / 1.094 GB, free: 11.29 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002226/0.2323, allocations: 39.92 kB / 1.094 GB, free: 11.25 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.173e-06/0.2323, allocations: 3.938 kB / 1.094 GB, free: 11.24 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001762/0.2325, allocations: 47.91 kB / 1.094 GB, free: 11.2 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.553e-05/0.2325, allocations: 3.984 kB / 1.094 GB, free: 11.19 MB / 0.8575 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.045e-05/0.2326, allocations: 113.8 kB / 1.094 GB, free: 11.07 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.878e-05/0.2326, allocations: 11.84 kB / 1.094 GB, free: 11.06 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.25e-05/0.2327, allocations: 11.88 kB / 1.094 GB, free: 11.05 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.2327, allocations: 0 / 1.094 GB, free: 11.05 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.04e-06/0.2327, allocations: 7.938 kB / 1.094 GB, free: 11.04 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.984e-06/0.2327, allocations: 4 kB / 1.094 GB, free: 11.04 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002398/0.2329, allocations: 241.6 kB / 1.094 GB, free: 10.75 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.233, allocations: 0 / 1.094 GB, free: 10.75 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001987/0.2332, allocations: 43.91 kB / 1.094 GB, free: 10.71 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.767e-06/0.2332, allocations: 4 kB / 1.094 GB, free: 10.7 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.306e-05/0.2332, allocations: 4 kB / 1.094 GB, free: 10.7 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.2332, allocations: 3.938 kB / 1.094 GB, free: 10.7 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.2332, allocations: 7.922 kB / 1.094 GB, free: 10.69 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006867/0.2339, allocations: 347.2 kB / 1.095 GB, free: 10.33 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.184e-05/0.2339, allocations: 89 kB / 1.095 GB, free: 10.23 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.176e-05/0.234, allocations: 0 / 1.095 GB, free: 10.23 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002003/0.2342, allocations: 31.94 kB / 1.095 GB, free: 10.2 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.987e-05/0.2342, allocations: 7.938 kB / 1.095 GB, free: 10.19 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.625e-05/0.2342, allocations: 16.02 kB / 1.095 GB, free: 10.17 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 9.008e-05/0.2343, allocations: 130.5 kB / 1.095 GB, free: 10.05 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.734e-06/0.2343, allocations: 0 / 1.095 GB, free: 10.05 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002613/0.2346, allocations: 19.94 kB / 1.095 GB, free: 10.03 MB / 0.8575 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.0009445/0.2356, allocations: 0.884 MB / 1.096 GB, free: 9.117 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0006429/0.2362, allocations: 231.8 kB / 1.096 GB, free: 8.891 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.2362, allocations: 0 / 1.096 GB, free: 8.891 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0003154/0.2366, allocations: 127.9 kB / 1.096 GB, free: 8.766 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002321/0.2368, allocations: 11.94 kB / 1.096 GB, free: 8.754 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003215/0.24, allocations: 2.327 MB / 1.098 GB, free: 6.348 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002182/0.2402, allocations: 0.7 MB / 1.099 GB, free: 5.621 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 9.31e-05/0.2403, allocations: 20 kB / 1.099 GB, free: 5.602 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.542e-05/0.2404, allocations: 31.41 kB / 1.099 GB, free: 5.57 MB / 0.8575 GB Notification: Performance of SimCode: time 3.5e-07/0.2404, allocations: 0 / 1.099 GB, free: 5.57 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.195/0.4354, allocations: 2.647 MB / 1.102 GB, free: 3.012 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.823/10.26, allocations: 11.78 kB / 1.102 GB, free: 3.004 MB / 0.8575 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)