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.214/2.214, allocations: 387.1 MB / 399.7 MB, free: 9.465 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.001023/0.001023, allocations: 184.1 kB / 492.3 MB, free: 0.6172 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.584/1.584, allocations: 221.3 MB / 0.7871 GB, free: 12.94 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001008/0.001008, allocations: 95.83 kB / 0.9267 GB, free: 14.02 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.971e-05/2.973e-05, allocations: 4 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3094/0.3094, allocations: 142.3 MB / 1.212 GB, free: 38.43 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.007/1.317, allocations: 150.8 MB / 1.36 GB, free: 19.11 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003182/1.317, allocations: 86.72 kB / 1.36 GB, free: 19.11 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.005857/1.323, allocations: 1.689 MB / 1.361 GB, free: 34.72 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.592e-06/1.323, allocations: 0 / 1.361 GB, free: 34.72 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 9.808e-06/1.323, allocations: 0 / 1.361 GB, free: 34.72 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.0004376/1.323, allocations: 383.8 kB / 1.362 GB, free: 34.34 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.303e-05/1.323, allocations: 7.688 kB / 1.362 GB, free: 34.34 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.112e-05/1.323, allocations: 37.94 kB / 1.362 GB, free: 34.3 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007273/1.324, allocations: 99.72 kB / 1.362 GB, free: 34.3 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000169/1.324, allocations: 188.7 kB / 1.362 GB, free: 34.09 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.231e-05/1.324, allocations: 40.16 kB / 1.362 GB, free: 34.05 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.288e-05/1.325, allocations: 3.969 kB / 1.362 GB, free: 34.05 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002316/1.325, allocations: 126.5 kB / 1.362 GB, free: 34.02 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.608e-06/1.325, allocations: 0 / 1.362 GB, free: 34.02 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.132e-05/1.325, allocations: 6.844 kB / 1.362 GB, free: 34.02 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.818e-06/1.325, allocations: 3.984 kB / 1.362 GB, free: 34.01 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001975/1.325, allocations: 139.6 kB / 1.362 GB, free: 34.01 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000842/1.326, allocations: 468.6 kB / 1.363 GB, free: 33.72 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000216/1.326, allocations: 147.6 kB / 1.363 GB, free: 33.7 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.819e-05/1.326, allocations: 71.3 kB / 1.363 GB, free: 33.69 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.057e-05/1.326, allocations: 3.672 kB / 1.363 GB, free: 33.69 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.329e-05/1.326, allocations: 37.23 kB / 1.363 GB, free: 33.65 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=2): time 1.142e-06/1.326, allocations: 4 kB / 1.363 GB, free: 33.64 MB / 0.8386 GB Notification: Performance of matching and sorting (n=2): time 0.0003386/1.327, allocations: 166.5 kB / 1.363 GB, free: 33.61 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.103e-05/1.327, allocations: 51.41 kB / 1.363 GB, free: 33.54 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001396/1.327, allocations: 155.2 kB / 1.364 GB, free: 33.45 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.099e-05/1.327, allocations: 25.7 kB / 1.364 GB, free: 33.41 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 6.47e-05/1.327, allocations: 101.8 kB / 1.364 GB, free: 33.33 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.333e-05/1.327, allocations: 7.406 kB / 1.364 GB, free: 33.33 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.498e-06/1.327, allocations: 0 / 1.364 GB, free: 33.33 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001177/1.327, allocations: 324.9 kB / 1.364 GB, free: 33.01 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.356e-05/1.327, allocations: 65.09 kB / 1.364 GB, free: 33.01 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.652e-05/1.327, allocations: 62.45 kB / 1.364 GB, free: 33.01 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.825e-05/1.327, allocations: 52.11 kB / 1.364 GB, free: 33.01 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/1.327, allocations: 0 / 1.364 GB, free: 33.01 MB / 0.8386 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002305/1.328, allocations: 161.4 kB / 1.364 GB, free: 32.98 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.871e-05/1.328, allocations: 6.25 kB / 1.364 GB, free: 32.98 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/1.328, allocations: 1.547 kB / 1.364 GB, free: 32.98 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.641e-05/1.328, allocations: 4.047 kB / 1.364 GB, free: 32.97 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002094/1.328, allocations: 39.16 kB / 1.364 GB, free: 32.96 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.666e-06/1.328, allocations: 0 / 1.364 GB, free: 32.96 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001318/1.328, allocations: 16.55 kB / 1.364 GB, free: 32.96 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.343e-05/1.328, allocations: 10.66 kB / 1.364 GB, free: 32.96 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 6.834e-05/1.328, allocations: 102.4 kB / 1.364 GB, free: 32.86 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.255e-05/1.328, allocations: 7.781 kB / 1.364 GB, free: 32.86 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.77e-05/1.328, allocations: 16.5 kB / 1.364 GB, free: 32.85 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/1.328, allocations: 3.953 kB / 1.364 GB, free: 32.85 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.753e-06/1.328, allocations: 4.75 kB / 1.364 GB, free: 32.84 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.057e-06/1.328, allocations: 5.203 kB / 1.365 GB, free: 32.84 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000228/1.329, allocations: 241.3 kB / 1.365 GB, free: 32.65 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/1.329, allocations: 0 / 1.365 GB, free: 32.65 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001613/1.329, allocations: 27.22 kB / 1.365 GB, free: 32.65 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/1.329, allocations: 0.8125 kB / 1.365 GB, free: 32.65 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.743e-05/1.329, allocations: 7.297 kB / 1.365 GB, free: 32.65 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/1.329, allocations: 4 kB / 1.365 GB, free: 32.64 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.476e-06/1.329, allocations: 5.5 kB / 1.365 GB, free: 32.64 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002755/1.329, allocations: 260.9 kB / 1.365 GB, free: 32.5 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 3.415e-05/1.329, allocations: 82.56 kB / 1.365 GB, free: 32.41 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.669e-05/1.329, allocations: 9.125 kB / 1.365 GB, free: 32.4 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001642/1.329, allocations: 13.23 kB / 1.365 GB, free: 32.4 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.721e-05/1.329, allocations: 11.8 kB / 1.365 GB, free: 32.39 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.011e-05/1.329, allocations: 11.5 kB / 1.365 GB, free: 32.39 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 8.842e-05/1.329, allocations: 122.7 kB / 1.365 GB, free: 32.32 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.31e-07/1.329, allocations: 3.812 kB / 1.365 GB, free: 32.32 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.000231/1.33, allocations: 23.47 kB / 1.365 GB, free: 32.31 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.0005203/1.33, allocations: 0.8121 MB / 1.366 GB, free: 31.65 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0002183/1.33, allocations: 168.1 kB / 1.366 GB, free: 31.65 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/1.33, allocations: 0 / 1.366 GB, free: 31.65 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 9.958e-05/1.331, allocations: 83.17 kB / 1.366 GB, free: 31.65 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000149/1.331, allocations: 8.062 kB / 1.366 GB, free: 31.65 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00046/1.331, allocations: 219.9 kB / 1.367 GB, free: 31.52 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002456/1.331, allocations: 0.7043 MB / 1.367 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 9.736e-05/1.332, allocations: 24.62 kB / 1.367 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.467e-05/1.332, allocations: 29.58 kB / 1.367 GB, free: 30.81 MB / 0.8386 GB Notification: Performance of SimCode: time 6.82e-07/1.332, allocations: 4 kB / 1.367 GB, free: 30.81 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0121/1.344, allocations: 2.224 MB / 1.369 GB, free: 30.58 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001421/1.344, allocations: 169.8 kB / 1.37 GB, free: 30.35 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.603/2.947, allocations: 0 / 1.37 GB, free: 30.35 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