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.004542/0.004542, allocations: 99.64 kB / 15.73 MB, free: 6.012 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.001335/0.001335, allocations: 190.7 kB / 16.67 MB, free: 5.926 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.253/1.253, allocations: 222.9 MB / 240.4 MB, free: 15.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.322/2.322, allocations: 469.8 MB / 0.7425 GB, free: 3.316 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001608/0.001608, allocations: 63.91 kB / 1.065 GB, free: 14.06 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5765/0.5782, allocations: 159.1 MB / 1.22 GB, free: 2.016 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar): time 0.002317/0.5805, allocations: 1.582 MB / 1.222 GB, free: 436 kB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0008547/0.5814, allocations: 0.5777 MB / 1.222 GB, free: 15.84 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.043e-05/0.5814, allocations: 4 kB / 1.222 GB, free: 15.84 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 3.717e-05/0.5815, allocations: 3.938 kB / 1.222 GB, free: 15.84 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 6.605e-05/0.5815, allocations: 15.84 kB / 1.222 GB, free: 15.82 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002612/0.5818, allocations: 55.83 kB / 1.222 GB, free: 15.77 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 8.225e-05/0.5819, allocations: 47.84 kB / 1.222 GB, free: 15.72 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 8e-05/0.582, allocations: 15.98 kB / 1.222 GB, free: 15.7 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 7.753e-05/0.5821, allocations: 27.86 kB / 1.222 GB, free: 15.68 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 7.371e-05/0.5822, allocations: 23.86 kB / 1.222 GB, free: 15.65 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 1.497e-05/0.5822, allocations: 4 kB / 1.222 GB, free: 15.65 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001224/0.5823, allocations: 51.94 kB / 1.223 GB, free: 15.6 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 5.191e-05/0.5824, allocations: 23.92 kB / 1.223 GB, free: 15.57 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 3.429e-05/0.5824, allocations: 23.8 kB / 1.223 GB, free: 15.55 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0001619/0.5826, allocations: 107.2 kB / 1.223 GB, free: 15.45 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 2.645e-06/0.5826, allocations: 0 / 1.223 GB, free: 15.45 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.042e-06/0.5826, allocations: 0 / 1.223 GB, free: 15.45 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 7.665e-06/0.5826, allocations: 0 / 1.223 GB, free: 15.45 MB / 0.9512 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.0004951/0.5831, allocations: 399 kB / 1.223 GB, free: 15.01 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.085e-05/0.5831, allocations: 15.97 kB / 1.223 GB, free: 15 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.122e-05/0.5832, allocations: 34.73 kB / 1.223 GB, free: 14.95 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007673/0.5839, allocations: 212.5 kB / 1.223 GB, free: 14.75 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001509/0.5841, allocations: 188.8 kB / 1.223 GB, free: 14.52 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.015e-05/0.5842, allocations: 34.02 kB / 1.224 GB, free: 14.48 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.283e-05/0.5842, allocations: 4 kB / 1.224 GB, free: 14.48 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003748/0.5846, allocations: 177.5 kB / 1.224 GB, free: 14.3 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.414e-06/0.5846, allocations: 0 / 1.224 GB, free: 14.3 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.268e-05/0.5846, allocations: 0 / 1.224 GB, free: 14.3 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.326e-06/0.5846, allocations: 3.938 kB / 1.224 GB, free: 14.3 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005329/0.5851, allocations: 235.8 kB / 1.224 GB, free: 14.07 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007701/0.5859, allocations: 0.5116 MB / 1.224 GB, free: 13.5 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005334/0.5865, allocations: 242.3 kB / 1.225 GB, free: 13.26 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002659/0.5867, allocations: 116.8 kB / 1.225 GB, free: 13.14 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.436e-05/0.5868, allocations: 4 kB / 1.225 GB, free: 13.14 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.124e-05/0.5868, allocations: 30.56 kB / 1.225 GB, free: 13.1 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=2): time 1.062e-06/0.5868, allocations: 4 kB / 1.225 GB, free: 13.09 MB / 0.9512 GB Notification: Performance of matching and sorting (n=2): time 0.0008851/0.5877, allocations: 361.3 kB / 1.225 GB, free: 12.73 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.693e-05/0.5877, allocations: 55.34 kB / 1.225 GB, free: 12.67 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001389/0.5879, allocations: 173.7 kB / 1.225 GB, free: 12.49 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.715e-05/0.5879, allocations: 25.7 kB / 1.225 GB, free: 12.46 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 5.785e-05/0.588, allocations: 100.2 kB / 1.225 GB, free: 12.36 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 1.735e-05/0.588, allocations: 7.953 kB / 1.225 GB, free: 12.35 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.012e-05/0.588, allocations: 29.64 kB / 1.226 GB, free: 12.32 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.000116/0.5881, allocations: 318.8 kB / 1.226 GB, free: 12 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002739/0.5884, allocations: 111.9 kB / 1.226 GB, free: 11.89 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002566/0.5887, allocations: 115.9 kB / 1.226 GB, free: 11.77 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004768/0.5892, allocations: 196.7 kB / 1.226 GB, free: 11.58 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.467e-06/0.5892, allocations: 4 kB / 1.226 GB, free: 11.57 MB / 0.9512 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0005811/0.5898, allocations: 257.4 kB / 1.226 GB, free: 11.32 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.158e-05/0.5898, allocations: 8 kB / 1.226 GB, free: 11.31 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.116e-06/0.5898, allocations: 0 / 1.226 GB, free: 11.31 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.127e-06/0.5898, allocations: 0 / 1.226 GB, free: 11.31 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001886/0.59, allocations: 43.95 kB / 1.227 GB, free: 11.27 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.324e-06/0.59, allocations: 15.8 kB / 1.227 GB, free: 11.25 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001419/0.5902, allocations: 35.94 kB / 1.227 GB, free: 11.21 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.423e-05/0.5902, allocations: 3.984 kB / 1.227 GB, free: 11.21 MB / 0.9512 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.232e-05/0.5903, allocations: 125.8 kB / 1.227 GB, free: 11.08 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.427e-05/0.5903, allocations: 15.91 kB / 1.227 GB, free: 11.06 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.707e-05/0.5903, allocations: 3.875 kB / 1.227 GB, free: 11.05 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.789e-06/0.5904, allocations: 7.984 kB / 1.227 GB, free: 11.05 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/0.5904, allocations: 3.938 kB / 1.227 GB, free: 11.04 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.653e-06/0.5904, allocations: 0 / 1.227 GB, free: 11.04 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000238/0.5906, allocations: 245.7 kB / 1.227 GB, free: 10.75 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.881e-06/0.5906, allocations: 3.984 kB / 1.227 GB, free: 10.75 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001662/0.5908, allocations: 51.92 kB / 1.227 GB, free: 10.7 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.262e-06/0.5908, allocations: 0 / 1.227 GB, free: 10.7 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.306e-05/0.5908, allocations: 3.984 kB / 1.227 GB, free: 10.7 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/0.5908, allocations: 0 / 1.227 GB, free: 10.7 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.5908, allocations: 3.938 kB / 1.227 GB, free: 10.69 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005967/0.5914, allocations: 351.2 kB / 1.227 GB, free: 10.33 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 4.795e-05/0.5915, allocations: 85.06 kB / 1.227 GB, free: 10.23 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.806e-05/0.5915, allocations: 0 / 1.227 GB, free: 10.23 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001674/0.5917, allocations: 43.97 kB / 1.227 GB, free: 10.19 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.344e-05/0.5917, allocations: 3.938 kB / 1.227 GB, free: 10.18 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.12e-05/0.5917, allocations: 3.984 kB / 1.227 GB, free: 10.18 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 9.025e-05/0.5918, allocations: 128.5 kB / 1.228 GB, free: 10.05 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5918, allocations: 0 / 1.228 GB, free: 10.05 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002186/0.592, allocations: 19.94 kB / 1.228 GB, free: 10.04 MB / 0.9512 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.0008768/0.5929, allocations: 0.8807 MB / 1.228 GB, free: 9.129 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0005661/0.5935, allocations: 243.7 kB / 1.229 GB, free: 8.891 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.5935, allocations: 0 / 1.229 GB, free: 8.891 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0002788/0.5938, allocations: 115.9 kB / 1.229 GB, free: 8.777 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000191/0.594, allocations: 11.94 kB / 1.229 GB, free: 8.766 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002893/0.5969, allocations: 2.33 MB / 1.231 GB, free: 6.355 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002685/0.5972, allocations: 0.703 MB / 1.232 GB, free: 5.629 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 8.36e-05/0.5973, allocations: 24 kB / 1.232 GB, free: 5.605 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7e-05/0.5973, allocations: 31.41 kB / 1.232 GB, free: 5.574 MB / 0.9512 GB Notification: Performance of SimCode: time 2.51e-07/0.5973, allocations: 4 kB / 1.232 GB, free: 5.57 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.599/3.196, allocations: 2.647 MB / 1.234 GB, free: 3.012 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.62/14.82, allocations: 10.83 kB / 1.234 GB, free: 3.004 MB / 0.9512 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)