Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar,fileNamePrefix="Buildings_10_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.004536/0.004536, allocations: 101.4 kB / 15.73 MB, free: 6.062 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.001357/0.001357, allocations: 188.6 kB / 16.67 MB, free: 5.973 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.241/1.241, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.212/2.212, allocations: 437.1 MB / 0.7105 GB, free: 4.355 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001667/0.001667, allocations: 71.84 kB / 1.018 GB, free: 9.836 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5904/0.5921, allocations: 151.6 MB / 1.166 GB, free: 3.746 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar): time 0.00246/0.5945, allocations: 1.593 MB / 1.168 GB, free: 2.145 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.0009023/0.5955, allocations: 0.5853 MB / 1.168 GB, free: 1.551 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.812e-05/0.5955, allocations: 0 / 1.168 GB, free: 1.551 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 4.434e-05/0.5956, allocations: 11.92 kB / 1.168 GB, free: 1.539 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 6.295e-05/0.5956, allocations: 7.875 kB / 1.168 GB, free: 1.531 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002501/0.5959, allocations: 59.81 kB / 1.168 GB, free: 1.473 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 8.617e-05/0.596, allocations: 47.84 kB / 1.168 GB, free: 1.426 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 7.605e-05/0.5961, allocations: 12 kB / 1.168 GB, free: 1.414 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 7.499e-05/0.5962, allocations: 23.91 kB / 1.168 GB, free: 1.391 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 7.034e-05/0.5962, allocations: 27.86 kB / 1.169 GB, free: 1.363 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.541e-05/0.5963, allocations: 4 kB / 1.169 GB, free: 1.359 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001206/0.5964, allocations: 51.88 kB / 1.169 GB, free: 1.309 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 5.515e-05/0.5964, allocations: 27.92 kB / 1.169 GB, free: 1.281 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 3.965e-05/0.5965, allocations: 27.81 kB / 1.169 GB, free: 1.254 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001614/0.5967, allocations: 91.33 kB / 1.169 GB, free: 1.168 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 2.796e-06/0.5967, allocations: 0 / 1.169 GB, free: 1.168 MB / 0.8887 GB Notification: Performance of FrontEnd: time 9.32e-07/0.5967, allocations: 0 / 1.169 GB, free: 1.168 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 3.908e-06/0.5967, allocations: 0 / 1.169 GB, free: 1.168 MB / 0.8887 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.0005221/0.5972, allocations: 406.9 kB / 1.169 GB, free: 0.7227 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.083e-05/0.5972, allocations: 8.922 kB / 1.169 GB, free: 0.7148 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.152e-05/0.5973, allocations: 30.75 kB / 1.169 GB, free: 0.6758 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007847/0.5981, allocations: 212.5 kB / 1.169 GB, free: 480 kB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001641/0.5982, allocations: 198.4 kB / 1.17 GB, free: 244 kB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.93e-05/0.5983, allocations: 34 kB / 1.17 GB, free: 204 kB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.437e-05/0.5983, allocations: 8 kB / 1.17 GB, free: 196 kB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000376/0.5987, allocations: 169.5 kB / 1.17 GB, free: 20 kB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.642e-06/0.5987, allocations: 0 / 1.17 GB, free: 20 kB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.053e-05/0.5987, allocations: 0 / 1.17 GB, free: 20 kB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.646e-06/0.5987, allocations: 0 / 1.17 GB, free: 20 kB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005605/0.5993, allocations: 235.8 kB / 1.17 GB, free: 15.79 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007724/0.6001, allocations: 0.5194 MB / 1.17 GB, free: 15.22 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005325/0.6006, allocations: 234.3 kB / 1.171 GB, free: 14.98 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002966/0.6009, allocations: 124.8 kB / 1.171 GB, free: 14.86 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 1.318e-05/0.601, allocations: 0 / 1.171 GB, free: 14.86 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.149e-05/0.601, allocations: 30.56 kB / 1.171 GB, free: 14.82 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=2): time 7.61e-07/0.601, allocations: 0 / 1.171 GB, free: 14.82 MB / 0.9044 GB Notification: Performance of matching and sorting (n=2): time 0.0009042/0.6019, allocations: 373.3 kB / 1.171 GB, free: 14.45 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.341e-05/0.6019, allocations: 59.34 kB / 1.171 GB, free: 14.38 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001445/0.6021, allocations: 164.9 kB / 1.171 GB, free: 14.21 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 1.767e-05/0.6021, allocations: 25.7 kB / 1.171 GB, free: 14.18 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 5.521e-05/0.6022, allocations: 100.1 kB / 1.172 GB, free: 14.07 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 1.831e-05/0.6022, allocations: 7.953 kB / 1.172 GB, free: 14.07 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.511e-05/0.6023, allocations: 25.69 kB / 1.172 GB, free: 14.04 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001191/0.6024, allocations: 318.9 kB / 1.172 GB, free: 13.71 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002712/0.6027, allocations: 111.9 kB / 1.172 GB, free: 13.61 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002731/0.6029, allocations: 115.9 kB / 1.172 GB, free: 13.49 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004926/0.6034, allocations: 204.7 kB / 1.172 GB, free: 13.29 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.6035, allocations: 0 / 1.172 GB, free: 13.29 MB / 0.9044 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0005853/0.604, allocations: 257.3 kB / 1.173 GB, free: 13.03 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.143e-05/0.6041, allocations: 4 kB / 1.173 GB, free: 13.03 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.87e-06/0.6041, allocations: 0 / 1.173 GB, free: 13.03 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.468e-06/0.6041, allocations: 3.938 kB / 1.173 GB, free: 13.02 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001901/0.6043, allocations: 47.91 kB / 1.173 GB, free: 12.98 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.801e-06/0.6043, allocations: 3.938 kB / 1.173 GB, free: 12.97 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001425/0.6044, allocations: 35.97 kB / 1.173 GB, free: 12.94 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.444e-05/0.6045, allocations: 3.984 kB / 1.173 GB, free: 12.93 MB / 0.9044 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.504e-05/0.6046, allocations: 117.8 kB / 1.173 GB, free: 12.81 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.49e-05/0.6046, allocations: 11.94 kB / 1.173 GB, free: 12.8 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.267e-05/0.6046, allocations: 11.86 kB / 1.173 GB, free: 12.78 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.393e-06/0.6046, allocations: 4 kB / 1.173 GB, free: 12.78 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.6046, allocations: 3.938 kB / 1.173 GB, free: 12.77 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.733e-06/0.6046, allocations: 0 / 1.173 GB, free: 12.77 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002657/0.6049, allocations: 253.4 kB / 1.173 GB, free: 12.48 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.6049, allocations: 0 / 1.173 GB, free: 12.48 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001715/0.6051, allocations: 51.86 kB / 1.173 GB, free: 12.43 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.6051, allocations: 0 / 1.173 GB, free: 12.43 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.607e-05/0.6051, allocations: 3.984 kB / 1.173 GB, free: 12.42 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.725e-06/0.6051, allocations: 7.938 kB / 1.173 GB, free: 12.41 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.6051, allocations: 7.938 kB / 1.173 GB, free: 12.41 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006329/0.6058, allocations: 347.2 kB / 1.173 GB, free: 12.05 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.125e-05/0.6058, allocations: 85.06 kB / 1.173 GB, free: 11.95 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.105e-05/0.6059, allocations: 4 kB / 1.173 GB, free: 11.95 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001735/0.6061, allocations: 35.92 kB / 1.174 GB, free: 11.91 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.391e-05/0.6061, allocations: 7.969 kB / 1.174 GB, free: 11.9 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.15e-05/0.6061, allocations: 4 kB / 1.174 GB, free: 11.9 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 9.499e-05/0.6062, allocations: 127.2 kB / 1.174 GB, free: 11.77 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1e-07/0.6062, allocations: 0 / 1.174 GB, free: 11.77 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002228/0.6064, allocations: 15.94 kB / 1.174 GB, free: 11.76 MB / 0.9044 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.000924/0.6074, allocations: 0.884 MB / 1.175 GB, free: 10.85 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.000585/0.608, allocations: 235.8 kB / 1.175 GB, free: 10.62 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.608, allocations: 4.062 kB / 1.175 GB, free: 10.61 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0002843/0.6083, allocations: 115.9 kB / 1.175 GB, free: 10.5 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002005/0.6085, allocations: 11.92 kB / 1.175 GB, free: 10.49 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00311/0.6116, allocations: 2.345 MB / 1.177 GB, free: 8.062 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002857/0.6119, allocations: 0.6924 MB / 1.178 GB, free: 7.344 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 8.509e-05/0.612, allocations: 23.98 kB / 1.178 GB, free: 7.32 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.88e-05/0.612, allocations: 27.42 kB / 1.178 GB, free: 7.293 MB / 0.9044 GB Notification: Performance of SimCode: time 2.1e-07/0.6121, allocations: 0 / 1.178 GB, free: 7.293 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9491/1.561, allocations: 2.669 MB / 1.18 GB, free: 4.723 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.68/13.24, allocations: 10.14 kB / 1.18 GB, free: 4.715 MB / 0.9044 GB (rm -f Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe ; mkfifo Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe >> ../files/Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar_fmu --startTime=0 --stopTime=86400 --timeout=400 --tolerance=1e-06 Buildings_10_Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar.fmu > Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe 2>&1)