Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Storage.Examples.Stratified.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.Stratified,fileNamePrefix="Buildings_9_Buildings_Fluid_Storage_Examples_Stratified",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Examples.Stratified,fileNamePrefix="Buildings_9_Buildings_Fluid_Storage_Examples_Stratified",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.295/2.295, allocations: 390.3 MB / 405.3 MB, free: 13.48 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.001181/0.001182, allocations: 175.3 kB / 498.1 MB, free: 5.746 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.417/1.417, allocations: 223.2 MB / 0.7948 GB, free: 17.89 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.0009109/0.0009111, allocations: 98.56 kB / 0.9346 GB, free: 6.23 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003325/0.0003324, allocations: 9.172 kB / 1.084 GB, free: 221.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2689/0.2693, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.014/1.284, allocations: 423.4 MB / 1.636 GB, free: 5.062 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002665/1.284, allocations: 92.36 kB / 1.637 GB, free: 5.016 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 11.04/12.32, allocations: 3.02 GB / 4.657 GB, free: 174.4 MB / 1.182 GB Notification: Performance of FrontEnd: time 2.925e-06/12.32, allocations: 0.625 kB / 4.657 GB, free: 174.4 MB / 1.182 GB Notification: Performance of Transformations before backend: time 0.002019/12.33, allocations: 262.4 kB / 4.657 GB, free: 174.4 MB / 1.182 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2145 * Number of variables: 2145 Notification: Performance of Generate backend data structure: time 0.03346/12.36, allocations: 9.918 MB / 4.667 GB, free: 171.2 MB / 1.182 GB Notification: Performance of prepare preOptimizeDAE: time 5.246e-05/12.36, allocations: 11.31 kB / 4.667 GB, free: 171.2 MB / 1.182 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005193/12.37, allocations: 1.15 MB / 4.668 GB, free: 171.1 MB / 1.182 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007115/12.37, allocations: 1.171 MB / 4.669 GB, free: 170.6 MB / 1.182 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02747/12.4, allocations: 11.1 MB / 4.68 GB, free: 169.5 MB / 1.182 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007506/12.4, allocations: 0.6132 MB / 4.681 GB, free: 169.4 MB / 1.182 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003566/12.4, allocations: 0.8191 MB / 4.681 GB, free: 169.4 MB / 1.182 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0304/12.44, allocations: 11.7 MB / 4.693 GB, free: 168.2 MB / 1.182 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.00051/12.44, allocations: 26.5 kB / 4.693 GB, free: 168.2 MB / 1.182 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002888/12.44, allocations: 359.8 kB / 4.693 GB, free: 168.2 MB / 1.182 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002675/12.44, allocations: 251.4 kB / 4.693 GB, free: 168.2 MB / 1.182 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02153/12.46, allocations: 9.631 MB / 4.703 GB, free: 168.2 MB / 1.182 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.0797/12.54, allocations: 46.63 MB / 4.748 GB, free: 148.7 MB / 1.182 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01006/12.55, allocations: 6.317 MB / 4.755 GB, free: 148.4 MB / 1.182 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00126/12.55, allocations: 0.8215 MB / 4.755 GB, free: 147.6 MB / 1.182 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007004/12.56, allocations: 3.404 MB / 4.759 GB, free: 147.5 MB / 1.182 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.005804/12.56, allocations: 0.5575 MB / 4.759 GB, free: 147.2 MB / 1.182 GB Notification: Performance of pre-optimization done (n=449): time 2.18e-05/12.56, allocations: 0 / 4.759 GB, free: 147.2 MB / 1.182 GB Notification: Performance of matching and sorting (n=449): time 0.01836/12.58, allocations: 9.031 MB / 4.768 GB, free: 146.4 MB / 1.182 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.008e-05/12.58, allocations: 154.4 kB / 4.768 GB, free: 146.3 MB / 1.182 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01592/12.6, allocations: 7.195 MB / 4.775 GB, free: 145.8 MB / 1.182 GB Notification: Performance of collectPreVariables (initialization): time 0.001321/12.6, allocations: 118.1 kB / 4.775 GB, free: 145.8 MB / 1.182 GB Notification: Performance of collectInitialEqns (initialization): time 0.005881/12.61, allocations: 4.316 MB / 4.78 GB, free: 144.2 MB / 1.182 GB Notification: Performance of collectInitialBindings (initialization): time 0.002761/12.61, allocations: 1.568 MB / 4.781 GB, free: 143.2 MB / 1.182 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001215/12.61, allocations: 114 kB / 4.781 GB, free: 143.2 MB / 1.182 GB Notification: Performance of setup shared object (initialization): time 0.000596/12.61, allocations: 0.5427 MB / 4.782 GB, free: 142.9 MB / 1.182 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005358/12.62, allocations: 2.986 MB / 4.785 GB, free: 142.9 MB / 1.182 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006483/12.62, allocations: 4.858 MB / 4.789 GB, free: 140.7 MB / 1.182 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007703/12.63, allocations: 4.03 MB / 4.793 GB, free: 140.6 MB / 1.182 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001054/12.63, allocations: 22.45 kB / 4.793 GB, free: 140.6 MB / 1.182 GB Notification: Performance of matching and sorting (n=754) (initialization): time 0.01871/12.65, allocations: 8.854 MB / 4.802 GB, free: 138.4 MB / 1.182 GB Notification: Performance of prepare postOptimizeDAE: time 0.006654/12.66, allocations: 29.27 MB / 4.831 GB, free: 106.7 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001964/12.66, allocations: 62.94 kB / 4.831 GB, free: 106.7 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000167/12.66, allocations: 97.25 kB / 4.831 GB, free: 106.7 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007092/12.66, allocations: 1.437 MB / 4.832 GB, free: 106.6 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001981/12.66, allocations: 127.3 kB / 4.832 GB, free: 106.6 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01126/12.67, allocations: 0.6284 MB / 4.833 GB, free: 106.5 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001762/12.68, allocations: 283 kB / 4.833 GB, free: 106.4 MB / 1.182 GB Notification: Performance of prepare postOptimizeDAE: time 1.704e-05/12.68, allocations: 7.875 kB / 4.833 GB, free: 106.4 MB / 1.182 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01759/12.69, allocations: 8.268 MB / 4.841 GB, free: 103.7 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002655/12.69, allocations: 59.09 kB / 4.841 GB, free: 103.7 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001425/12.69, allocations: 102.1 kB / 4.841 GB, free: 103.7 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006435/12.7, allocations: 1.437 MB / 4.843 GB, free: 103.6 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001798/12.7, allocations: 123.2 kB / 4.843 GB, free: 103.5 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008957/12.71, allocations: 0.6043 MB / 4.843 GB, free: 103.4 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00146/12.71, allocations: 279.4 kB / 4.844 GB, free: 103.4 MB / 1.182 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 264 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition1,$whenCondition2,TWat.a,TWat.b,TWat.last,$PRE.TWat.nextEvent,TWat.nextEvent,TWat.nextEventScaled,P.a,P.b,P.last,$PRE.P.nextEvent,P.nextEvent,P.nextEventScaled,dH.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (744): * Single equations (assignments): 742 * Array equations: 0 * Algorithm blocks: 2 * 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 0.009315/12.72, allocations: 3.589 MB / 4.847 GB, free: 101.8 MB / 1.182 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003274/12.72, allocations: 0.719 MB / 4.848 GB, free: 101.4 MB / 1.182 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01555/12.74, allocations: 7.126 MB / 4.855 GB, free: 98.71 MB / 1.182 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.81e-05/12.74, allocations: 39.97 kB / 4.855 GB, free: 98.71 MB / 1.182 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.38e-05/12.74, allocations: 5.406 kB / 4.855 GB, free: 98.71 MB / 1.182 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009417/12.75, allocations: 5.821 MB / 4.861 GB, free: 96.57 MB / 1.182 GB Warning: The model contains alias variables with redundant start and/or conflicting 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 postOpt removeSimpleEquations (simulation): time 0.03869/12.79, allocations: 16.41 MB / 4.877 GB, free: 90.3 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.223e-05/12.79, allocations: 3.375 kB / 4.877 GB, free: 90.3 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004375/12.79, allocations: 0.9057 MB / 4.878 GB, free: 90.22 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.631e-05/12.79, allocations: 19.12 kB / 4.878 GB, free: 90.22 MB / 1.182 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006281/12.79, allocations: 117.3 kB / 4.878 GB, free: 90.16 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.664e-05/12.79, allocations: 15.44 kB / 4.878 GB, free: 90.16 MB / 1.182 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/12.79, allocations: 3.953 kB / 4.878 GB, free: 90.16 MB / 1.182 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01526/12.81, allocations: 10.79 MB / 4.888 GB, free: 85.73 MB / 1.182 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006319/12.82, allocations: 1.754 MB / 4.89 GB, free: 84.82 MB / 1.182 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002595/12.82, allocations: 97.52 kB / 4.89 GB, free: 84.76 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007407/12.83, allocations: 0.5717 MB / 4.891 GB, free: 84.66 MB / 1.182 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005564/12.83, allocations: 252.3 kB / 4.891 GB, free: 84.63 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006935/12.83, allocations: 204 kB / 4.891 GB, free: 84.59 MB / 1.182 GB Notification: Performance of sorting global known variables: time 0.01203/12.84, allocations: 5.633 MB / 4.897 GB, free: 82.69 MB / 1.182 GB Notification: Performance of sort global known variables: time 3.31e-07/12.84, allocations: 0 / 4.897 GB, free: 82.69 MB / 1.182 GB Notification: Performance of remove unused functions: time 0.02002/12.86, allocations: 4.926 MB / 4.901 GB, free: 81.68 MB / 1.182 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 21 (tanSim.vol[1].dynBal.U,tanSim.vol[2].dynBal.U,tanSim.vol[3].dynBal.U,tanSim.vol[4].dynBal.U,tanSim.vol[5].dynBal.U,tanSim.vol[6].dynBal.U,tanSim.vol[7].dynBal.U,tanSim.vol[8].dynBal.U,tanSim.vol[9].dynBal.U,tanSim.vol[10].dynBal.U,tanEnh.vol[1].dynBal.U,tanEnh.vol[2].dynBal.U,tanEnh.vol[3].dynBal.U,tanEnh.vol[4].dynBal.U,tanEnh.vol[5].dynBal.U,tanEnh.vol[6].dynBal.U,tanEnh.vol[7].dynBal.U,tanEnh.vol[8].dynBal.U,tanEnh.vol[9].dynBal.U,tanEnh.vol[10].dynBal.U,dH.y) * Number of discrete variables: 12 ($whenCondition1,$whenCondition2,TWat.a,TWat.b,TWat.last,TWat.nextEvent,TWat.nextEventScaled,P.a,P.b,P.last,P.nextEvent,P.nextEventScaled) * Number of discrete states: 12 (P.nextEvent,P.last,P.nextEventScaled,P.b,P.a,$whenCondition2,TWat.nextEvent,TWat.last,TWat.nextEventScaled,TWat.b,TWat.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (445): * Single equations (assignments): 441 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 2 * 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.01995/12.88, allocations: 12.25 MB / 4.913 GB, free: 72.38 MB / 1.182 GB Notification: Performance of simCode: created initialization part: time 0.01669/12.9, allocations: 11.46 MB / 4.925 GB, free: 62.52 MB / 1.182 GB Notification: Performance of simCode: created event and clocks part: time 1.262e-05/12.9, allocations: 4.562 kB / 4.925 GB, free: 62.51 MB / 1.182 GB Notification: Performance of simCode: created simulation system equations: time 0.00448/12.9, allocations: 3.2 MB / 4.928 GB, free: 59.72 MB / 1.182 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02129/12.92, allocations: 4.386 MB / 4.932 GB, free: 56.81 MB / 1.182 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.9364/13.86, allocations: 116.6 MB / 5.046 GB, free: 190.2 MB / 1.214 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01095/13.87, allocations: 6.297 MB / 5.052 GB, free: 189.3 MB / 1.214 GB Notification: Performance of simCode: alias equations: time 0.01752/13.89, allocations: 4.357 MB / 5.056 GB, free: 189.3 MB / 1.214 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009021/13.9, allocations: 3.761 MB / 5.06 GB, free: 189.3 MB / 1.214 GB Notification: Performance of SimCode: time 1.363e-06/13.9, allocations: 0 / 5.06 GB, free: 189.3 MB / 1.214 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3262/14.22, allocations: 238.1 MB / 5.292 GB, free: 135.1 MB / 1.214 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001735/14.22, allocations: 213 kB / 5.293 GB, free: 134.8 MB / 1.214 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.727/22.95, allocations: 0 / 5.293 GB, free: 134.8 MB / 1.214 GB (rm -f Buildings_9_Buildings.Fluid.Storage.Examples.Stratified.pipe ; mkfifo Buildings_9_Buildings.Fluid.Storage.Examples.Stratified.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Storage.Examples.Stratified.pipe >> ../files/Buildings_9_Buildings.Fluid.Storage.Examples.Stratified.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Storage.Examples.Stratified_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Storage_Examples_Stratified_fmu --startTime=0 --stopTime=10800 --timeout=50 --tolerance=1e-08 Buildings_9_Buildings_Fluid_Storage_Examples_Stratified.fmu > Buildings_9_Buildings.Fluid.Storage.Examples.Stratified.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.Storage.Examples.Stratified_res.mat does not exist to compare? outputFormat=mat