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/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.263/2.263, allocations: 387.4 MB / 394.9 MB, free: 13.4 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001077/0.001077, allocations: 176.9 kB / 487.4 MB, free: 5.055 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.467/1.467, allocations: 221.5 MB / 0.7824 GB, free: 0.9727 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008495/0.0008494, allocations: 103.8 kB / 0.9219 GB, free: 2.207 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.017e-05/2.019e-05, allocations: 4 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2648/0.2648, allocations: 142.4 MB / 1.206 GB, free: 43.9 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.098/1.363, allocations: 150.1 MB / 1.353 GB, free: 18.1 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003115/1.363, allocations: 92.33 kB / 1.353 GB, free: 18.1 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.006226/1.37, allocations: 1.675 MB / 1.354 GB, free: 33.71 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.424e-06/1.37, allocations: 0 / 1.354 GB, free: 33.71 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.312e-05/1.37, allocations: 3.844 kB / 1.354 GB, free: 33.71 MB / 0.8386 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.0004304/1.37, allocations: 374.5 kB / 1.355 GB, free: 33.34 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.831e-05/1.37, allocations: 7.688 kB / 1.355 GB, free: 33.34 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007436/1.371, allocations: 110 kB / 1.355 GB, free: 33.33 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001799/1.371, allocations: 191.6 kB / 1.355 GB, free: 33.12 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.624e-05/1.371, allocations: 32.73 kB / 1.355 GB, free: 33.09 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.859e-05/1.371, allocations: 6 kB / 1.355 GB, free: 33.09 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002251/1.371, allocations: 134.8 kB / 1.355 GB, free: 33.09 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001905/1.372, allocations: 125.1 kB / 1.355 GB, free: 33.05 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.039e-05/1.372, allocations: 0 / 1.355 GB, free: 33.05 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.202e-05/1.372, allocations: 0 / 1.355 GB, free: 33.05 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.612e-06/1.372, allocations: 0 / 1.355 GB, free: 33.05 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008468/1.373, allocations: 440 kB / 1.356 GB, free: 32.8 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002253/1.373, allocations: 153.6 kB / 1.356 GB, free: 32.77 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.331e-05/1.373, allocations: 69.05 kB / 1.356 GB, free: 32.76 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.913e-05/1.373, allocations: 0 / 1.356 GB, free: 32.76 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.124e-05/1.373, allocations: 39.36 kB / 1.356 GB, free: 32.72 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=2): time 2.845e-06/1.373, allocations: 0 / 1.356 GB, free: 32.72 MB / 0.8386 GB Notification: Performance of matching and sorting (n=2): time 0.0004788/1.373, allocations: 171.3 kB / 1.356 GB, free: 32.68 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.52e-05/1.373, allocations: 60.72 kB / 1.356 GB, free: 32.61 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000134/1.374, allocations: 133.2 kB / 1.356 GB, free: 32.52 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.639e-05/1.374, allocations: 25.7 kB / 1.356 GB, free: 32.49 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 7.02e-05/1.374, allocations: 103.9 kB / 1.356 GB, free: 32.41 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.004e-05/1.374, allocations: 3.906 kB / 1.356 GB, free: 32.4 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.177e-05/1.374, allocations: 0 / 1.356 GB, free: 32.4 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001412/1.374, allocations: 320.7 kB / 1.357 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.602e-05/1.374, allocations: 63.83 kB / 1.357 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.466e-05/1.374, allocations: 63.3 kB / 1.357 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001963/1.374, allocations: 56.7 kB / 1.357 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/1.374, allocations: 0 / 1.357 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0003354/1.375, allocations: 172.7 kB / 1.357 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 2.025e-05/1.375, allocations: 9.75 kB / 1.357 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/1.375, allocations: 2.688 kB / 1.357 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.426e-05/1.375, allocations: 0 / 1.357 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002059/1.375, allocations: 27.09 kB / 1.357 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.522e-06/1.375, allocations: 0 / 1.357 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001316/1.375, allocations: 27.95 kB / 1.357 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.729e-05/1.375, allocations: 11.2 kB / 1.357 GB, free: 32.04 MB / 0.8386 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 () * 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 9.338e-05/1.375, allocations: 104.8 kB / 1.357 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003483/1.376, allocations: 168.8 kB / 1.357 GB, free: 31.9 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.838e-05/1.376, allocations: 3.906 kB / 1.357 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.523e-05/1.376, allocations: 12.42 kB / 1.357 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.456e-06/1.376, allocations: 3.953 kB / 1.357 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.56e-06/1.376, allocations: 7.844 kB / 1.357 GB, free: 31.88 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.028e-06/1.376, allocations: 0 / 1.357 GB, free: 31.88 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002236/1.376, allocations: 214.3 kB / 1.358 GB, free: 31.72 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/1.376, allocations: 0 / 1.358 GB, free: 31.72 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000172/1.376, allocations: 27.3 kB / 1.358 GB, free: 31.72 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.063e-06/1.376, allocations: 3.938 kB / 1.358 GB, free: 31.72 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.8e-05/1.376, allocations: 6.875 kB / 1.358 GB, free: 31.72 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.382e-06/1.376, allocations: 0 / 1.358 GB, free: 31.72 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/1.376, allocations: 0 / 1.358 GB, free: 31.72 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004083/1.377, allocations: 270 kB / 1.358 GB, free: 31.58 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 3.107e-05/1.377, allocations: 86.81 kB / 1.358 GB, free: 31.48 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.571e-05/1.377, allocations: 0 / 1.358 GB, free: 31.48 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000162/1.377, allocations: 17.12 kB / 1.358 GB, free: 31.48 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.685e-05/1.377, allocations: 5.344 kB / 1.358 GB, free: 31.48 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.17e-05/1.377, allocations: 10.62 kB / 1.358 GB, free: 31.48 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 8.351e-05/1.377, allocations: 124.2 kB / 1.358 GB, free: 31.39 MB / 0.8386 GB Notification: Performance of sort global known variables: time 6.72e-07/1.377, allocations: 0 / 1.358 GB, free: 31.39 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002753/1.377, allocations: 28.47 kB / 1.358 GB, free: 31.39 MB / 0.8386 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 () * 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.000778/1.378, allocations: 0.8166 MB / 1.359 GB, free: 30.73 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0002404/1.378, allocations: 167.5 kB / 1.359 GB, free: 30.72 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/1.378, allocations: 0 / 1.359 GB, free: 30.72 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001009/1.378, allocations: 84.55 kB / 1.359 GB, free: 30.72 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001777/1.379, allocations: 5.219 kB / 1.359 GB, free: 30.72 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004853/1.379, allocations: 211 kB / 1.359 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003511/1.379, allocations: 0.6987 MB / 1.36 GB, free: 29.91 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0001141/1.38, allocations: 32.28 kB / 1.36 GB, free: 29.9 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.371e-05/1.38, allocations: 37.86 kB / 1.36 GB, free: 29.89 MB / 0.8386 GB Notification: Performance of SimCode: time 2.71e-07/1.38, allocations: 0 / 1.36 GB, free: 29.89 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02412/1.404, allocations: 1.74 MB / 1.362 GB, free: 29.77 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002469/1.404, allocations: 138.2 kB / 1.362 GB, free: 29.58 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.57/2.974, allocations: 4.5 kB / 1.362 GB, free: 29.58 MB / 0.8386 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