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: translateModel(Buildings.Fluid.Storage.Examples.Stratified,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dH.y|tanSim.m_flow|tanSim.vol.1..T|tanSim.vol.2..T|tanSim.vol.3..T|tanSim.vol.4..T|tanSim.vol.5..T|tanSim.vol.6..T|tanSim.vol.7..T|tanSim.vol.8..T|tanSim.vol.9..T|tanSim.vol.10..T|tanEnh.vol.1..T|tanEnh.vol.2..T|tanEnh.vol.3..T|tanEnh.vol.4..T|tanEnh.vol.5..T|tanEnh.vol.6..T|tanEnh.vol.7..T|tanEnh.vol.8..T|tanEnh.vol.9..T|tanEnh.vol.10..T",fileNamePrefix="Buildings_9_Buildings.Fluid.Storage.Examples.Stratified") translateModel(Buildings.Fluid.Storage.Examples.Stratified,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dH.y|tanSim.m_flow|tanSim.vol.1..T|tanSim.vol.2..T|tanSim.vol.3..T|tanSim.vol.4..T|tanSim.vol.5..T|tanSim.vol.6..T|tanSim.vol.7..T|tanSim.vol.8..T|tanSim.vol.9..T|tanSim.vol.10..T|tanEnh.vol.1..T|tanEnh.vol.2..T|tanEnh.vol.3..T|tanEnh.vol.4..T|tanEnh.vol.5..T|tanEnh.vol.6..T|tanEnh.vol.7..T|tanEnh.vol.8..T|tanEnh.vol.9..T|tanEnh.vol.10..T",fileNamePrefix="Buildings_9_Buildings.Fluid.Storage.Examples.Stratified") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.281/2.281, allocations: 390.3 MB / 405.3 MB, free: 13.52 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.00108/0.00108, allocations: 175.4 kB / 498.1 MB, free: 5.758 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.517/1.517, allocations: 223.2 MB / 0.7948 GB, free: 18.88 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.0009065/0.0009065, allocations: 94.73 kB / 0.9346 GB, free: 7.152 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003706/0.0003706, allocations: 11.38 kB / 1.084 GB, free: 212.7 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3301/0.3305, allocations: 142.3 MB / 1.223 GB, free: 89.6 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.213/1.543, allocations: 423.4 MB / 1.636 GB, free: 9.887 MB / 0.9792 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003839/1.544, allocations: 92.45 kB / 1.636 GB, free: 9.84 MB / 0.9792 GB Notification: Performance of FrontEnd - DAE generated: time 11.99/13.53, allocations: 3.02 GB / 4.657 GB, free: 177.3 MB / 1.182 GB Notification: Performance of FrontEnd: time 3.406e-06/13.53, allocations: 0 / 4.657 GB, free: 177.3 MB / 1.182 GB Notification: Performance of Transformations before backend: time 0.00182/13.54, allocations: 265.8 kB / 4.657 GB, free: 177.2 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.04126/13.58, allocations: 9.906 MB / 4.667 GB, free: 174 MB / 1.182 GB Notification: Performance of prepare preOptimizeDAE: time 5.378e-05/13.58, allocations: 11.8 kB / 4.667 GB, free: 174 MB / 1.182 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00951/13.59, allocations: 1.175 MB / 4.668 GB, free: 173.5 MB / 1.182 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03433/13.62, allocations: 11.11 MB / 4.679 GB, free: 172.4 MB / 1.182 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009328/13.62, allocations: 0.615 MB / 4.679 GB, free: 172.4 MB / 1.182 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004589/13.63, allocations: 0.8189 MB / 4.68 GB, free: 172.4 MB / 1.182 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04119/13.67, allocations: 11.7 MB / 4.692 GB, free: 171.1 MB / 1.182 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007873/13.67, allocations: 25.19 kB / 4.692 GB, free: 171.1 MB / 1.182 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004977/13.67, allocations: 365.8 kB / 4.692 GB, free: 171.1 MB / 1.182 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004912/13.67, allocations: 245.8 kB / 4.692 GB, free: 171.1 MB / 1.182 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0302/13.7, allocations: 9.637 MB / 4.702 GB, free: 171.1 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.1046/13.81, allocations: 46.62 MB / 4.747 GB, free: 151.6 MB / 1.182 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01446/13.82, allocations: 6.334 MB / 4.753 GB, free: 151.3 MB / 1.182 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001541/13.83, allocations: 0.8178 MB / 4.754 GB, free: 150.6 MB / 1.182 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008469/13.83, allocations: 3.407 MB / 4.758 GB, free: 150.4 MB / 1.182 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.006971/13.84, allocations: 0.5591 MB / 4.758 GB, free: 150.1 MB / 1.182 GB Notification: Performance of pre-optimization done (n=449): time 2.896e-05/13.84, allocations: 3.375 kB / 4.758 GB, free: 150.1 MB / 1.182 GB Notification: Performance of matching and sorting (n=449): time 0.02482/13.87, allocations: 9.024 MB / 4.767 GB, free: 149.3 MB / 1.182 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.639e-05/13.87, allocations: 155.2 kB / 4.767 GB, free: 149.2 MB / 1.182 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01935/13.89, allocations: 7.2 MB / 4.774 GB, free: 148.8 MB / 1.182 GB Notification: Performance of collectPreVariables (initialization): time 0.001772/13.89, allocations: 119.3 kB / 4.774 GB, free: 148.7 MB / 1.182 GB Notification: Performance of collectInitialEqns (initialization): time 0.007616/13.9, allocations: 4.317 MB / 4.778 GB, free: 147.1 MB / 1.182 GB Notification: Performance of collectInitialBindings (initialization): time 0.003558/13.9, allocations: 1.558 MB / 4.78 GB, free: 146.1 MB / 1.182 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001714/13.9, allocations: 115.6 kB / 4.78 GB, free: 146.1 MB / 1.182 GB Notification: Performance of setup shared object (initialization): time 0.0009491/13.9, allocations: 0.5415 MB / 4.781 GB, free: 145.8 MB / 1.182 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006951/13.91, allocations: 2.987 MB / 4.783 GB, free: 145.8 MB / 1.182 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007939/13.92, allocations: 4.867 MB / 4.788 GB, free: 143.3 MB / 1.182 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007658/13.92, allocations: 4.016 MB / 4.792 GB, free: 141.8 MB / 1.182 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001047/13.92, allocations: 15.56 kB / 4.792 GB, free: 141.8 MB / 1.182 GB Notification: Performance of matching and sorting (n=754) (initialization): time 0.02256/13.95, allocations: 8.863 MB / 4.801 GB, free: 138.7 MB / 1.182 GB Notification: Performance of prepare postOptimizeDAE: time 0.008663/13.96, allocations: 29.27 MB / 4.829 GB, free: 107.1 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002657/13.96, allocations: 58.91 kB / 4.829 GB, free: 107.1 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002411/13.96, allocations: 100.9 kB / 4.83 GB, free: 107.1 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00767/13.96, allocations: 1.431 MB / 4.831 GB, free: 107 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002506/13.96, allocations: 131 kB / 4.831 GB, free: 106.9 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01152/13.98, allocations: 0.6253 MB / 4.832 GB, free: 106.8 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002476/13.98, allocations: 278.8 kB / 4.832 GB, free: 106.7 MB / 1.182 GB Notification: Performance of prepare postOptimizeDAE: time 2.024e-05/13.98, allocations: 7 kB / 4.832 GB, free: 106.7 MB / 1.182 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02152/14, allocations: 8.263 MB / 4.84 GB, free: 103.7 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000362/14, allocations: 57.31 kB / 4.84 GB, free: 103.7 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00019/14, allocations: 103 kB / 4.84 GB, free: 103.7 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007198/14.01, allocations: 1.437 MB / 4.842 GB, free: 103.5 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002279/14.01, allocations: 123.7 kB / 4.842 GB, free: 103.5 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01028/14.02, allocations: 0.6158 MB / 4.842 GB, free: 103.3 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002078/14.02, allocations: 286.3 kB / 4.843 GB, free: 103.3 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.01068/14.03, allocations: 3.588 MB / 4.846 GB, free: 101.7 MB / 1.182 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004014/14.03, allocations: 0.7197 MB / 4.847 GB, free: 101.4 MB / 1.182 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0196/14.05, allocations: 7.121 MB / 4.854 GB, free: 98.65 MB / 1.182 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.558e-05/14.05, allocations: 45.52 kB / 4.854 GB, free: 98.65 MB / 1.182 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.692e-05/14.05, allocations: 0 / 4.854 GB, free: 98.65 MB / 1.182 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01168/14.07, allocations: 5.821 MB / 4.859 GB, free: 96.5 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.05434/14.12, allocations: 16.42 MB / 4.875 GB, free: 90.23 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.654e-05/14.12, allocations: 0 / 4.875 GB, free: 90.23 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005026/14.13, allocations: 0.9034 MB / 4.876 GB, free: 90.16 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.005e-05/14.13, allocations: 17.44 kB / 4.876 GB, free: 90.16 MB / 1.182 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001371/14.13, allocations: 119.3 kB / 4.877 GB, free: 90.1 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.965e-05/14.13, allocations: 14.88 kB / 4.877 GB, free: 90.1 MB / 1.182 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.968e-06/14.13, allocations: 2.156 kB / 4.877 GB, free: 90.1 MB / 1.182 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02577/14.15, allocations: 10.78 MB / 4.887 GB, free: 85.68 MB / 1.182 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008851/14.16, allocations: 1.765 MB / 4.889 GB, free: 84.76 MB / 1.182 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004879/14.17, allocations: 95.75 kB / 4.889 GB, free: 84.7 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01103/14.18, allocations: 0.569 MB / 4.889 GB, free: 84.6 MB / 1.182 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002055/14.18, allocations: 257.2 kB / 4.89 GB, free: 84.57 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002241/14.18, allocations: 197.7 kB / 4.89 GB, free: 84.54 MB / 1.182 GB Notification: Performance of sorting global known variables: time 0.01467/14.2, allocations: 5.631 MB / 4.895 GB, free: 80.39 MB / 1.182 GB Notification: Performance of sort global known variables: time 6.41e-07/14.2, allocations: 3.828 kB / 4.895 GB, free: 80.39 MB / 1.182 GB Notification: Performance of remove unused functions: time 0.02485/14.22, allocations: 4.926 MB / 4.9 GB, free: 75.46 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.003589/14.23, allocations: 0.9436 MB / 4.901 GB, free: 74.77 MB / 1.182 GB Notification: Performance of simCode: created initialization part: time 0.02094/14.25, allocations: 11.46 MB / 4.912 GB, free: 64.91 MB / 1.182 GB Notification: Performance of simCode: created event and clocks part: time 1.35e-05/14.25, allocations: 4.562 kB / 4.912 GB, free: 64.91 MB / 1.182 GB Notification: Performance of simCode: created simulation system equations: time 0.005749/14.25, allocations: 3.201 MB / 4.915 GB, free: 62.11 MB / 1.182 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02276/14.28, allocations: 4.372 MB / 4.92 GB, free: 59.21 MB / 1.182 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04832/14.32, allocations: 22.63 MB / 4.942 GB, free: 39 MB / 1.182 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01022/14.33, allocations: 6.307 MB / 4.948 GB, free: 34.32 MB / 1.182 GB Notification: Performance of simCode: alias equations: time 0.01625/14.35, allocations: 4.349 MB / 4.952 GB, free: 31.45 MB / 1.182 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003457/14.35, allocations: 0.6233 MB / 4.953 GB, free: 30.88 MB / 1.182 GB Notification: Performance of SimCode: time 1.403e-06/14.35, allocations: 0 / 4.953 GB, free: 30.88 MB / 1.182 GB Notification: Performance of Templates: time 1.069/15.42, allocations: 158.6 MB / 5.108 GB, free: 172.9 MB / 1.198 GB make -j1 -f Buildings_9_Buildings.Fluid.Storage.Examples.Stratified.makefile (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 & ./Buildings_9_Buildings.Fluid.Storage.Examples.Stratified -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Storage.Examples.Stratified.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Storage.Examples.Stratified_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Storage_Examples_Stratified.csv","../files/Buildings_9_Buildings.Fluid.Storage.Examples.Stratified.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches