Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar,fileNamePrefix="Buildings_11_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.001651/0.001651, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001772/0.001772, allocations: 195.8 kB / 16.53 MB, free: 6.664 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.289/1.289, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.505/2.505, allocations: 469.8 MB / 0.7424 GB, free: 7.418 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001723/0.001723, allocations: 64.81 kB / 0.9087 GB, free: 34.41 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2382/0.24, allocations: 159.2 MB / 1.064 GB, free: 14.2 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar): time 0.002529/0.2425, allocations: 1.585 MB / 1.066 GB, free: 12.6 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0008584/0.2434, allocations: 0.5884 MB / 1.066 GB, free: 12 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.28e-05/0.2435, allocations: 0 / 1.066 GB, free: 12 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 4.445e-05/0.2435, allocations: 11.86 kB / 1.066 GB, free: 11.99 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 7.113e-05/0.2436, allocations: 7.938 kB / 1.066 GB, free: 11.98 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.00027/0.2439, allocations: 55.81 kB / 1.066 GB, free: 11.93 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 7.934e-05/0.244, allocations: 39.92 kB / 1.066 GB, free: 11.89 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 8.279e-05/0.244, allocations: 15.98 kB / 1.066 GB, free: 11.88 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 7.85e-05/0.2441, allocations: 31.84 kB / 1.066 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 6.447e-05/0.2442, allocations: 19.86 kB / 1.066 GB, free: 11.82 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.72e-05/0.2442, allocations: 4 kB / 1.066 GB, free: 11.82 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001228/0.2443, allocations: 55.95 kB / 1.066 GB, free: 11.77 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 5.658e-05/0.2444, allocations: 19.92 kB / 1.066 GB, free: 11.75 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 4.379e-05/0.2445, allocations: 31.8 kB / 1.067 GB, free: 11.71 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001542/0.2446, allocations: 91.95 kB / 1.067 GB, free: 11.62 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.466e-06/0.2446, allocations: 0 / 1.067 GB, free: 11.62 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.613e-06/0.2446, allocations: 0 / 1.067 GB, free: 11.62 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.881e-06/0.2446, allocations: 8 kB / 1.067 GB, free: 11.62 MB / 0.8262 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.0005302/0.2452, allocations: 399 kB / 1.067 GB, free: 11.18 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.295e-05/0.2452, allocations: 11.97 kB / 1.067 GB, free: 11.17 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.212e-05/0.2453, allocations: 30.75 kB / 1.067 GB, free: 11.13 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008345/0.2461, allocations: 212.5 kB / 1.067 GB, free: 10.92 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001516/0.2463, allocations: 188.8 kB / 1.067 GB, free: 10.7 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.145e-05/0.2463, allocations: 34.02 kB / 1.067 GB, free: 10.66 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.519e-05/0.2463, allocations: 0 / 1.067 GB, free: 10.66 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003957/0.2467, allocations: 177.5 kB / 1.068 GB, free: 10.48 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.767e-06/0.2468, allocations: 3.984 kB / 1.068 GB, free: 10.48 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.241e-05/0.2468, allocations: 0 / 1.068 GB, free: 10.48 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.477e-06/0.2468, allocations: 0 / 1.068 GB, free: 10.48 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005512/0.2473, allocations: 239.7 kB / 1.068 GB, free: 10.24 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007647/0.2481, allocations: 0.5078 MB / 1.068 GB, free: 9.688 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005412/0.2487, allocations: 238.3 kB / 1.069 GB, free: 9.445 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002848/0.249, allocations: 120.8 kB / 1.069 GB, free: 9.324 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.239e-05/0.249, allocations: 3.938 kB / 1.069 GB, free: 9.32 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.721e-05/0.249, allocations: 42.5 kB / 1.069 GB, free: 9.27 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=2): time 1.032e-06/0.249, allocations: 0 / 1.069 GB, free: 9.27 MB / 0.8262 GB Notification: Performance of matching and sorting (n=2): time 0.0009246/0.2499, allocations: 365.2 kB / 1.069 GB, free: 8.906 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.334e-05/0.25, allocations: 55.34 kB / 1.069 GB, free: 8.84 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001453/0.2501, allocations: 169.7 kB / 1.069 GB, free: 8.668 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.681e-05/0.2502, allocations: 29.83 kB / 1.069 GB, free: 8.633 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.62e-05/0.2502, allocations: 104 kB / 1.069 GB, free: 8.527 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.626e-05/0.2502, allocations: 4 kB / 1.069 GB, free: 8.523 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.845e-05/0.2503, allocations: 21.7 kB / 1.069 GB, free: 8.496 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001161/0.2504, allocations: 322.8 kB / 1.07 GB, free: 8.172 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002729/0.2507, allocations: 111.9 kB / 1.07 GB, free: 8.062 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002617/0.251, allocations: 115.8 kB / 1.07 GB, free: 7.949 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000487/0.2515, allocations: 200.7 kB / 1.07 GB, free: 7.75 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.2515, allocations: 0 / 1.07 GB, free: 7.75 MB / 0.8262 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0005824/0.2521, allocations: 261.2 kB / 1.07 GB, free: 7.488 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.071e-05/0.2521, allocations: 4 kB / 1.07 GB, free: 7.484 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.186e-06/0.2521, allocations: 0 / 1.07 GB, free: 7.484 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.208e-06/0.2521, allocations: 4.031 kB / 1.07 GB, free: 7.48 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001913/0.2523, allocations: 43.92 kB / 1.07 GB, free: 7.438 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.43e-06/0.2523, allocations: 7.875 kB / 1.07 GB, free: 7.43 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001457/0.2525, allocations: 35.92 kB / 1.07 GB, free: 7.395 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.277e-05/0.2525, allocations: 8 kB / 1.07 GB, free: 7.387 MB / 0.8262 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.556e-05/0.2526, allocations: 121.8 kB / 1.071 GB, free: 7.258 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.48e-05/0.2526, allocations: 7.906 kB / 1.071 GB, free: 7.25 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.12e-05/0.2526, allocations: 7.875 kB / 1.071 GB, free: 7.238 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.172e-06/0.2526, allocations: 0 / 1.071 GB, free: 7.238 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.144e-06/0.2526, allocations: 7.922 kB / 1.071 GB, free: 7.23 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.753e-06/0.2527, allocations: 0 / 1.071 GB, free: 7.23 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002429/0.2529, allocations: 245.5 kB / 1.071 GB, free: 6.941 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.2529, allocations: 4 kB / 1.071 GB, free: 6.938 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001808/0.2531, allocations: 47.91 kB / 1.071 GB, free: 6.891 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-06/0.2531, allocations: 0 / 1.071 GB, free: 6.891 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.194e-05/0.2531, allocations: 3.984 kB / 1.071 GB, free: 6.887 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.655e-06/0.2531, allocations: 4 kB / 1.071 GB, free: 6.883 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/0.2531, allocations: 3.938 kB / 1.071 GB, free: 6.879 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006176/0.2538, allocations: 347.2 kB / 1.071 GB, free: 6.523 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.513e-05/0.2538, allocations: 85.05 kB / 1.071 GB, free: 6.422 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.112e-05/0.2538, allocations: 8 kB / 1.071 GB, free: 6.414 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001744/0.254, allocations: 31.94 kB / 1.071 GB, free: 6.383 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.664e-05/0.2541, allocations: 7.875 kB / 1.071 GB, free: 6.375 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.319e-05/0.2541, allocations: 7.984 kB / 1.071 GB, free: 6.367 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 9.297e-05/0.2542, allocations: 128.5 kB / 1.072 GB, free: 6.242 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2542, allocations: 3.938 kB / 1.072 GB, free: 6.238 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002211/0.2544, allocations: 16 kB / 1.072 GB, free: 6.223 MB / 0.8262 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.0009051/0.2553, allocations: 0.8802 MB / 1.072 GB, free: 5.316 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0005835/0.2559, allocations: 243.7 kB / 1.073 GB, free: 5.078 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.724e-06/0.2559, allocations: 0 / 1.073 GB, free: 5.078 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002788/0.2562, allocations: 119.9 kB / 1.073 GB, free: 4.961 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001998/0.2564, allocations: 9.344 kB / 1.073 GB, free: 4.953 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003013/0.2594, allocations: 2.329 MB / 1.075 GB, free: 2.551 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002665/0.2597, allocations: 0.6885 MB / 1.076 GB, free: 1.836 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 9.47e-05/0.2598, allocations: 31.98 kB / 1.076 GB, free: 1.805 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.547e-05/0.2599, allocations: 27.42 kB / 1.076 GB, free: 1.777 MB / 0.8262 GB Notification: Performance of SimCode: time 2.41e-07/0.2599, allocations: 0 / 1.076 GB, free: 1.777 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.095/1.355, allocations: 2.618 MB / 1.078 GB, free: 15.23 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.51/12.86, allocations: 10.31 kB / 1.078 GB, free: 15.22 MB / 0.8419 GB (rm -f Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe ; mkfifo Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe >> ../files/Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar_res.mat --tempDir=temp_Buildings_11_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar_fmu --startTime=0 --stopTime=86400 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar.fmu > Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe 2>&1)