Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature,fileNamePrefix="Buildings_latest_Buildings_Fluid_Storage_Examples_StratifiedUnloadAtMinimumTemperature",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature,fileNamePrefix="Buildings_latest_Buildings_Fluid_Storage_Examples_StratifiedUnloadAtMinimumTemperature",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.185/2.185, allocations: 390.3 MB / 402.8 MB, free: 6.703 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.001052/0.001052, allocations: 172.8 kB / 496.1 MB, free: 12.87 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.412/1.412, allocations: 221.3 MB / 0.7915 GB, free: 5.395 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.0009627/0.0009627, allocations: 91.94 kB / 0.9317 GB, free: 5.719 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.417e-05/3.427e-05, allocations: 7.984 kB / 1.079 GB, free: 140.4 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2851/0.2852, allocations: 143 MB / 1.219 GB, free: 13.43 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.126/1.411, allocations: 426.4 MB / 1.635 GB, free: 7.965 MB / 1.089 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002361/1.412, allocations: 91.89 kB / 1.635 GB, free: 7.875 MB / 1.089 GB Notification: Performance of FrontEnd - DAE generated: time 4.273/5.685, allocations: 0.9991 GB / 2.634 GB, free: 255.1 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.673e-06/5.685, allocations: 3.156 kB / 2.634 GB, free: 255.1 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0005231/5.685, allocations: 81.58 kB / 2.635 GB, free: 255 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.008383/5.694, allocations: 2.703 MB / 2.637 GB, free: 254.1 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.772e-05/5.694, allocations: 7.75 kB / 2.637 GB, free: 254.1 MB / 1.151 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001198/5.695, allocations: 329.3 kB / 2.638 GB, free: 254.1 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002169/5.697, allocations: 364.8 kB / 2.638 GB, free: 253.9 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006835/5.704, allocations: 3.102 MB / 2.641 GB, free: 253.5 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001284/5.704, allocations: 181.2 kB / 2.641 GB, free: 253.5 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00043/5.705, allocations: 233.8 kB / 2.641 GB, free: 253.5 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005003/5.71, allocations: 2.987 MB / 2.644 GB, free: 253.1 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.77e-05/5.71, allocations: 9.938 kB / 2.644 GB, free: 253.1 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002474/5.71, allocations: 93.88 kB / 2.644 GB, free: 253.1 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.919e-05/5.71, allocations: 70.86 kB / 2.644 GB, free: 253.1 MB / 1.151 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003504/5.713, allocations: 2.335 MB / 2.647 GB, free: 253.1 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.01524/5.729, allocations: 13 MB / 2.659 GB, free: 246.9 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00211/5.731, allocations: 1.618 MB / 2.661 GB, free: 246.7 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001245/5.732, allocations: 1.13 MB / 2.662 GB, free: 246.7 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006196/5.733, allocations: 0.7119 MB / 2.663 GB, free: 245.9 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.022e-05/5.733, allocations: 49.69 kB / 2.663 GB, free: 245.9 MB / 1.151 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001768/5.735, allocations: 226.1 kB / 2.663 GB, free: 245.8 MB / 1.151 GB Notification: Performance of pre-optimization done (n=126): time 4.488e-06/5.735, allocations: 0 / 2.663 GB, free: 245.8 MB / 1.151 GB Notification: Performance of matching and sorting (n=126): time 0.002509/5.737, allocations: 1.694 MB / 2.665 GB, free: 245.6 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.463e-05/5.737, allocations: 140.2 kB / 2.665 GB, free: 245.5 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002337/5.74, allocations: 1.891 MB / 2.667 GB, free: 245.3 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0001384/5.74, allocations: 65.03 kB / 2.667 GB, free: 245.2 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.001008/5.741, allocations: 1.268 MB / 2.668 GB, free: 244.7 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003655/5.741, allocations: 445 kB / 2.668 GB, free: 244.4 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.356e-05/5.741, allocations: 34.41 kB / 2.668 GB, free: 244.4 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.000105/5.741, allocations: 374.1 kB / 2.669 GB, free: 244.1 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008892/5.742, allocations: 0.6895 MB / 2.669 GB, free: 244.1 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001088/5.743, allocations: 1.222 MB / 2.671 GB, free: 243.5 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001129/5.744, allocations: 0.9241 MB / 2.671 GB, free: 243.5 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.101e-05/5.744, allocations: 3.875 kB / 2.672 GB, free: 243.5 MB / 1.151 GB Notification: Performance of matching and sorting (n=213) (initialization): time 0.003286/5.748, allocations: 2.324 MB / 2.674 GB, free: 243.3 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009694/5.749, allocations: 5.717 MB / 2.679 GB, free: 237.3 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.946e-05/5.749, allocations: 11.03 kB / 2.679 GB, free: 237.3 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001801/5.751, allocations: 482 kB / 2.68 GB, free: 237.3 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001209/5.752, allocations: 355.9 kB / 2.68 GB, free: 237.3 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002686/5.754, allocations: 3.1 MB / 2.683 GB, free: 235.4 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002578/5.757, allocations: 233.6 kB / 2.683 GB, free: 235.4 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001646/5.757, allocations: 79.47 kB / 2.683 GB, free: 235.4 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 9.668e-06/5.757, allocations: 3.75 kB / 2.683 GB, free: 235.4 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002978/5.76, allocations: 2.104 MB / 2.686 GB, free: 235.4 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.965e-05/5.76, allocations: 16.09 kB / 2.686 GB, free: 235.4 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005185/5.761, allocations: 241.6 kB / 2.686 GB, free: 235.3 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001238/5.762, allocations: 372.5 kB / 2.686 GB, free: 235.3 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0033/5.765, allocations: 4.142 MB / 2.69 GB, free: 232.7 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002358/5.768, allocations: 218.4 kB / 2.69 GB, free: 232.6 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001404/5.768, allocations: 85.28 kB / 2.69 GB, free: 232.6 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 (179): * Single equations (assignments): 177 * 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 22} Notification: Performance of prepare postOptimizeDAE: time 0.0004928/5.768, allocations: 208.2 kB / 2.691 GB, free: 232.5 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004104/5.769, allocations: 208.7 kB / 2.691 GB, free: 232.4 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003157/5.772, allocations: 1.99 MB / 2.693 GB, free: 232.3 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.956e-05/5.772, allocations: 24.33 kB / 2.693 GB, free: 232.3 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/5.772, allocations: 5.062 kB / 2.693 GB, free: 232.3 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001956/5.774, allocations: 1.582 MB / 2.694 GB, free: 232.2 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007397/5.781, allocations: 4.609 MB / 2.699 GB, free: 231.7 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.712e-06/5.781, allocations: 0 / 2.699 GB, free: 231.7 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008567/5.782, allocations: 212 kB / 2.699 GB, free: 231.7 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001562/5.784, allocations: 434 kB / 2.7 GB, free: 231.7 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.141e-05/5.784, allocations: 34.7 kB / 2.7 GB, free: 231.7 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002393/5.786, allocations: 3.004 MB / 2.702 GB, free: 229.8 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.997e-06/5.786, allocations: 4.516 kB / 2.702 GB, free: 229.8 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003744/5.79, allocations: 2.929 MB / 2.705 GB, free: 229.4 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001318/5.791, allocations: 0.5244 MB / 2.706 GB, free: 229.2 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002523/5.792, allocations: 27.88 kB / 2.706 GB, free: 229.2 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001406/5.793, allocations: 195.8 kB / 2.706 GB, free: 229.2 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002077/5.793, allocations: 102.4 kB / 2.706 GB, free: 229.2 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001074/5.793, allocations: 59.09 kB / 2.706 GB, free: 229.2 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.001892/5.795, allocations: 1.454 MB / 2.708 GB, free: 229.1 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.7e-07/5.795, allocations: 0 / 2.708 GB, free: 229.1 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.003937/5.799, allocations: 1.523 MB / 2.709 GB, free: 228.8 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (onOffBot.y,onOffMid.y,onOffHea.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (102): * Single equations (assignments): 96 * 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 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.004566/5.804, allocations: 4.149 MB / 2.713 GB, free: 227.6 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.004621/5.809, allocations: 3.306 MB / 2.716 GB, free: 226.6 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 6.022e-06/5.809, allocations: 7.125 kB / 2.716 GB, free: 226.6 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.001217/5.81, allocations: 0.9758 MB / 2.717 GB, free: 226.2 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005288/5.815, allocations: 1.127 MB / 2.718 GB, free: 226 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00876/5.824, allocations: 5.087 MB / 2.723 GB, free: 224.3 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001598/5.825, allocations: 2.221 MB / 2.726 GB, free: 223.3 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.003807/5.829, allocations: 1.414 MB / 2.727 GB, free: 223.3 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001195/5.831, allocations: 0.992 MB / 2.728 GB, free: 222.5 MB / 1.151 GB Notification: Performance of SimCode: time 1.483e-06/5.831, allocations: 0 / 2.728 GB, free: 222.5 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1119/5.942, allocations: 73.68 MB / 2.8 GB, free: 184.5 MB / 1.151 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001695/5.943, allocations: 252.5 kB / 2.8 GB, free: 184.1 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.268/10.21, allocations: 4.062 kB / 2.8 GB, free: 184.1 MB / 1.151 GB (rm -f Buildings_latest_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe >> ../files/Buildings_latest_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Storage_Examples_StratifiedUnloadAtMinimumTemperature_fmu --startTime=0 --stopTime=21600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Storage_Examples_StratifiedUnloadAtMinimumTemperature.fmu > Buildings_latest_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature_res.mat does not exist to compare? outputFormat=mat