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.001361/0.001361, allocations: 177.6 kB / 8.002 MB, free: 1.07 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.5334/0.5334, allocations: 90.91 MB / 99.35 MB, free: 2.191 MB / 74.73 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.474/1.474, allocations: 221.5 MB / 343.2 MB, free: 1.535 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009776/0.0009775, allocations: 91.08 kB / 415.9 MB, free: 11.11 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 1.927e-05/1.93e-05, allocations: 4 kB / 494.6 MB, free: 52.32 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1368/0.1368, allocations: 72.31 MB / 0.5536 GB, free: 12.2 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.074/1.211, allocations: 374.9 MB / 0.9198 GB, free: 105.3 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002813/1.211, allocations: 90.39 kB / 0.9199 GB, free: 105.3 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 10.97/12.19, allocations: 2.998 GB / 3.918 GB, free: 66.09 MB / 0.6511 GB Notification: Performance of FrontEnd: time 2.945e-06/12.19, allocations: 0 / 3.918 GB, free: 66.09 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 0.001819/12.19, allocations: 269 kB / 3.918 GB, free: 66.05 MB / 0.6511 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.0295/12.22, allocations: 8.333 MB / 3.926 GB, free: 62.97 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.665e-05/12.22, allocations: 9.344 kB / 3.926 GB, free: 62.97 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007767/12.23, allocations: 1.181 MB / 3.928 GB, free: 62.41 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02912/12.25, allocations: 11.05 MB / 3.938 GB, free: 61.32 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005636/12.26, allocations: 265.4 kB / 3.939 GB, free: 61.32 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003599/12.26, allocations: 487 kB / 3.939 GB, free: 61.31 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02165/12.28, allocations: 8.902 MB / 3.948 GB, free: 61.27 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03359/12.31, allocations: 10.34 MB / 3.958 GB, free: 60.1 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005939/12.31, allocations: 30.7 kB / 3.958 GB, free: 60.09 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003537/12.32, allocations: 16.44 kB / 3.958 GB, free: 60.09 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002635/12.32, allocations: 251.8 kB / 3.958 GB, free: 60.09 MB / 0.6511 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.08202/12.4, allocations: 45.01 MB / 4.002 GB, free: 37.67 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.011/12.41, allocations: 6.007 MB / 4.008 GB, free: 35.27 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00771/12.42, allocations: 4.644 MB / 4.013 GB, free: 33.7 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001399/12.42, allocations: 0.8207 MB / 4.013 GB, free: 32.93 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006875/12.43, allocations: 3.177 MB / 4.016 GB, free: 31.79 MB / 0.6511 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.005788/12.43, allocations: 391 kB / 4.017 GB, free: 31.55 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=449): time 2.394e-05/12.43, allocations: 0 / 4.017 GB, free: 31.55 MB / 0.6511 GB Notification: Performance of matching and sorting (n=449): time 0.01458/12.45, allocations: 6.132 MB / 4.023 GB, free: 29.41 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.065e-05/12.45, allocations: 157 kB / 4.023 GB, free: 29.28 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01416/12.46, allocations: 5.927 MB / 4.029 GB, free: 25.14 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 0.00154/12.46, allocations: 29.7 kB / 4.029 GB, free: 25.11 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.005422/12.47, allocations: 4.299 MB / 4.033 GB, free: 21.22 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.00277/12.47, allocations: 1.509 MB / 4.034 GB, free: 19.83 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00113/12.47, allocations: 0 / 4.034 GB, free: 19.83 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0006348/12.47, allocations: 0.5398 MB / 4.035 GB, free: 19.35 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004868/12.48, allocations: 2.783 MB / 4.038 GB, free: 16.94 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007205/12.49, allocations: 4.627 MB / 4.042 GB, free: 11.94 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0088/12.5, allocations: 4.057 MB / 4.046 GB, free: 8.652 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.614e-05/12.5, allocations: 19.94 kB / 4.046 GB, free: 8.633 MB / 0.6511 GB Notification: Performance of matching and sorting (n=754) (initialization): time 0.02032/12.52, allocations: 8.237 MB / 4.054 GB, free: 1.551 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.5118/13.03, allocations: 28.12 MB / 4.082 GB, free: 37.63 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002078/13.03, allocations: 58.16 kB / 4.082 GB, free: 37.63 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002054/13.03, allocations: 97.97 kB / 4.082 GB, free: 37.63 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007715/13.04, allocations: 1.446 MB / 4.083 GB, free: 37.63 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001724/13.04, allocations: 126 kB / 4.083 GB, free: 37.63 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008497/13.04, allocations: 0.5096 MB / 4.084 GB, free: 37.63 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001186/13.05, allocations: 282.9 kB / 4.084 GB, free: 37.63 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.032e-05/13.05, allocations: 10.42 kB / 4.084 GB, free: 37.62 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01498/13.06, allocations: 7.599 MB / 4.092 GB, free: 37.54 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001725/13.06, allocations: 58.41 kB / 4.092 GB, free: 37.54 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001481/13.06, allocations: 99.12 kB / 4.092 GB, free: 37.54 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005987/13.07, allocations: 1.443 MB / 4.093 GB, free: 37.54 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001841/13.07, allocations: 129.6 kB / 4.093 GB, free: 37.54 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007945/13.08, allocations: 491.6 kB / 4.094 GB, free: 37.54 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009591/13.08, allocations: 280.8 kB / 4.094 GB, free: 37.54 MB / 0.6511 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.001996/13.08, allocations: 360.1 kB / 4.094 GB, free: 37.37 MB / 0.6511 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01324/13.09, allocations: 6.153 MB / 4.1 GB, free: 37.24 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00265/13.09, allocations: 0.6447 MB / 4.101 GB, free: 37.19 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01345/13.11, allocations: 6.776 MB / 4.108 GB, free: 36.97 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.988e-05/13.11, allocations: 44.31 kB / 4.108 GB, free: 36.97 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.241e-05/13.11, allocations: 1.844 kB / 4.108 GB, free: 36.97 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007911/13.12, allocations: 5.639 MB / 4.113 GB, free: 36.81 MB / 0.6511 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.02912/13.14, allocations: 15.4 MB / 4.128 GB, free: 35.91 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.587e-05/13.14, allocations: 3.094 kB / 4.128 GB, free: 35.91 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003899/13.15, allocations: 0.9128 MB / 4.129 GB, free: 35.91 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.855e-05/13.15, allocations: 14.19 kB / 4.129 GB, free: 35.91 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003479/13.15, allocations: 68.16 kB / 4.129 GB, free: 35.9 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.701e-05/13.15, allocations: 20.23 kB / 4.129 GB, free: 35.9 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/13.15, allocations: 0 / 4.129 GB, free: 35.9 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01533/13.16, allocations: 10.33 MB / 4.139 GB, free: 35.09 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005837/13.17, allocations: 1.667 MB / 4.141 GB, free: 34.67 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002321/13.17, allocations: 27.02 kB / 4.141 GB, free: 34.67 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00656/13.18, allocations: 0.4945 MB / 4.141 GB, free: 34.65 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004914/13.18, allocations: 257.8 kB / 4.142 GB, free: 34.64 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005432/13.18, allocations: 202 kB / 4.142 GB, free: 34.64 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.007723/13.19, allocations: 4.519 MB / 4.146 GB, free: 34.43 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.563e-06/13.19, allocations: 0 / 4.146 GB, free: 34.43 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.02013/13.21, allocations: 4.772 MB / 4.151 GB, free: 34 MB / 0.6511 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.02088/13.23, allocations: 11.74 MB / 4.162 GB, free: 32.54 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.01808/13.25, allocations: 10.87 MB / 4.173 GB, free: 32.19 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.625e-05/13.25, allocations: 7.281 kB / 4.173 GB, free: 32.19 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.004269/13.25, allocations: 3.03 MB / 4.176 GB, free: 32.06 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02143/13.27, allocations: 3.473 MB / 4.179 GB, free: 32.02 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05388/13.33, allocations: 18.88 MB / 4.198 GB, free: 28.98 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01001/13.34, allocations: 6.301 MB / 4.204 GB, free: 27.99 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.02172/13.36, allocations: 5.934 MB / 4.21 GB, free: 27.6 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008971/13.37, allocations: 3.612 MB / 4.213 GB, free: 27.59 MB / 0.6511 GB Notification: Performance of SimCode: time 1.122e-06/13.37, allocations: 0 / 4.213 GB, free: 27.59 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.793/14.16, allocations: 201.2 MB / 4.41 GB, free: 72.67 MB / 0.6667 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001618/14.16, allocations: 152 kB / 4.41 GB, free: 72.48 MB / 0.6667 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.864/24.03, allocations: 0 / 4.41 GB, free: 72.48 MB / 0.6667 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)