Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Storage.Examples.Stratified.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Storage.Examples.Stratified,fileNamePrefix="Buildings_8_Buildings_Fluid_Storage_Examples_Stratified",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Examples.Stratified,fileNamePrefix="Buildings_8_Buildings_Fluid_Storage_Examples_Stratified",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.814/1.814, allocations: 292.6 MB / 307.5 MB, free: 5.203 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001328/0.001328, allocations: 193 kB / 377.1 MB, free: 1.523 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.848/1.848, allocations: 205.4 MB / 0.6366 GB, free: 8.523 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009986/0.0009988, allocations: 97.12 kB / 0.7509 GB, free: 63.33 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003778/0.0003778, allocations: 12 kB / 0.8749 GB, free: 11.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2946/0.295, allocations: 116.3 MB / 0.9884 GB, free: 6.645 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.76/2.055, allocations: 412.5 MB / 1.391 GB, free: 278.8 MB / 0.9323 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003383/2.055, allocations: 95.69 kB / 1.391 GB, free: 278.8 MB / 0.9323 GB Notification: Performance of FrontEnd - DAE generated: time 10.97/13.03, allocations: 2.924 GB / 4.315 GB, free: 119.8 MB / 0.9792 GB Notification: Performance of FrontEnd: time 3.256e-06/13.03, allocations: 0 / 4.315 GB, free: 119.8 MB / 0.9792 GB Notification: Performance of Transformations before backend: time 0.001784/13.03, allocations: 251.9 kB / 4.316 GB, free: 119.7 MB / 0.9792 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.03785/13.07, allocations: 9.821 MB / 4.325 GB, free: 116.5 MB / 0.9792 GB Notification: Performance of prepare preOptimizeDAE: time 5.521e-05/13.07, allocations: 10.53 kB / 4.325 GB, free: 116.5 MB / 0.9792 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007519/13.08, allocations: 1.149 MB / 4.326 GB, free: 116.4 MB / 0.9792 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009545/13.09, allocations: 1.166 MB / 4.328 GB, free: 115.8 MB / 0.9792 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03369/13.12, allocations: 10.8 MB / 4.338 GB, free: 114.8 MB / 0.9792 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009053/13.12, allocations: 0.6159 MB / 4.339 GB, free: 114.7 MB / 0.9792 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004482/13.12, allocations: 0.8186 MB / 4.339 GB, free: 114.7 MB / 0.9792 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03639/13.16, allocations: 11.7 MB / 4.351 GB, free: 113.5 MB / 0.9792 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004785/13.16, allocations: 27.31 kB / 4.351 GB, free: 113.5 MB / 0.9792 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003245/13.16, allocations: 366.5 kB / 4.351 GB, free: 113.5 MB / 0.9792 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003082/13.16, allocations: 249 kB / 4.352 GB, free: 113.5 MB / 0.9792 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02811/13.19, allocations: 9.628 MB / 4.361 GB, free: 113.4 MB / 0.9792 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.09381/13.29, allocations: 46.6 MB / 4.406 GB, free: 93.99 MB / 0.9792 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01176/13.3, allocations: 6.319 MB / 4.413 GB, free: 93.7 MB / 0.9792 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001269/13.3, allocations: 0.8176 MB / 4.413 GB, free: 92.95 MB / 0.9792 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006228/13.31, allocations: 3.404 MB / 4.417 GB, free: 92.77 MB / 0.9792 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.005655/13.31, allocations: 0.5592 MB / 4.417 GB, free: 92.47 MB / 0.9792 GB Notification: Performance of pre-optimization done (n=449): time 2.031e-05/13.31, allocations: 0 / 4.417 GB, free: 92.47 MB / 0.9792 GB Notification: Performance of matching and sorting (n=449): time 0.01535/13.33, allocations: 9.013 MB / 4.426 GB, free: 91.71 MB / 0.9792 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.02e-05/13.33, allocations: 154.7 kB / 4.426 GB, free: 91.58 MB / 0.9792 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0158/13.34, allocations: 7.096 MB / 4.433 GB, free: 91.15 MB / 0.9792 GB Notification: Performance of collectPreVariables (initialization): time 0.001729/13.35, allocations: 112.3 kB / 4.433 GB, free: 91.12 MB / 0.9792 GB Notification: Performance of collectInitialEqns (initialization): time 0.005591/13.35, allocations: 4.282 MB / 4.437 GB, free: 89.5 MB / 0.9792 GB Notification: Performance of collectInitialBindings (initialization): time 0.003284/13.35, allocations: 1.557 MB / 4.439 GB, free: 88.52 MB / 0.9792 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005706/13.35, allocations: 121.6 kB / 4.439 GB, free: 88.52 MB / 0.9792 GB Notification: Performance of setup shared object (initialization): time 0.0004057/13.35, allocations: 0.5413 MB / 4.44 GB, free: 88.21 MB / 0.9792 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004219/13.36, allocations: 2.986 MB / 4.443 GB, free: 88.19 MB / 0.9792 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005346/13.36, allocations: 4.86 MB / 4.447 GB, free: 85.99 MB / 0.9792 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005693/13.37, allocations: 4.028 MB / 4.451 GB, free: 85.88 MB / 0.9792 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.201e-05/13.37, allocations: 14.5 kB / 4.451 GB, free: 85.88 MB / 0.9792 GB Notification: Performance of matching and sorting (n=754) (initialization): time 0.01438/13.38, allocations: 8.845 MB / 4.46 GB, free: 85.35 MB / 0.9792 GB Notification: Performance of prepare postOptimizeDAE: time 0.00626/13.39, allocations: 29.08 MB / 4.488 GB, free: 55.16 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002113/13.39, allocations: 64.42 kB / 4.488 GB, free: 55.16 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001811/13.39, allocations: 97.44 kB / 4.488 GB, free: 55.16 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009946/13.4, allocations: 1.44 MB / 4.49 GB, free: 55.16 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001591/13.4, allocations: 126.6 kB / 4.49 GB, free: 55.16 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00978/13.41, allocations: 0.6339 MB / 4.491 GB, free: 55.09 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00159/13.41, allocations: 280.8 kB / 4.491 GB, free: 55.09 MB / 0.9792 GB Notification: Performance of prepare postOptimizeDAE: time 1.886e-05/13.41, allocations: 3.531 kB / 4.491 GB, free: 55.09 MB / 0.9792 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01378/13.43, allocations: 8.266 MB / 4.499 GB, free: 52.38 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001607/13.43, allocations: 59.5 kB / 4.499 GB, free: 52.38 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.77e-05/13.43, allocations: 99.7 kB / 4.499 GB, free: 52.38 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005898/13.43, allocations: 1.433 MB / 4.5 GB, free: 52.23 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00013/13.43, allocations: 133.2 kB / 4.501 GB, free: 52.21 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008971/13.44, allocations: 0.6041 MB / 4.501 GB, free: 52.07 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001386/13.44, allocations: 279.8 kB / 4.501 GB, free: 52.02 MB / 0.9792 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.008886/13.45, allocations: 3.556 MB / 4.505 GB, free: 50.46 MB / 0.9792 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002662/13.46, allocations: 0.7157 MB / 4.506 GB, free: 50.1 MB / 0.9792 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0129/13.47, allocations: 7.105 MB / 4.513 GB, free: 47.39 MB / 0.9792 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.458e-05/13.47, allocations: 44 kB / 4.513 GB, free: 47.39 MB / 0.9792 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.317e-05/13.47, allocations: 0 / 4.513 GB, free: 47.39 MB / 0.9792 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008219/13.48, allocations: 5.825 MB / 4.518 GB, free: 45.26 MB / 0.9792 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.03507/13.51, allocations: 16.39 MB / 4.534 GB, free: 38.98 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.438e-05/13.51, allocations: 0 / 4.534 GB, free: 38.98 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003906/13.52, allocations: 0.9001 MB / 4.535 GB, free: 38.91 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.137e-05/13.52, allocations: 17.88 kB / 4.535 GB, free: 38.91 MB / 0.9792 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003515/13.52, allocations: 122 kB / 4.535 GB, free: 38.85 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.107e-05/13.52, allocations: 15.16 kB / 4.535 GB, free: 38.85 MB / 0.9792 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.868e-06/13.52, allocations: 6.984 kB / 4.535 GB, free: 38.85 MB / 0.9792 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0139/13.53, allocations: 10.77 MB / 4.546 GB, free: 34.43 MB / 0.9792 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005945/13.54, allocations: 1.753 MB / 4.548 GB, free: 33.52 MB / 0.9792 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001816/13.54, allocations: 100 kB / 4.548 GB, free: 33.46 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006113/13.54, allocations: 0.5651 MB / 4.548 GB, free: 33.37 MB / 0.9792 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005253/13.54, allocations: 254.7 kB / 4.548 GB, free: 33.34 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000519/13.54, allocations: 197.2 kB / 4.549 GB, free: 33.3 MB / 0.9792 GB Notification: Performance of sorting global known variables: time 0.00869/13.55, allocations: 5.543 MB / 4.554 GB, free: 31.42 MB / 0.9792 GB Notification: Performance of sort global known variables: time 2.6e-07/13.55, allocations: 0 / 4.554 GB, free: 31.42 MB / 0.9792 GB Notification: Performance of remove unused functions: time 0.01748/13.57, allocations: 4.926 MB / 4.559 GB, free: 30.4 MB / 0.9792 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.01917/13.59, allocations: 12.22 MB / 4.571 GB, free: 25.18 MB / 0.9792 GB Notification: Performance of simCode: created initialization part: time 0.0162/13.61, allocations: 11.45 MB / 4.582 GB, free: 16.13 MB / 0.9792 GB Notification: Performance of simCode: created event and clocks part: time 1.145e-05/13.61, allocations: 4.562 kB / 4.582 GB, free: 16.13 MB / 0.9792 GB Notification: Performance of simCode: created simulation system equations: time 0.004098/13.61, allocations: 3.202 MB / 4.585 GB, free: 13.34 MB / 0.9792 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02385/13.63, allocations: 4.386 MB / 4.589 GB, free: 10.28 MB / 0.9792 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.9468/14.58, allocations: 114.4 MB / 4.701 GB, free: 92.66 MB / 1.01 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01485/14.6, allocations: 6.257 MB / 4.707 GB, free: 91.78 MB / 1.01 GB Notification: Performance of simCode: alias equations: time 0.02044/14.62, allocations: 4.344 MB / 4.711 GB, free: 91.71 MB / 1.01 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01176/14.63, allocations: 3.716 MB / 4.715 GB, free: 91.7 MB / 1.01 GB Notification: Performance of SimCode: time 2.144e-06/14.63, allocations: 0 / 4.715 GB, free: 91.7 MB / 1.01 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3831/15.01, allocations: 236.9 MB / 4.946 GB, free: 19.95 MB / 1.01 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001643/15.01, allocations: 211 kB / 4.947 GB, free: 19.7 MB / 1.01 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.95/25.96, allocations: 0.9844 kB / 4.947 GB, free: 19.7 MB / 1.01 GB (rm -f Buildings_8_Buildings.Fluid.Storage.Examples.Stratified.pipe ; mkfifo Buildings_8_Buildings.Fluid.Storage.Examples.Stratified.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Storage.Examples.Stratified.pipe >> ../files/Buildings_8_Buildings.Fluid.Storage.Examples.Stratified.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_Storage_Examples_Stratified_fmu --startTime=0 --stopTime=10800 --timeout=50 --tolerance=1e-08 Buildings_8_Buildings_Fluid_Storage_Examples_Stratified.fmu > Buildings_8_Buildings.Fluid.Storage.Examples.Stratified.pipe 2>&1)