Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Storage.Examples.Stratified.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Fluid.Storage.Examples.Stratified,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Storage_Examples_Stratified",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Storage.Examples.Stratified,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Storage_Examples_Stratified",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8448/0.8448, allocations: 141.8 MB / 149.3 MB, free: 9.203 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001174/0.001174, allocations: 184.8 kB / 182.2 MB, free: 9.43 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.429/1.429, allocations: 221.5 MB / 436.4 MB, free: 13.28 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001053/0.001053, allocations: 88.05 kB / 0.5074 GB, free: 10.11 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001823/0.001823, allocations: 281.3 kB / 0.5889 GB, free: 54.65 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 2.84e-05/2.836e-05, allocations: 4 kB / 0.6766 GB, free: 12.72 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4234/0.4234, allocations: 82.77 MB / 0.7575 GB, free: 31.89 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7845/1.208, allocations: 381.9 MB / 1.13 GB, free: 15.56 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002321/1.208, allocations: 96.14 kB / 1.131 GB, free: 15.51 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 11.13/12.34, allocations: 2.951 GB / 4.082 GB, free: 78.73 MB / 0.7292 GB Notification: Performance of FrontEnd: time 2.414e-06/12.34, allocations: 1.5 kB / 4.082 GB, free: 78.73 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 0.001476/12.34, allocations: 255 kB / 4.082 GB, free: 78.7 MB / 0.7292 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.02856/12.37, allocations: 8.285 MB / 4.09 GB, free: 75.57 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 5.782e-05/12.37, allocations: 8.594 kB / 4.09 GB, free: 75.57 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008667/12.38, allocations: 1.168 MB / 4.091 GB, free: 75.02 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02937/12.4, allocations: 10.75 MB / 4.102 GB, free: 73.72 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005772/12.41, allocations: 267.8 kB / 4.102 GB, free: 73.72 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003759/12.41, allocations: 499.4 kB / 4.103 GB, free: 73.72 MB / 0.7292 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02386/12.43, allocations: 8.896 MB / 4.111 GB, free: 71.18 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03681/12.47, allocations: 10.35 MB / 4.121 GB, free: 64.58 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004968/12.47, allocations: 31.72 kB / 4.121 GB, free: 64.55 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00342/12.47, allocations: 16 kB / 4.121 GB, free: 64.54 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002469/12.47, allocations: 253.1 kB / 4.122 GB, free: 64.3 MB / 0.7292 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.07704/12.55, allocations: 44.98 MB / 4.166 GB, free: 18.65 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009086/12.56, allocations: 5.994 MB / 4.171 GB, free: 12.67 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006493/12.57, allocations: 4.644 MB / 4.176 GB, free: 8.02 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001251/12.57, allocations: 0.8224 MB / 4.177 GB, free: 7.066 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006194/12.57, allocations: 3.172 MB / 4.18 GB, free: 3.863 MB / 0.7292 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.005536/12.58, allocations: 402.1 kB / 4.18 GB, free: 3.473 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=449): time 2.346e-05/12.58, allocations: 0 / 4.18 GB, free: 3.473 MB / 0.7292 GB Notification: Performance of matching and sorting (n=449): time 0.6009/13.18, allocations: 6.109 MB / 4.186 GB, free: 83.41 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001099/13.18, allocations: 157 kB / 4.186 GB, free: 83.28 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01498/13.2, allocations: 5.83 MB / 4.192 GB, free: 82.95 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 0.001511/13.2, allocations: 31.77 kB / 4.192 GB, free: 82.92 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.005167/13.2, allocations: 4.284 MB / 4.196 GB, free: 82.05 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 0.002563/13.21, allocations: 1.508 MB / 4.198 GB, free: 81.28 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005443/13.21, allocations: 0 / 4.198 GB, free: 81.28 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0003798/13.21, allocations: 0.5398 MB / 4.198 GB, free: 80.96 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003866/13.21, allocations: 2.783 MB / 4.201 GB, free: 80.95 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005427/13.22, allocations: 4.618 MB / 4.205 GB, free: 78.77 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007156/13.22, allocations: 4.058 MB / 4.209 GB, free: 78.72 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.542e-05/13.22, allocations: 15.78 kB / 4.209 GB, free: 78.72 MB / 0.7292 GB Notification: Performance of matching and sorting (n=754) (initialization): time 0.01719/13.24, allocations: 8.236 MB / 4.218 GB, free: 78.28 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 0.005505/13.25, allocations: 27.93 MB / 4.245 GB, free: 49.14 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002026/13.25, allocations: 62.34 kB / 4.245 GB, free: 49.14 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001612/13.25, allocations: 99.25 kB / 4.245 GB, free: 49.14 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006938/13.25, allocations: 1.443 MB / 4.246 GB, free: 49.14 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002125/13.25, allocations: 131.5 kB / 4.246 GB, free: 49.13 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008908/13.26, allocations: 0.5064 MB / 4.247 GB, free: 49.1 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001757/13.26, allocations: 282 kB / 4.247 GB, free: 49.1 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 1.699e-05/13.26, allocations: 6.625 kB / 4.247 GB, free: 49.1 MB / 0.7292 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01512/13.28, allocations: 7.603 MB / 4.255 GB, free: 49.01 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001799/13.28, allocations: 57.28 kB / 4.255 GB, free: 49.01 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001067/13.28, allocations: 96.47 kB / 4.255 GB, free: 49.01 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00619/13.29, allocations: 1.44 MB / 4.256 GB, free: 49.01 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001356/13.29, allocations: 128.7 kB / 4.256 GB, free: 49.01 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008576/13.29, allocations: 499.7 kB / 4.257 GB, free: 48.98 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001773/13.3, allocations: 287.2 kB / 4.257 GB, free: 48.98 MB / 0.7292 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 () * 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.002177/13.3, allocations: 361.6 kB / 4.257 GB, free: 48.78 MB / 0.7292 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01137/13.31, allocations: 6.133 MB / 4.263 GB, free: 48.34 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002579/13.31, allocations: 0.6326 MB / 4.264 GB, free: 48.01 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01248/13.33, allocations: 6.758 MB / 4.271 GB, free: 47.79 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.744e-05/13.33, allocations: 42.5 kB / 4.271 GB, free: 47.79 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.331e-05/13.33, allocations: 0 / 4.271 GB, free: 47.79 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009567/13.33, allocations: 5.649 MB / 4.276 GB, free: 47.63 MB / 0.7292 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 postOpt removeSimpleEquations (simulation): time 0.03849/13.37, allocations: 15.37 MB / 4.291 GB, free: 46.71 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.642e-05/13.37, allocations: 1.25 kB / 4.291 GB, free: 46.71 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004354/13.38, allocations: 0.9185 MB / 4.292 GB, free: 46.71 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.229e-05/13.38, allocations: 15.41 kB / 4.292 GB, free: 46.71 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006013/13.38, allocations: 60.77 kB / 4.292 GB, free: 46.71 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.822e-05/13.38, allocations: 18.03 kB / 4.292 GB, free: 46.71 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.027e-06/13.38, allocations: 0 / 4.292 GB, free: 46.71 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01603/13.39, allocations: 10.32 MB / 4.302 GB, free: 45.9 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006554/13.4, allocations: 1.663 MB / 4.304 GB, free: 45.48 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002942/13.4, allocations: 27.66 kB / 4.304 GB, free: 45.48 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007849/13.41, allocations: 0.4907 MB / 4.304 GB, free: 45.45 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001188/13.41, allocations: 253.7 kB / 4.305 GB, free: 45.44 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001246/13.41, allocations: 201.7 kB / 4.305 GB, free: 45.44 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.009994/13.42, allocations: 4.443 MB / 4.309 GB, free: 45.22 MB / 0.7292 GB Notification: Performance of sort global known variables: time 7.21e-07/13.42, allocations: 0 / 4.309 GB, free: 45.22 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.02592/13.45, allocations: 4.765 MB / 4.314 GB, free: 44.39 MB / 0.7292 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) * 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.02798/13.48, allocations: 11.73 MB / 4.325 GB, free: 42.92 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.02195/13.5, allocations: 10.86 MB / 4.336 GB, free: 42.4 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 1.868e-05/13.5, allocations: 4.406 kB / 4.336 GB, free: 42.4 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.005997/13.51, allocations: 3.023 MB / 4.339 GB, free: 42.18 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02235/13.53, allocations: 3.488 MB / 4.342 GB, free: 42.15 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05586/13.59, allocations: 18.74 MB / 4.361 GB, free: 38.96 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009661/13.59, allocations: 6.263 MB / 4.367 GB, free: 37.32 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.02329/13.62, allocations: 5.767 MB / 4.372 GB, free: 36.93 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009521/13.63, allocations: 3.572 MB / 4.376 GB, free: 34.02 MB / 0.7292 GB Notification: Performance of SimCode: time 1.974e-06/13.63, allocations: 3.172 kB / 4.376 GB, free: 34.02 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8809/14.51, allocations: 200 MB / 4.571 GB, free: 89.07 MB / 0.7448 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001462/14.51, allocations: 172.8 kB / 4.571 GB, free: 88.88 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.43/24.94, allocations: 0 / 4.571 GB, free: 88.88 MB / 0.7448 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Storage.Examples.Stratified.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Storage.Examples.Stratified.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Storage.Examples.Stratified.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Storage.Examples.Stratified.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Storage_Examples_Stratified_fmu --startTime=0 --stopTime=10800 --timeout=50 --tolerance=1e-08 BuildingSystems_BuildingSystems_Fluid_Storage_Examples_Stratified.fmu > BuildingSystems_BuildingSystems.Fluid.Storage.Examples.Stratified.pipe 2>&1)