Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.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.Examples.StratifiedUnloadAtMinimumTemperature,fileNamePrefix="Buildings_9_Buildings_Fluid_Storage_Examples_StratifiedUnloadAtMinimumTemperature",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature,fileNamePrefix="Buildings_9_Buildings_Fluid_Storage_Examples_StratifiedUnloadAtMinimumTemperature",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.24/2.24, allocations: 387.4 MB / 394.9 MB, free: 13.36 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.001017/0.001017, allocations: 180.9 kB / 487.4 MB, free: 5.023 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.665/1.665, allocations: 221.5 MB / 0.7824 GB, free: 0.9102 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.0008746/0.0008747, allocations: 95.84 kB / 0.9219 GB, free: 2.148 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.177e-05/2.186e-05, allocations: 4 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2558/0.2558, allocations: 142.4 MB / 1.206 GB, free: 43.82 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.081/1.337, allocations: 424.9 MB / 1.621 GB, free: 13.23 MB / 1.042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002691/1.337, allocations: 94.59 kB / 1.621 GB, free: 13.19 MB / 1.042 GB Notification: Performance of FrontEnd - DAE generated: time 3.402/4.739, allocations: 0.9942 GB / 2.615 GB, free: 13.1 MB / 1.151 GB Notification: Performance of FrontEnd: time 2.605e-06/4.739, allocations: 0 / 2.615 GB, free: 13.1 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0004046/4.74, allocations: 79.98 kB / 2.615 GB, free: 13.02 MB / 1.151 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 586 * Number of variables: 586 Notification: Performance of Generate backend data structure: time 0.008771/4.749, allocations: 2.719 MB / 2.618 GB, free: 10.24 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 7.561e-05/4.749, allocations: 8.031 kB / 2.618 GB, free: 10.23 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002327/4.751, allocations: 352 kB / 2.618 GB, free: 9.887 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007085/4.758, allocations: 3.107 MB / 2.621 GB, free: 6.727 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.916e-05/4.758, allocations: 72 kB / 2.621 GB, free: 6.656 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003813/4.759, allocations: 143.9 kB / 2.622 GB, free: 6.516 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003741/4.762, allocations: 2.2 MB / 2.624 GB, free: 4.309 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003918/4.766, allocations: 2.659 MB / 2.626 GB, free: 1.516 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.413e-05/4.766, allocations: 3.953 kB / 2.626 GB, free: 1.512 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002022/4.767, allocations: 7.938 kB / 2.626 GB, free: 1.504 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.891e-05/4.767, allocations: 64 kB / 2.626 GB, free: 1.441 MB / 1.151 GB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.8863/5.653, allocations: 12.57 MB / 2.639 GB, free: 268.9 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002896/5.656, allocations: 1.566 MB / 2.64 GB, free: 268.8 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001952/5.658, allocations: 1.099 MB / 2.641 GB, free: 268.7 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007611/5.659, allocations: 0.7164 MB / 2.642 GB, free: 268 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.074e-05/5.659, allocations: 48.66 kB / 2.642 GB, free: 268 MB / 1.151 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002273/5.661, allocations: 204.9 kB / 2.642 GB, free: 267.9 MB / 1.151 GB Notification: Performance of pre-optimization done (n=126): time 5.791e-06/5.661, allocations: 2.344 kB / 2.642 GB, free: 267.9 MB / 1.151 GB Notification: Performance of matching and sorting (n=126): time 0.004093/5.665, allocations: 1.631 MB / 2.644 GB, free: 267.7 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.467e-05/5.665, allocations: 143.6 kB / 2.644 GB, free: 267.6 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003805/5.669, allocations: 1.762 MB / 2.646 GB, free: 267.4 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0003079/5.669, allocations: 28.89 kB / 2.646 GB, free: 267.3 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.00171/5.671, allocations: 1.257 MB / 2.647 GB, free: 266.9 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005978/5.672, allocations: 426.4 kB / 2.647 GB, free: 266.7 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.655e-05/5.672, allocations: 0 / 2.647 GB, free: 266.7 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0001463/5.672, allocations: 374 kB / 2.648 GB, free: 266.4 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001203/5.673, allocations: 0.6569 MB / 2.648 GB, free: 266.4 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001605/5.675, allocations: 1.174 MB / 2.65 GB, free: 265.8 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00194/5.677, allocations: 0.9187 MB / 2.65 GB, free: 265.8 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.588e-05/5.677, allocations: 4.906 kB / 2.65 GB, free: 265.8 MB / 1.151 GB Notification: Performance of matching and sorting (n=213) (initialization): time 0.004403/5.681, allocations: 2.173 MB / 2.653 GB, free: 265.6 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.001181/5.682, allocations: 5.697 MB / 2.658 GB, free: 259.7 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.542e-05/5.682, allocations: 15.84 kB / 2.658 GB, free: 259.7 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001625/5.684, allocations: 425.7 kB / 2.659 GB, free: 259.6 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001514/5.686, allocations: 364.8 kB / 2.659 GB, free: 259.6 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00317/5.689, allocations: 2.989 MB / 2.662 GB, free: 257.8 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003233/5.692, allocations: 196.6 kB / 2.662 GB, free: 257.8 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003994/5.693, allocations: 83.8 kB / 2.662 GB, free: 257.8 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.331e-05/5.693, allocations: 3.656 kB / 2.662 GB, free: 257.8 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00328/5.696, allocations: 1.907 MB / 2.664 GB, free: 257.8 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.034e-05/5.696, allocations: 15.75 kB / 2.664 GB, free: 257.8 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005043/5.696, allocations: 209.9 kB / 2.664 GB, free: 257.8 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001347/5.698, allocations: 380.1 kB / 2.665 GB, free: 257.8 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003601/5.701, allocations: 3.758 MB / 2.668 GB, free: 255.2 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002898/5.704, allocations: 182.3 kB / 2.668 GB, free: 255.2 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002906/5.705, allocations: 80.95 kB / 2.668 GB, free: 255.2 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * Number of states: 0 () * Number of discrete variables: 8 ($PRE.onOffBot.y,onOffBot.y,$PRE.onOffMid.y,onOffMid.y,and2.y,nor.y,$PRE.onOffHea.y,onOffHea.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (182): * Single equations (assignments): 180 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 10} * Non-linear torn systems: 1 {3 19} Notification: Performance of prepare postOptimizeDAE: time 0.0006333/5.705, allocations: 161.1 kB / 2.669 GB, free: 255.1 MB / 1.151 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003876/5.709, allocations: 1.621 MB / 2.67 GB, free: 254.9 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006718/5.71, allocations: 207.3 kB / 2.67 GB, free: 254.8 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003664/5.713, allocations: 1.866 MB / 2.672 GB, free: 254.7 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-05/5.713, allocations: 13.16 kB / 2.672 GB, free: 254.7 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.067e-06/5.713, allocations: 2.938 kB / 2.672 GB, free: 254.7 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002397/5.716, allocations: 1.501 MB / 2.674 GB, free: 254.5 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009167/5.725, allocations: 4.154 MB / 2.678 GB, free: 254.1 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.337e-05/5.725, allocations: 1.094 kB / 2.678 GB, free: 254.1 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001095/5.726, allocations: 215.8 kB / 2.678 GB, free: 254.1 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001685/5.728, allocations: 401.7 kB / 2.678 GB, free: 254.1 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001467/5.728, allocations: 17.66 kB / 2.678 GB, free: 254.1 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003376/5.732, allocations: 2.927 MB / 2.681 GB, free: 252.3 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.647e-06/5.732, allocations: 5.969 kB / 2.681 GB, free: 252.3 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005649/5.737, allocations: 2.861 MB / 2.684 GB, free: 251.8 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001891/5.739, allocations: 0.5241 MB / 2.685 GB, free: 251.6 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004385/5.74, allocations: 12.48 kB / 2.685 GB, free: 251.6 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001652/5.741, allocations: 165.2 kB / 2.685 GB, free: 251.6 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002958/5.742, allocations: 103.6 kB / 2.685 GB, free: 251.6 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001659/5.742, allocations: 60.02 kB / 2.685 GB, free: 251.6 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.002565/5.744, allocations: 1.333 MB / 2.686 GB, free: 251.5 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.41e-07/5.744, allocations: 0 / 2.686 GB, free: 251.5 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.006391/5.751, allocations: 1.455 MB / 2.688 GB, free: 251.3 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 5 (tan.vol[1].dynBal.U,tan.vol[2].dynBal.U,tan.vol[3].dynBal.U,tan.vol[4].dynBal.U,tan.vol[5].dynBal.U) * Number of discrete variables: 5 (onOffBot.y,onOffMid.y,and2.y,nor.y,onOffHea.y) * Number of discrete states: 3 (onOffMid.y,onOffBot.y,onOffHea.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (103): * Single equations (assignments): 97 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 10} * Non-linear torn systems: 1 {3 19} Notification: Performance of Backend phase and start with SimCode phase: time 0.006111/5.757, allocations: 4.19 MB / 2.692 GB, free: 250 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.005347/5.762, allocations: 3.108 MB / 2.695 GB, free: 249.7 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 1.123e-05/5.762, allocations: 3.844 kB / 2.695 GB, free: 249.7 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.001409/5.764, allocations: 0.9253 MB / 2.696 GB, free: 249.5 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006463/5.77, allocations: 1.064 MB / 2.697 GB, free: 249.5 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01227/5.782, allocations: 4.97 MB / 2.701 GB, free: 248.6 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002116/5.785, allocations: 2.217 MB / 2.704 GB, free: 247.8 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.005485/5.79, allocations: 1.42 MB / 2.705 GB, free: 247.8 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001903/5.792, allocations: 0.9899 MB / 2.706 GB, free: 247.8 MB / 1.151 GB Notification: Performance of SimCode: time 1.192e-06/5.792, allocations: 0 / 2.706 GB, free: 247.8 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1254/5.917, allocations: 66.58 MB / 2.771 GB, free: 245.5 MB / 1.151 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001954/5.918, allocations: 191.7 kB / 2.771 GB, free: 245.3 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.501/10.42, allocations: 0 / 2.771 GB, free: 245.3 MB / 1.151 GB (rm -f Buildings_9_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe ; mkfifo Buildings_9_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe >> ../files/Buildings_9_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Storage_Examples_StratifiedUnloadAtMinimumTemperature_fmu --startTime=0 --stopTime=21600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Storage_Examples_StratifiedUnloadAtMinimumTemperature.fmu > Buildings_9_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature_res.mat does not exist to compare? outputFormat=mat