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.001569/0.001569, allocations: 108 kB / 15.61 MB, free: 144 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.001812/0.001812, allocations: 194 kB / 16.53 MB, free: 6.66 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.45/1.45, 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 9.1.3-maint.9.1.x/package.mo): time 2.33/2.33, allocations: 390.2 MB / 0.6647 GB, free: 464 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00125/0.00125, allocations: 59.91 kB / 0.8127 GB, free: 14.36 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4998/0.501, allocations: 140.4 MB / 0.9497 GB, free: 9.227 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar): time 0.002253/0.5033, allocations: 1.564 MB / 0.9513 GB, free: 8 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0007392/0.5041, allocations: 0.5872 MB / 0.9518 GB, free: 7.539 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.411e-05/0.5041, allocations: 1.281 kB / 0.9518 GB, free: 7.539 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.897e-05/0.5042, allocations: 7.922 kB / 0.9518 GB, free: 7.531 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.843e-05/0.5043, allocations: 10.66 kB / 0.9519 GB, free: 7.523 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002518/0.5045, allocations: 50.66 kB / 0.9519 GB, free: 7.488 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.59e-05/0.5046, allocations: 48.55 kB / 0.9519 GB, free: 7.461 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.382e-05/0.5047, allocations: 26.34 kB / 0.952 GB, free: 7.441 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.526e-05/0.5048, allocations: 25.02 kB / 0.952 GB, free: 7.426 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.54e-05/0.5049, allocations: 23.88 kB / 0.952 GB, free: 7.41 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.619e-05/0.5049, allocations: 2.875 kB / 0.952 GB, free: 7.41 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001148/0.505, allocations: 53.77 kB / 0.9521 GB, free: 7.383 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.756e-05/0.5051, allocations: 18.52 kB / 0.9521 GB, free: 7.371 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.355e-05/0.5051, allocations: 30.64 kB / 0.9521 GB, free: 7.348 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001376/0.5052, allocations: 103.5 kB / 0.9522 GB, free: 7.277 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.5052, allocations: 0 / 0.9522 GB, free: 7.277 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.172e-06/0.5053, allocations: 0 / 0.9522 GB, free: 7.277 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.098e-06/0.5053, allocations: 0 / 0.9522 GB, free: 7.277 MB / 0.7169 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.0004122/0.5057, allocations: 392 kB / 0.9526 GB, free: 6.875 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.301e-05/0.5057, allocations: 10.38 kB / 0.9526 GB, free: 6.875 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.751e-05/0.5058, allocations: 38.69 kB / 0.9526 GB, free: 6.828 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000829/0.5066, allocations: 212.3 kB / 0.9528 GB, free: 6.719 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001004/0.5067, allocations: 190.9 kB / 0.953 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.338e-05/0.5067, allocations: 32.48 kB / 0.9531 GB, free: 6.469 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.477e-05/0.5068, allocations: 2.344 kB / 0.9531 GB, free: 6.469 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003649/0.5071, allocations: 177.9 kB / 0.9532 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.183e-06/0.5072, allocations: 3.984 kB / 0.9532 GB, free: 6.359 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.255e-05/0.5072, allocations: 0 / 0.9532 GB, free: 6.359 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.108e-06/0.5072, allocations: 1.094 kB / 0.9532 GB, free: 6.359 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005314/0.5077, allocations: 238.4 kB / 0.9535 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006774/0.5084, allocations: 0.5087 MB / 0.954 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005285/0.5089, allocations: 237.3 kB / 0.9542 GB, free: 5.723 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002674/0.5092, allocations: 120.8 kB / 0.9543 GB, free: 5.668 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.102e-05/0.5092, allocations: 3.938 kB / 0.9543 GB, free: 5.664 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.397e-05/0.5093, allocations: 39.78 kB / 0.9543 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.143e-06/0.5093, allocations: 0 / 0.9543 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.000897/0.5102, allocations: 362.5 kB / 0.9547 GB, free: 5.449 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.276e-05/0.5102, allocations: 59.47 kB / 0.9547 GB, free: 5.379 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001031/0.5103, allocations: 176.5 kB / 0.9549 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.115e-05/0.5103, allocations: 25.7 kB / 0.9549 GB, free: 5.211 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.958e-05/0.5104, allocations: 103.6 kB / 0.955 GB, free: 5.109 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.837e-05/0.5104, allocations: 3.906 kB / 0.955 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.553e-05/0.5104, allocations: 24.8 kB / 0.9551 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.12e-05/0.5105, allocations: 318.8 kB / 0.9554 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002638/0.5107, allocations: 115.6 kB / 0.9555 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000253/0.511, allocations: 114.5 kB / 0.9556 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004639/0.5115, allocations: 196.4 kB / 0.9558 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.5115, allocations: 8 kB / 0.9558 GB, free: 4.574 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0005492/0.512, allocations: 257 kB / 0.956 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.175e-05/0.5121, allocations: 8.062 kB / 0.956 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.5121, allocations: 1.375 kB / 0.956 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.228e-05/0.5121, allocations: 0 / 0.956 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001934/0.5123, allocations: 41.92 kB / 0.9561 GB, free: 4.422 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.919e-06/0.5123, allocations: 3.938 kB / 0.9561 GB, free: 4.418 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00015/0.5125, allocations: 45.83 kB / 0.9561 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.263e-05/0.5125, allocations: 1.375 kB / 0.9561 GB, free: 4.391 MB / 0.7169 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 5.886e-05/0.5125, allocations: 115.3 kB / 0.9562 GB, free: 4.273 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.71e-05/0.5126, allocations: 11.97 kB / 0.9562 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.825e-05/0.5126, allocations: 10.62 kB / 0.9563 GB, free: 4.262 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.784e-06/0.5126, allocations: 1.375 kB / 0.9563 GB, free: 4.262 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.586e-06/0.5126, allocations: 3.938 kB / 0.9563 GB, free: 4.258 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.475e-06/0.5126, allocations: 7.984 kB / 0.9563 GB, free: 4.25 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001887/0.5128, allocations: 243.7 kB / 0.9565 GB, free: 4.016 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.5128, allocations: 0 / 0.9565 GB, free: 4.016 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001797/0.513, allocations: 45.22 kB / 0.9565 GB, free: 3.992 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.513, allocations: 0 / 0.9565 GB, free: 3.992 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.277e-05/0.513, allocations: 10.3 kB / 0.9566 GB, free: 3.984 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.513, allocations: 0 / 0.9566 GB, free: 3.984 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.513, allocations: 7.875 kB / 0.9566 GB, free: 3.977 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005891/0.5136, allocations: 348.8 kB / 0.9569 GB, free: 3.75 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.605e-05/0.5137, allocations: 87.72 kB / 0.957 GB, free: 3.648 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.354e-05/0.5137, allocations: 0 / 0.957 GB, free: 3.648 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001831/0.5139, allocations: 33.53 kB / 0.957 GB, free: 3.633 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.745e-05/0.5139, allocations: 8.969 kB / 0.957 GB, free: 3.625 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.192e-05/0.5139, allocations: 5.453 kB / 0.957 GB, free: 3.621 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 7.534e-05/0.514, allocations: 137.6 kB / 0.9572 GB, free: 3.516 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.514, allocations: 0 / 0.9572 GB, free: 3.516 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002552/0.5143, allocations: 14.94 kB / 0.9572 GB, free: 3.516 MB / 0.7169 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.0008343/0.5151, allocations: 0.8811 MB / 0.958 GB, free: 2.758 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0006004/0.5157, allocations: 233 kB / 0.9582 GB, free: 2.664 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/0.5158, allocations: 0 / 0.9582 GB, free: 2.664 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002878/0.5161, allocations: 125.7 kB / 0.9584 GB, free: 2.609 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000237/0.5163, allocations: 10.16 kB / 0.9584 GB, free: 2.602 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002782/0.5191, allocations: 2.325 MB / 0.9606 GB, free: 0.9219 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.441e-05/0.5192, allocations: 0.6916 MB / 0.9613 GB, free: 224 kB / 0.7169 GB Notification: Performance of simCode: alias equations: time 9.264e-05/0.5193, allocations: 26.31 kB / 0.9613 GB, free: 212 kB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.538e-05/0.5194, allocations: 34.75 kB / 0.9614 GB, free: 180 kB / 0.7169 GB Notification: Performance of SimCode: time 2.31e-07/0.5194, allocations: 1.094 kB / 0.9614 GB, free: 180 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3906/0.9099, allocations: 2.609 MB / 0.9639 GB, free: 14.8 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.574/8.484, allocations: 9.109 kB / 0.9639 GB, free: 14.8 MB / 0.7325 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)