Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.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/IDEAS 3.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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.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(IDEAS.Fluid.Storage.Examples.Stratified,fileNamePrefix="IDEAS_IDEAS_Fluid_Storage_Examples_Stratified",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Storage.Examples.Stratified,fileNamePrefix="IDEAS_IDEAS_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.001613/0.001613, allocations: 180.9 kB / 7.651 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.21/1.21, allocations: 133.6 MB / 141.6 MB, free: 2.828 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.715/1.715, allocations: 221.5 MB / 395.4 MB, free: 10.8 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.0009865/0.0009867, allocations: 97.09 kB / 478.2 MB, free: 1.305 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.089e-05/2.084e-05, allocations: 4 kB / 0.5535 GB, free: 8.953 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.556/0.5561, allocations: 82.3 MB / 0.6339 GB, free: 40.8 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9783/1.535, allocations: 384.6 MB / 1.01 GB, free: 0.5703 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003075/1.535, allocations: 90.75 kB / 1.01 GB, free: 0.5234 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 11.87/13.4, allocations: 2.961 GB / 3.971 GB, free: 39.9 MB / 0.7136 GB Notification: Performance of FrontEnd: time 2.605e-06/13.4, allocations: 0 / 3.971 GB, free: 39.9 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 0.002069/13.4, allocations: 265.7 kB / 3.971 GB, free: 39.66 MB / 0.7136 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.03532/13.44, allocations: 8.344 MB / 3.979 GB, free: 31.28 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 5.937e-05/13.44, allocations: 8.031 kB / 3.979 GB, free: 31.27 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01058/13.45, allocations: 1.174 MB / 3.98 GB, free: 30.09 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03289/13.48, allocations: 11.06 MB / 3.991 GB, free: 19.14 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001058/13.48, allocations: 268 kB / 3.991 GB, free: 18.88 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006194/13.49, allocations: 488 kB / 3.992 GB, free: 18.4 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02882/13.52, allocations: 8.9 MB / 4.001 GB, free: 9.492 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.7039/14.22, allocations: 10.34 MB / 4.011 GB, free: 64.1 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004879/14.22, allocations: 32.02 kB / 4.011 GB, free: 64.1 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003048/14.23, allocations: 16.48 kB / 4.011 GB, free: 64.1 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004521/14.23, allocations: 246.8 kB / 4.011 GB, free: 64.1 MB / 0.7136 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.08977/14.32, allocations: 44.99 MB / 4.055 GB, free: 61.5 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01463/14.33, allocations: 6.008 MB / 4.061 GB, free: 61.26 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.009038/14.34, allocations: 4.648 MB / 4.065 GB, free: 61.21 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001651/14.34, allocations: 0.8194 MB / 4.066 GB, free: 60.45 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008912/14.35, allocations: 3.175 MB / 4.069 GB, free: 60.29 MB / 0.7292 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.006484/14.36, allocations: 399.7 kB / 4.07 GB, free: 60.17 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=449): time 3.573e-05/14.36, allocations: 0 / 4.07 GB, free: 60.17 MB / 0.7292 GB Notification: Performance of matching and sorting (n=449): time 0.01611/14.37, allocations: 6.122 MB / 4.076 GB, free: 59.71 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.82e-05/14.37, allocations: 161.9 kB / 4.076 GB, free: 59.58 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0157/14.39, allocations: 5.926 MB / 4.081 GB, free: 59.21 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 0.001622/14.39, allocations: 32.67 kB / 4.081 GB, free: 59.18 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.007183/14.4, allocations: 4.303 MB / 4.086 GB, free: 57.72 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 0.003976/14.4, allocations: 1.505 MB / 4.087 GB, free: 56.75 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001719/14.4, allocations: 0 / 4.087 GB, free: 56.75 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.001105/14.41, allocations: 0.541 MB / 4.088 GB, free: 56.43 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005847/14.41, allocations: 2.781 MB / 4.09 GB, free: 56.41 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006373/14.42, allocations: 4.617 MB / 4.095 GB, free: 54.23 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007862/14.43, allocations: 4.06 MB / 4.099 GB, free: 54.18 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001247/14.43, allocations: 16.91 kB / 4.099 GB, free: 54.18 MB / 0.7292 GB Notification: Performance of matching and sorting (n=754) (initialization): time 0.02082/14.45, allocations: 8.244 MB / 4.107 GB, free: 53.74 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 0.01225/14.46, allocations: 28.13 MB / 4.134 GB, free: 40.59 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002245/14.46, allocations: 63.95 kB / 4.134 GB, free: 40.58 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001707/14.46, allocations: 98.66 kB / 4.135 GB, free: 40.58 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007998/14.47, allocations: 1.44 MB / 4.136 GB, free: 40.58 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002762/14.47, allocations: 125.5 kB / 4.136 GB, free: 40.58 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009637/14.48, allocations: 0.5156 MB / 4.137 GB, free: 40.52 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001709/14.48, allocations: 279.2 kB / 4.137 GB, free: 40.52 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.338e-05/14.48, allocations: 3.594 kB / 4.137 GB, free: 40.52 MB / 0.7448 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0169/14.5, allocations: 7.603 MB / 4.144 GB, free: 40.43 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002587/14.5, allocations: 64.02 kB / 4.144 GB, free: 40.43 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001558/14.5, allocations: 97.03 kB / 4.144 GB, free: 40.43 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006358/14.5, allocations: 1.44 MB / 4.146 GB, free: 40.43 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002011/14.5, allocations: 131.2 kB / 4.146 GB, free: 40.43 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0102/14.51, allocations: 492.6 kB / 4.146 GB, free: 40.38 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001746/14.51, allocations: 283.8 kB / 4.147 GB, free: 40.38 MB / 0.7448 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.003206/14.52, allocations: 356.2 kB / 4.147 GB, free: 40.17 MB / 0.7448 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01567/14.53, allocations: 6.154 MB / 4.153 GB, free: 39.71 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002927/14.54, allocations: 0.6402 MB / 4.154 GB, free: 39.38 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01423/14.55, allocations: 6.775 MB / 4.16 GB, free: 39.15 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.132e-05/14.55, allocations: 47.66 kB / 4.16 GB, free: 39.15 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.386e-05/14.55, allocations: 1.594 kB / 4.16 GB, free: 39.15 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009462/14.56, allocations: 5.648 MB / 4.166 GB, free: 38.99 MB / 0.7448 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.04038/14.6, allocations: 15.4 MB / 4.181 GB, free: 38.06 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.766e-05/14.6, allocations: 0 / 4.181 GB, free: 38.06 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005436/14.61, allocations: 0.913 MB / 4.182 GB, free: 38.06 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.444e-05/14.61, allocations: 14.88 kB / 4.182 GB, free: 38.06 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006204/14.61, allocations: 67.36 kB / 4.182 GB, free: 38.06 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.977e-05/14.61, allocations: 13.09 kB / 4.182 GB, free: 38.06 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.989e-06/14.61, allocations: 0 / 4.182 GB, free: 38.06 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0162/14.62, allocations: 10.33 MB / 4.192 GB, free: 37.25 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006536/14.63, allocations: 1.672 MB / 4.194 GB, free: 36.82 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003076/14.63, allocations: 24.69 kB / 4.194 GB, free: 36.82 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008051/14.64, allocations: 0.4925 MB / 4.194 GB, free: 36.79 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008504/14.64, allocations: 258.2 kB / 4.194 GB, free: 36.78 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001028/14.64, allocations: 205.9 kB / 4.195 GB, free: 36.78 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.01176/14.65, allocations: 4.517 MB / 4.199 GB, free: 36.07 MB / 0.7448 GB Notification: Performance of sort global known variables: time 8.72e-07/14.65, allocations: 3.641 kB / 4.199 GB, free: 36.07 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.02841/14.68, allocations: 4.768 MB / 4.204 GB, free: 35.19 MB / 0.7448 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.02604/14.71, allocations: 11.73 MB / 4.215 GB, free: 30.43 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0206/14.73, allocations: 10.87 MB / 4.226 GB, free: 26.51 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.28e-05/14.73, allocations: 8.344 kB / 4.226 GB, free: 26.51 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.006039/14.74, allocations: 3.024 MB / 4.229 GB, free: 25.32 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02412/14.76, allocations: 3.482 MB / 4.232 GB, free: 24.79 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06712/14.83, allocations: 18.88 MB / 4.25 GB, free: 15.88 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01506/14.84, allocations: 6.311 MB / 4.257 GB, free: 11.2 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 0.02589/14.87, allocations: 5.939 MB / 4.262 GB, free: 7.496 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01377/14.88, allocations: 3.613 MB / 4.266 GB, free: 4.156 MB / 0.7448 GB Notification: Performance of SimCode: time 2.234e-06/14.88, allocations: 4 kB / 4.266 GB, free: 4.152 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.033/15.91, allocations: 202.4 MB / 4.464 GB, free: 86.88 MB / 0.7605 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001796/15.92, allocations: 151.1 kB / 4.464 GB, free: 86.69 MB / 0.7605 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.98/25.89, allocations: 0 / 4.464 GB, free: 86.69 MB / 0.7605 GB (rm -f IDEAS_IDEAS.Fluid.Storage.Examples.Stratified.pipe ; mkfifo IDEAS_IDEAS.Fluid.Storage.Examples.Stratified.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Storage.Examples.Stratified.pipe >> ../files/IDEAS_IDEAS.Fluid.Storage.Examples.Stratified.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Fluid_Storage_Examples_Stratified_fmu --startTime=0 --stopTime=10800 --timeout=50 --tolerance=1e-08 IDEAS_IDEAS_Fluid_Storage_Examples_Stratified.fmu > IDEAS_IDEAS.Fluid.Storage.Examples.Stratified.pipe 2>&1)