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.01047/0.01047, allocations: 170.5 kB / 15.11 MB, free: 5.578 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8276/0.8276, allocations: 135.2 MB / 151 MB, free: 13.82 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.647/1.647, allocations: 223.2 MB / 406.8 MB, free: 3.266 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.001076/0.001076, allocations: 98.56 kB / 489.9 MB, free: 10.95 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004579/0.0004579, allocations: 8 kB / 0.5691 GB, free: 14.12 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4997/0.5002, allocations: 82.3 MB / 0.6495 GB, free: 36.07 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9101/1.41, allocations: 385.4 MB / 1.026 GB, free: 4.648 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003133/1.411, allocations: 96.53 kB / 1.026 GB, free: 4.598 MB / 0.6667 GB Notification: Performance of FrontEnd - DAE generated: time 12.83/14.24, allocations: 2.983 GB / 4.009 GB, free: 65.48 MB / 0.7136 GB Notification: Performance of FrontEnd: time 4.107e-06/14.24, allocations: 0 / 4.009 GB, free: 65.48 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 0.001958/14.24, allocations: 266.8 kB / 4.009 GB, free: 65.44 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.0419/14.28, allocations: 9.923 MB / 4.019 GB, free: 61.88 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 7.126e-05/14.28, allocations: 7.344 kB / 4.019 GB, free: 61.88 MB / 0.7136 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007351/14.29, allocations: 1.149 MB / 4.02 GB, free: 61.79 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009469/14.3, allocations: 1.178 MB / 4.021 GB, free: 61.23 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03263/14.33, allocations: 11.1 MB / 4.032 GB, free: 60.14 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008476/14.34, allocations: 0.6123 MB / 4.033 GB, free: 60.12 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004229/14.34, allocations: 0.8234 MB / 4.033 GB, free: 60.11 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03708/14.38, allocations: 11.7 MB / 4.045 GB, free: 58.9 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005226/14.38, allocations: 29.47 kB / 4.045 GB, free: 58.89 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003643/14.38, allocations: 356.6 kB / 4.045 GB, free: 58.89 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003031/14.38, allocations: 246.7 kB / 4.045 GB, free: 58.89 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02599/14.41, allocations: 9.634 MB / 4.055 GB, free: 58.83 MB / 0.7136 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.08592/14.49, allocations: 46.64 MB / 4.1 GB, free: 39.37 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01123/14.5, allocations: 6.325 MB / 4.107 GB, free: 39.06 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001251/14.51, allocations: 0.822 MB / 4.107 GB, free: 38.31 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006292/14.51, allocations: 3.409 MB / 4.111 GB, free: 38.13 MB / 0.7136 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.005614/14.52, allocations: 0.5567 MB / 4.111 GB, free: 37.83 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=449): time 2.147e-05/14.52, allocations: 0 / 4.111 GB, free: 37.83 MB / 0.7136 GB Notification: Performance of matching and sorting (n=449): time 0.01585/14.53, allocations: 9.026 MB / 4.12 GB, free: 37.06 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.972e-05/14.53, allocations: 154.3 kB / 4.12 GB, free: 36.93 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01411/14.55, allocations: 7.198 MB / 4.127 GB, free: 36.44 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 0.001606/14.55, allocations: 111.8 kB / 4.127 GB, free: 36.35 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.005063/14.55, allocations: 4.319 MB / 4.132 GB, free: 33.07 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.002869/14.56, allocations: 1.561 MB / 4.133 GB, free: 31.88 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005135/14.56, allocations: 121.5 kB / 4.133 GB, free: 31.79 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0004335/14.56, allocations: 0.5422 MB / 4.134 GB, free: 31.38 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004495/14.56, allocations: 2.984 MB / 4.137 GB, free: 30.36 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006051/14.57, allocations: 4.861 MB / 4.141 GB, free: 27.02 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007111/14.58, allocations: 4.026 MB / 4.145 GB, free: 25.46 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.26e-05/14.58, allocations: 15.75 kB / 4.145 GB, free: 25.46 MB / 0.7136 GB Notification: Performance of matching and sorting (n=754) (initialization): time 0.01796/14.59, allocations: 8.858 MB / 4.154 GB, free: 22.31 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 0.01178/14.61, allocations: 29.27 MB / 4.183 GB, free: 6.406 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002024/14.61, allocations: 59.53 kB / 4.183 GB, free: 6.406 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001605/14.61, allocations: 98.69 kB / 4.183 GB, free: 6.406 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007254/14.61, allocations: 1.439 MB / 4.184 GB, free: 6.258 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001792/14.61, allocations: 127.8 kB / 4.184 GB, free: 6.23 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01105/14.63, allocations: 0.6294 MB / 4.185 GB, free: 6.043 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001946/14.63, allocations: 286.4 kB / 4.185 GB, free: 5.996 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 2.191e-05/14.63, allocations: 3.781 kB / 4.185 GB, free: 5.996 MB / 0.7292 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02004/14.65, allocations: 8.258 MB / 4.193 GB, free: 2.871 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002964/14.65, allocations: 60.03 kB / 4.193 GB, free: 2.871 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001713/14.65, allocations: 96.69 kB / 4.193 GB, free: 2.871 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007211/14.66, allocations: 1.439 MB / 4.195 GB, free: 2.723 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002421/14.66, allocations: 127.4 kB / 4.195 GB, free: 2.699 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009299/14.66, allocations: 0.5967 MB / 4.196 GB, free: 2.531 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001621/14.67, allocations: 285 kB / 4.196 GB, free: 2.484 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 () * 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.009793/14.68, allocations: 3.595 MB / 4.199 GB, free: 16.23 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003479/14.68, allocations: 0.7141 MB / 4.2 GB, free: 15.5 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01709/14.7, allocations: 7.132 MB / 4.207 GB, free: 9.523 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.514e-05/14.7, allocations: 40 kB / 4.207 GB, free: 9.484 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.041e-05/14.7, allocations: 4 kB / 4.207 GB, free: 9.48 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01115/14.71, allocations: 5.826 MB / 4.213 GB, free: 4.477 MB / 0.7448 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.6636/15.37, allocations: 16.42 MB / 4.229 GB, free: 89.11 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-05/15.37, allocations: 0 / 4.229 GB, free: 89.11 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004816/15.38, allocations: 0.9126 MB / 4.23 GB, free: 89.11 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.775e-05/15.38, allocations: 18.16 kB / 4.23 GB, free: 89.11 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008827/15.38, allocations: 116.8 kB / 4.23 GB, free: 89.11 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-05/15.38, allocations: 15.72 kB / 4.23 GB, free: 89.11 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/15.38, allocations: 3.969 kB / 4.23 GB, free: 89.11 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0191/15.4, allocations: 10.78 MB / 4.24 GB, free: 88.57 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008422/15.41, allocations: 1.755 MB / 4.242 GB, free: 88.48 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004118/15.41, allocations: 97.62 kB / 4.242 GB, free: 88.48 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009042/15.42, allocations: 0.5738 MB / 4.243 GB, free: 88.48 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001391/15.42, allocations: 256.1 kB / 4.243 GB, free: 88.48 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001443/15.42, allocations: 203.6 kB / 4.243 GB, free: 88.48 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.01394/15.44, allocations: 5.626 MB / 4.249 GB, free: 88.26 MB / 0.7448 GB Notification: Performance of sort global known variables: time 7.91e-07/15.44, allocations: 3.078 kB / 4.249 GB, free: 88.26 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.02794/15.46, allocations: 4.936 MB / 4.253 GB, free: 87.96 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) * 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.02535/15.49, allocations: 12.24 MB / 4.265 GB, free: 86.42 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0232/15.51, allocations: 11.46 MB / 4.277 GB, free: 86.08 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 4.462e-05/15.51, allocations: 4.031 kB / 4.277 GB, free: 86.08 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.005645/15.52, allocations: 3.202 MB / 4.28 GB, free: 85.94 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02347/15.54, allocations: 4.381 MB / 4.284 GB, free: 85.91 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2265/15.77, allocations: 115.6 MB / 4.397 GB, free: 13.68 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0103/15.78, allocations: 6.303 MB / 4.403 GB, free: 12.74 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 0.01657/15.79, allocations: 4.369 MB / 4.407 GB, free: 12.41 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009198/15.8, allocations: 3.755 MB / 4.411 GB, free: 12.4 MB / 0.7448 GB Notification: Performance of SimCode: time 2.469e-05/15.8, allocations: 3 kB / 4.411 GB, free: 12.4 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9106/16.71, allocations: 238.1 MB / 4.643 GB, free: 80.79 MB / 0.7605 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001874/16.71, allocations: 198 kB / 4.644 GB, free: 80.55 MB / 0.7605 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.79/27.5, allocations: 3.219 kB / 4.644 GB, free: 80.55 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)