Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.Fluid.Storage.Examples.Stratified.conf.json 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/IBPSA 4.0.0-master/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 IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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) Running command: "" <> buildModelFMU(IBPSA.Fluid.Storage.Examples.Stratified,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Storage_Examples_Stratified",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.Storage.Examples.Stratified,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Storage_Examples_Stratified",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000965/0.000965, allocations: 178.5 kB / 13.19 MB, free: 2.133 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.4755/0.4755, allocations: 90.81 MB / 104.5 MB, free: 9.793 MB / 90.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.291/1.291, allocations: 221.3 MB / 348.3 MB, free: 484 kB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009323/0.0009323, allocations: 98.67 kB / 421.2 MB, free: 5.477 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 2.995e-05/2.999e-05, allocations: 4 kB / 0.4897 GB, free: 5.266 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3948/0.3948, allocations: 72.3 MB / 0.5603 GB, free: 40.43 MB / 410.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7472/1.142, allocations: 375.6 MB / 0.9271 GB, free: 7.219 MB / 0.6042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000239/1.142, allocations: 86.83 kB / 0.9272 GB, free: 7.176 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 11.03/12.17, allocations: 3.013 GB / 3.941 GB, free: 48.54 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.995e-06/12.17, allocations: 2.562 kB / 3.941 GB, free: 48.54 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 0.001721/12.17, allocations: 263.6 kB / 3.941 GB, free: 48.49 MB / 0.6355 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.02951/12.2, allocations: 8.333 MB / 3.949 GB, free: 45.29 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.429e-05/12.2, allocations: 11.42 kB / 3.949 GB, free: 45.28 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006046/12.21, allocations: 1.145 MB / 3.95 GB, free: 45.19 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008057/12.22, allocations: 1.177 MB / 3.951 GB, free: 44.63 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02832/12.24, allocations: 11.05 MB / 3.962 GB, free: 40.5 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009136/12.25, allocations: 0.6151 MB / 3.963 GB, free: 40.22 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004866/12.25, allocations: 0.8154 MB / 3.964 GB, free: 39.95 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03393/12.28, allocations: 11.56 MB / 3.975 GB, free: 32.68 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006098/12.28, allocations: 23.78 kB / 3.975 GB, free: 32.66 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00407/12.29, allocations: 358.1 kB / 3.975 GB, free: 32.31 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003072/12.29, allocations: 247.9 kB / 3.975 GB, free: 32.07 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02286/12.31, allocations: 9.44 MB / 3.985 GB, free: 22.62 MB / 0.6355 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.5872/12.9, allocations: 46.62 MB / 4.03 GB, free: 54.25 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009554/12.91, allocations: 6.241 MB / 4.036 GB, free: 53.97 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007202/12.92, allocations: 5.407 MB / 4.042 GB, free: 53.91 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00114/12.92, allocations: 0.8173 MB / 4.042 GB, free: 53.16 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005896/12.92, allocations: 3.319 MB / 4.046 GB, free: 52.99 MB / 0.6511 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.005608/12.93, allocations: 0.5596 MB / 4.046 GB, free: 52.99 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=449): time 2.651e-05/12.93, allocations: 0 / 4.046 GB, free: 52.99 MB / 0.6511 GB Notification: Performance of matching and sorting (n=449): time 0.01248/12.94, allocations: 6.209 MB / 4.052 GB, free: 52.66 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.989e-05/12.94, allocations: 154.9 kB / 4.052 GB, free: 52.53 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.013/12.95, allocations: 7.125 MB / 4.059 GB, free: 52.11 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 0.001393/12.96, allocations: 112.1 kB / 4.059 GB, free: 52.08 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.004603/12.96, allocations: 4.326 MB / 4.064 GB, free: 50.91 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.002495/12.96, allocations: 1.568 MB / 4.065 GB, free: 50.01 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004124/12.96, allocations: 118.3 kB / 4.065 GB, free: 50.01 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0003583/12.96, allocations: 0.5471 MB / 4.066 GB, free: 49.69 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004123/12.97, allocations: 2.892 MB / 4.069 GB, free: 49.68 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005267/12.97, allocations: 4.771 MB / 4.073 GB, free: 47.48 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005517/12.98, allocations: 3.96 MB / 4.077 GB, free: 47.36 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.784e-05/12.98, allocations: 14.53 kB / 4.077 GB, free: 47.36 MB / 0.6511 GB Notification: Performance of matching and sorting (n=754) (initialization): time 0.01582/12.99, allocations: 8.673 MB / 4.086 GB, free: 46.82 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.009712/13, allocations: 29.27 MB / 4.114 GB, free: 31.6 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001845/13, allocations: 56.91 kB / 4.114 GB, free: 31.6 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001546/13, allocations: 102.8 kB / 4.114 GB, free: 31.6 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006547/13.01, allocations: 1.441 MB / 4.116 GB, free: 31.6 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001618/13.01, allocations: 127.3 kB / 4.116 GB, free: 31.6 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01199/13.02, allocations: 0.6262 MB / 4.117 GB, free: 31.54 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002155/13.03, allocations: 282.8 kB / 4.117 GB, free: 31.54 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 2.414e-05/13.03, allocations: 7.062 kB / 4.117 GB, free: 31.54 MB / 0.6667 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0132/13.04, allocations: 8.078 MB / 4.125 GB, free: 31.39 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001599/13.04, allocations: 67.31 kB / 4.125 GB, free: 31.38 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.988e-05/13.04, allocations: 98.19 kB / 4.125 GB, free: 31.38 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005401/13.04, allocations: 1.442 MB / 4.126 GB, free: 31.38 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001222/13.05, allocations: 127.7 kB / 4.126 GB, free: 31.38 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008012/13.05, allocations: 0.5904 MB / 4.127 GB, free: 31.34 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006929/13.05, allocations: 278.3 kB / 4.127 GB, free: 31.34 MB / 0.6667 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.001892/13.06, allocations: 0.543 MB / 4.128 GB, free: 31.13 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002479/13.06, allocations: 0.7177 MB / 4.128 GB, free: 30.76 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01105/13.07, allocations: 6.974 MB / 4.135 GB, free: 30.46 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.646e-05/13.07, allocations: 43.84 kB / 4.135 GB, free: 30.46 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.139e-05/13.07, allocations: 3.062 kB / 4.135 GB, free: 30.46 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00703/13.08, allocations: 5.669 MB / 4.141 GB, free: 30.24 MB / 0.6667 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.03347/13.11, allocations: 16.48 MB / 4.157 GB, free: 29.17 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-05/13.11, allocations: 3.562 kB / 4.157 GB, free: 29.17 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003744/13.11, allocations: 0.9133 MB / 4.158 GB, free: 29.17 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.702e-05/13.11, allocations: 15.69 kB / 4.158 GB, free: 29.17 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003037/13.11, allocations: 122.6 kB / 4.158 GB, free: 29.17 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.737e-05/13.11, allocations: 14.91 kB / 4.158 GB, free: 29.17 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.989e-06/13.11, allocations: 6.953 kB / 4.158 GB, free: 29.17 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01426/13.13, allocations: 10.55 MB / 4.168 GB, free: 28.24 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006014/13.13, allocations: 1.749 MB / 4.17 GB, free: 27.78 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002191/13.14, allocations: 99.16 kB / 4.17 GB, free: 27.78 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006407/13.14, allocations: 0.5645 MB / 4.171 GB, free: 27.75 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004615/13.14, allocations: 260.1 kB / 4.171 GB, free: 27.74 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004794/13.14, allocations: 198.1 kB / 4.171 GB, free: 27.74 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.009225/13.15, allocations: 5.557 MB / 4.176 GB, free: 27.5 MB / 0.6667 GB Notification: Performance of sort global known variables: time 6.31e-07/13.15, allocations: 3.344 kB / 4.176 GB, free: 27.5 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.01591/13.17, allocations: 4.927 MB / 4.181 GB, free: 26.8 MB / 0.6667 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.015/13.18, allocations: 12 MB / 4.193 GB, free: 23.42 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.01495/13.2, allocations: 11.42 MB / 4.204 GB, free: 19.29 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 1.526e-05/13.2, allocations: 8.25 kB / 4.204 GB, free: 19.29 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.003655/13.2, allocations: 3.123 MB / 4.207 GB, free: 18.09 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02199/13.22, allocations: 4.376 MB / 4.211 GB, free: 17.39 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04471/13.27, allocations: 19.55 MB / 4.231 GB, free: 4.43 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008671/13.28, allocations: 6.405 MB / 4.237 GB, free: 15.96 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.02159/13.3, allocations: 6.676 MB / 4.243 GB, free: 11.83 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008751/13.31, allocations: 3.627 MB / 4.247 GB, free: 8.473 MB / 0.6823 GB Notification: Performance of SimCode: time 1.363e-06/13.31, allocations: 4 kB / 4.247 GB, free: 8.469 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7926/14.1, allocations: 240.8 MB / 4.482 GB, free: 43.82 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001463/14.1, allocations: 180 kB / 4.482 GB, free: 43.6 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.225/23.33, allocations: 0 / 4.482 GB, free: 43.6 MB / 0.698 GB (rm -f IBPSA_latest_IBPSA.Fluid.Storage.Examples.Stratified.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.Storage.Examples.Stratified.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.Storage.Examples.Stratified.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.Storage.Examples.Stratified.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Fluid_Storage_Examples_Stratified_fmu --startTime=0 --stopTime=10800 --timeout=50 --tolerance=1e-08 IBPSA_latest_IBPSA_Fluid_Storage_Examples_Stratified.fmu > IBPSA_latest_IBPSA.Fluid.Storage.Examples.Stratified.pipe 2>&1)