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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.0009631/0.0009631, allocations: 91.22 kB / 15.36 MB, free: 0.7383 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.007658/0.007659, allocations: 172.4 kB / 16.26 MB, free: 6.613 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.294/1.294, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/Experimental/DHC/UsersGuide/package.mo:2:1-389:15:writable] Warning: UsersGuide was referenced in the package.order file, but was not found in package.mo, UsersGuide/package.mo or UsersGuide.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.488/2.488, allocations: 443.4 MB / 0.7176 GB, free: 1.375 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0002988/0.0002989, allocations: 10.92 kB / 0.8797 GB, free: 41.52 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2279/0.2282, allocations: 155.2 MB / 1.031 GB, free: 4.234 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar): time 0.001546/0.2298, allocations: 1.297 MB / 1.033 GB, free: 2.926 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.0008604/0.2306, allocations: 0.5893 MB / 1.033 GB, free: 2.328 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.799e-05/0.2307, allocations: 0 / 1.033 GB, free: 2.328 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 2.697e-05/0.2307, allocations: 3.938 kB / 1.033 GB, free: 2.324 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 7.637e-05/0.2308, allocations: 7.922 kB / 1.033 GB, free: 2.316 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002174/0.231, allocations: 51.89 kB / 1.033 GB, free: 2.266 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 7.504e-05/0.2311, allocations: 43.86 kB / 1.033 GB, free: 2.223 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 7.337e-05/0.2312, allocations: 11.98 kB / 1.033 GB, free: 2.211 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 7.789e-05/0.2313, allocations: 27.84 kB / 1.033 GB, free: 2.184 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 7.045e-05/0.2313, allocations: 19.86 kB / 1.033 GB, free: 2.164 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.242e-05/0.2314, allocations: 4 kB / 1.033 GB, free: 2.16 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001115/0.2315, allocations: 47.95 kB / 1.033 GB, free: 2.113 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 4.794e-05/0.2315, allocations: 19.92 kB / 1.033 GB, free: 2.094 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 4.698e-05/0.2316, allocations: 57.48 kB / 1.033 GB, free: 2.031 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001486/0.2317, allocations: 91.97 kB / 1.033 GB, free: 1.941 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.765e-06/0.2318, allocations: 0 / 1.033 GB, free: 1.941 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.232e-06/0.2318, allocations: 0 / 1.033 GB, free: 1.941 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.377e-06/0.2318, allocations: 3.938 kB / 1.033 GB, free: 1.938 MB / 0.7794 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.0004339/0.2322, allocations: 375.3 kB / 1.034 GB, free: 1.523 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.403e-05/0.2323, allocations: 16.03 kB / 1.034 GB, free: 1.508 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.602e-05/0.2323, allocations: 38.69 kB / 1.034 GB, free: 1.461 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000835/0.2331, allocations: 216.4 kB / 1.034 GB, free: 1.25 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001304/0.2333, allocations: 180.8 kB / 1.034 GB, free: 1.035 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.163e-05/0.2333, allocations: 38 kB / 1.034 GB, free: 0.9922 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.925e-05/0.2334, allocations: 8 kB / 1.034 GB, free: 0.9844 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003832/0.2338, allocations: 173.4 kB / 1.034 GB, free: 0.8086 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.781e-06/0.2338, allocations: 4 kB / 1.034 GB, free: 0.8047 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.379e-05/0.2338, allocations: 8 kB / 1.034 GB, free: 0.7969 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.657e-06/0.2338, allocations: 0 / 1.034 GB, free: 0.7969 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005566/0.2344, allocations: 251.7 kB / 1.035 GB, free: 0.5508 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007537/0.2351, allocations: 0.4961 MB / 1.035 GB, free: 0 / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005602/0.2357, allocations: 246.3 kB / 1.035 GB, free: 15.75 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002863/0.236, allocations: 116.8 kB / 1.036 GB, free: 15.63 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 1.253e-05/0.236, allocations: 0 / 1.036 GB, free: 15.63 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.972e-05/0.236, allocations: 42.5 kB / 1.036 GB, free: 15.58 MB / 0.795 GB Notification: Performance of pre-optimization done (n=2): time 8.82e-07/0.2361, allocations: 0 / 1.036 GB, free: 15.58 MB / 0.795 GB Notification: Performance of matching and sorting (n=2): time 0.0009121/0.237, allocations: 369.2 kB / 1.036 GB, free: 15.21 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.159e-05/0.237, allocations: 63.47 kB / 1.036 GB, free: 15.14 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001446/0.2372, allocations: 167.8 kB / 1.036 GB, free: 14.97 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 1.691e-05/0.2372, allocations: 25.7 kB / 1.036 GB, free: 14.94 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 5.298e-05/0.2373, allocations: 104 kB / 1.036 GB, free: 14.83 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 1.852e-05/0.2373, allocations: 4 kB / 1.036 GB, free: 14.83 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.745e-05/0.2373, allocations: 9.719 kB / 1.036 GB, free: 14.81 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001108/0.2374, allocations: 322.8 kB / 1.037 GB, free: 14.49 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002764/0.2377, allocations: 115.9 kB / 1.037 GB, free: 14.38 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002692/0.238, allocations: 111.9 kB / 1.037 GB, free: 14.27 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004923/0.2385, allocations: 216.6 kB / 1.037 GB, free: 14.05 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.2385, allocations: 0 / 1.037 GB, free: 14.05 MB / 0.795 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0005891/0.2391, allocations: 257.4 kB / 1.037 GB, free: 13.79 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.077e-05/0.2391, allocations: 4 kB / 1.037 GB, free: 13.79 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.066e-06/0.2391, allocations: 0 / 1.037 GB, free: 13.79 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.142e-05/0.2391, allocations: 7.984 kB / 1.037 GB, free: 13.78 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001943/0.2393, allocations: 43.95 kB / 1.037 GB, free: 13.74 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.44e-06/0.2394, allocations: 3.938 kB / 1.037 GB, free: 13.73 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001534/0.2395, allocations: 43.78 kB / 1.037 GB, free: 13.69 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.508e-05/0.2395, allocations: 7.969 kB / 1.037 GB, free: 13.68 MB / 0.795 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 8.45e-05/0.2396, allocations: 125.8 kB / 1.038 GB, free: 13.55 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.214e-05/0.2397, allocations: 7.906 kB / 1.038 GB, free: 13.54 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.234e-05/0.2397, allocations: 11.88 kB / 1.038 GB, free: 13.53 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-06/0.2397, allocations: 11.81 kB / 1.038 GB, free: 13.52 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.2397, allocations: 3.938 kB / 1.038 GB, free: 13.52 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.803e-06/0.2397, allocations: 0 / 1.038 GB, free: 13.52 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002485/0.24, allocations: 245.6 kB / 1.038 GB, free: 13.23 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.24, allocations: 0 / 1.038 GB, free: 13.23 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001805/0.2402, allocations: 47.91 kB / 1.038 GB, free: 13.18 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.2402, allocations: 4 kB / 1.038 GB, free: 13.18 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.263e-05/0.2402, allocations: 4 kB / 1.038 GB, free: 13.17 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.031e-06/0.2402, allocations: 0 / 1.038 GB, free: 13.17 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.2402, allocations: 3.938 kB / 1.038 GB, free: 13.17 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006333/0.2408, allocations: 355.2 kB / 1.038 GB, free: 12.8 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 4.265e-05/0.2409, allocations: 89.02 kB / 1.038 GB, free: 12.7 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.072e-05/0.2409, allocations: 3.984 kB / 1.038 GB, free: 12.7 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001824/0.2411, allocations: 39.97 kB / 1.038 GB, free: 12.66 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.526e-05/0.2411, allocations: 3.938 kB / 1.038 GB, free: 12.65 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.998e-05/0.2412, allocations: 7.984 kB / 1.038 GB, free: 12.64 MB / 0.795 GB Notification: Performance of sorting global known variables: time 8.708e-05/0.2413, allocations: 128.5 kB / 1.038 GB, free: 12.52 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.6e-07/0.2413, allocations: 3.938 kB / 1.038 GB, free: 12.52 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002353/0.2415, allocations: 12 kB / 1.038 GB, free: 12.51 MB / 0.795 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.0008923/0.2424, allocations: 0.893 MB / 1.039 GB, free: 11.59 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0005798/0.243, allocations: 235.8 kB / 1.04 GB, free: 11.36 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.243, allocations: 0 / 1.04 GB, free: 11.36 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0002894/0.2433, allocations: 131.9 kB / 1.04 GB, free: 11.23 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002184/0.2435, allocations: 7.938 kB / 1.04 GB, free: 11.22 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003016/0.2466, allocations: 2.358 MB / 1.042 GB, free: 8.789 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002326/0.2468, allocations: 0.7004 MB / 1.043 GB, free: 8.062 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 9.423e-05/0.2469, allocations: 20 kB / 1.043 GB, free: 8.043 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.051e-05/0.247, allocations: 35.52 kB / 1.043 GB, free: 8.008 MB / 0.795 GB Notification: Performance of SimCode: time 3.61e-07/0.247, allocations: 0 / 1.043 GB, free: 8.008 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6247/0.8717, allocations: 2.396 MB / 1.045 GB, free: 5.742 MB / 0.795 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002027/0.872, allocations: 204.3 kB / 1.045 GB, free: 5.492 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.348/3.22, allocations: 0 / 1.045 GB, free: 5.492 MB / 0.795 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)