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.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-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.0009146/0.0009144, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.0009049/0.0009047, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.363/1.363, allocations: 223.2 MB / 239.9 MB, free: 5.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.314/2.314, allocations: 390.3 MB / 0.6653 GB, free: 2.93 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003533/0.0003533, allocations: 12 kB / 0.8146 GB, free: 14.14 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6992/0.6995, allocations: 142.3 MB / 0.9536 GB, free: 8.102 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar): time 0.001631/0.7012, allocations: 1.277 MB / 0.9548 GB, free: 7.094 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0007644/0.702, allocations: 0.5532 MB / 0.9554 GB, free: 6.664 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.287e-05/0.7021, allocations: 1.375 kB / 0.9554 GB, free: 6.664 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.573e-05/0.7021, allocations: 7.922 kB / 0.9554 GB, free: 6.656 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.917e-05/0.7022, allocations: 6.266 kB / 0.9554 GB, free: 6.652 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002206/0.7024, allocations: 39.52 kB / 0.9554 GB, free: 6.625 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.54e-05/0.7025, allocations: 31.41 kB / 0.9555 GB, free: 6.605 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.504e-05/0.7026, allocations: 17.84 kB / 0.9555 GB, free: 6.594 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.459e-05/0.7027, allocations: 16.86 kB / 0.9555 GB, free: 6.586 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.268e-05/0.7028, allocations: 19.27 kB / 0.9555 GB, free: 6.574 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.259e-05/0.7028, allocations: 5.922 kB / 0.9555 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001205/0.7029, allocations: 52.83 kB / 0.9556 GB, free: 6.539 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.613e-05/0.703, allocations: 10.48 kB / 0.9556 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.484e-05/0.703, allocations: 37.23 kB / 0.9556 GB, free: 6.496 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001136/0.7031, allocations: 69.64 kB / 0.9557 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.635e-06/0.7031, allocations: 0 / 0.9557 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.412e-06/0.7031, allocations: 0 / 0.9557 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.536e-06/0.7031, allocations: 0 / 0.9557 GB, free: 6.453 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.0004436/0.7036, allocations: 380.5 kB / 0.956 GB, free: 6.059 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.075e-05/0.7036, allocations: 9.125 kB / 0.9561 GB, free: 6.059 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.454e-05/0.7037, allocations: 35.78 kB / 0.9561 GB, free: 6.016 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008688/0.7046, allocations: 223.3 kB / 0.9563 GB, free: 5.898 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00014/0.7047, allocations: 186.8 kB / 0.9565 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.128e-05/0.7048, allocations: 29.64 kB / 0.9565 GB, free: 5.656 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.831e-05/0.7048, allocations: 10.34 kB / 0.9565 GB, free: 5.648 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004145/0.7052, allocations: 174.8 kB / 0.9567 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.787e-06/0.7052, allocations: 3.984 kB / 0.9567 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.402e-05/0.7053, allocations: 1.156 kB / 0.9567 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.593e-06/0.7053, allocations: 3.953 kB / 0.9567 GB, free: 5.539 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005708/0.7058, allocations: 247.9 kB / 0.9569 GB, free: 5.438 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007883/0.7066, allocations: 0.5018 MB / 0.9574 GB, free: 5.02 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005517/0.7072, allocations: 245.5 kB / 0.9577 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.387e-05/0.7072, allocations: 8 kB / 0.9577 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.665e-05/0.7073, allocations: 32.19 kB / 0.9577 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.092e-06/0.7073, allocations: 0 / 0.9577 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0009528/0.7082, allocations: 377.2 kB / 0.9581 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.411e-05/0.7083, allocations: 51.41 kB / 0.9581 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001297/0.7084, allocations: 173.6 kB / 0.9583 GB, free: 4.48 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.364e-05/0.7084, allocations: 25.7 kB / 0.9583 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.157e-05/0.7085, allocations: 105.6 kB / 0.9584 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.056e-05/0.7085, allocations: 9.219 kB / 0.9584 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.236e-06/0.7085, allocations: 0 / 0.9584 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.022e-05/0.7086, allocations: 321.6 kB / 0.9587 GB, free: 4.02 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002784/0.7088, allocations: 120.7 kB / 0.9588 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000264/0.7091, allocations: 116.6 kB / 0.9589 GB, free: 3.922 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002478/0.7094, allocations: 95.02 kB / 0.959 GB, free: 3.887 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.7094, allocations: 0 / 0.959 GB, free: 3.887 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0005972/0.71, allocations: 265.3 kB / 0.9593 GB, free: 3.754 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.469e-05/0.71, allocations: 10.34 kB / 0.9593 GB, free: 3.75 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.218e-06/0.71, allocations: 0 / 0.9593 GB, free: 3.75 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.109e-05/0.71, allocations: 0 / 0.9593 GB, free: 3.75 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002115/0.7102, allocations: 51.16 kB / 0.9593 GB, free: 3.723 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.961e-06/0.7103, allocations: 0 / 0.9593 GB, free: 3.723 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00016/0.7104, allocations: 43.12 kB / 0.9594 GB, free: 3.699 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.56e-05/0.7104, allocations: 5.172 kB / 0.9594 GB, free: 3.695 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.173e-05/0.7105, allocations: 112.1 kB / 0.9595 GB, free: 3.582 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.374e-05/0.7106, allocations: 14.88 kB / 0.9595 GB, free: 3.57 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.09e-05/0.7106, allocations: 11.31 kB / 0.9595 GB, free: 3.566 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-06/0.7106, allocations: 1 kB / 0.9595 GB, free: 3.566 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.968e-06/0.7106, allocations: 0 / 0.9595 GB, free: 3.566 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.525e-06/0.7106, allocations: 1.031 kB / 0.9595 GB, free: 3.566 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002208/0.7108, allocations: 246.8 kB / 0.9598 GB, free: 3.328 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.7108, allocations: 3.938 kB / 0.9598 GB, free: 3.324 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001809/0.711, allocations: 47.36 kB / 0.9598 GB, free: 3.301 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.906e-06/0.711, allocations: 7.938 kB / 0.9598 GB, free: 3.293 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.382e-05/0.7111, allocations: 6.031 kB / 0.9598 GB, free: 3.289 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.7111, allocations: 0 / 0.9598 GB, free: 3.289 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.7111, allocations: 0 / 0.9598 GB, free: 3.289 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000641/0.7117, allocations: 360.6 kB / 0.9602 GB, free: 3.055 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.369e-05/0.7118, allocations: 84.02 kB / 0.9602 GB, free: 2.957 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.517e-05/0.7118, allocations: 5.234 kB / 0.9602 GB, free: 2.953 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001919/0.712, allocations: 37.89 kB / 0.9603 GB, free: 2.934 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.148e-05/0.712, allocations: 5 kB / 0.9603 GB, free: 2.93 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.187e-05/0.7121, allocations: 10.23 kB / 0.9603 GB, free: 2.922 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 9.742e-05/0.7122, allocations: 130.9 kB / 0.9604 GB, free: 2.824 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7122, allocations: 0 / 0.9604 GB, free: 2.824 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002619/0.7124, allocations: 15.53 kB / 0.9604 GB, free: 2.824 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008573/0.7133, allocations: 0.8898 MB / 0.9613 GB, free: 2.062 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0006276/0.7139, allocations: 238 kB / 0.9615 GB, free: 1.969 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.7139, allocations: 0 / 0.9615 GB, free: 1.969 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002982/0.7142, allocations: 123.7 kB / 0.9616 GB, free: 1.918 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001531/0.7144, allocations: 6.359 kB / 0.9617 GB, free: 1.914 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002026/0.7164, allocations: 1.168 MB / 0.9628 GB, free: 1.211 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001371/0.7166, allocations: 0.7008 MB / 0.9635 GB, free: 0.5 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 9.845e-05/0.7167, allocations: 21.92 kB / 0.9635 GB, free: 0.4922 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.786e-05/0.7168, allocations: 31.61 kB / 0.9635 GB, free: 476 kB / 0.7169 GB Notification: Performance of SimCode: time 9.72e-07/0.7168, allocations: 0 / 0.9635 GB, free: 476 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01356/0.7303, allocations: 2.346 MB / 0.9658 GB, free: 15.35 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001718/0.7305, allocations: 193.2 kB / 0.966 GB, free: 15.11 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.616/2.346, allocations: 0 / 0.966 GB, free: 15.11 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/linux/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) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar_res.mat does not exist to compare? outputFormat=mat