Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_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: translateModel(IDEAS.Fluid.Storage.Examples.Stratified,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.Storage.Examples.Stratified") translateModel(IDEAS.Fluid.Storage.Examples.Stratified,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.Storage.Examples.Stratified") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001332/0.001332, allocations: 177.5 kB / 7.649 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 0.7954/0.7954, allocations: 133.6 MB / 141.6 MB, free: 2.91 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.72/1.72, allocations: 221.5 MB / 395.5 MB, free: 10.77 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.001143/0.001143, allocations: 103.7 kB / 478.2 MB, free: 1.301 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 1.825e-05/1.819e-05, allocations: 4 kB / 0.5535 GB, free: 9.051 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6446/0.6446, allocations: 82.3 MB / 0.6338 GB, free: 40.92 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9854/1.63, allocations: 384.6 MB / 1.009 GB, free: 0.7344 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002906/1.63, allocations: 87.77 kB / 1.01 GB, free: 0.6914 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 12.52/14.15, allocations: 2.961 GB / 3.971 GB, free: 41.31 MB / 0.7136 GB Notification: Performance of FrontEnd: time 2.564e-06/14.15, allocations: 0 / 3.971 GB, free: 41.31 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 0.00208/14.15, allocations: 266.4 kB / 3.971 GB, free: 41.07 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.0328/14.18, allocations: 8.33 MB / 3.979 GB, free: 32.71 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 5.594e-05/14.18, allocations: 12.03 kB / 3.979 GB, free: 32.7 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008949/14.19, allocations: 1.174 MB / 3.98 GB, free: 31.51 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0317/14.22, allocations: 11.06 MB / 3.991 GB, free: 20.57 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006791/14.22, allocations: 272 kB / 3.991 GB, free: 20.3 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004469/14.23, allocations: 488 kB / 3.992 GB, free: 19.82 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0266/14.25, allocations: 8.904 MB / 4 GB, free: 10.91 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04036/14.29, allocations: 10.35 MB / 4.011 GB, free: 184 kB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006302/14.3, allocations: 23.72 kB / 4.011 GB, free: 160 kB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003995/14.3, allocations: 16 kB / 4.011 GB, free: 144 kB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.237/15.54, allocations: 250 kB / 4.011 GB, free: 70.36 MB / 0.7137 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.0882/15.62, allocations: 44.99 MB / 4.055 GB, free: 51.77 MB / 0.7137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01068/15.64, allocations: 5.999 MB / 4.061 GB, free: 51.53 MB / 0.7137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007267/15.64, allocations: 4.644 MB / 4.065 GB, free: 51.48 MB / 0.7137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001204/15.64, allocations: 0.8209 MB / 4.066 GB, free: 50.72 MB / 0.7137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005548/15.65, allocations: 3.174 MB / 4.069 GB, free: 50.56 MB / 0.7137 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.005203/15.66, allocations: 399.7 kB / 4.069 GB, free: 50.44 MB / 0.7137 GB Notification: Performance of pre-optimization done (n=449): time 1.174e-05/15.66, allocations: 3.281 kB / 4.069 GB, free: 50.44 MB / 0.7137 GB Notification: Performance of matching and sorting (n=449): time 0.01261/15.67, allocations: 6.131 MB / 4.075 GB, free: 49.98 MB / 0.7137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.897e-05/15.67, allocations: 156.4 kB / 4.076 GB, free: 49.85 MB / 0.7137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01256/15.68, allocations: 5.923 MB / 4.081 GB, free: 49.48 MB / 0.7137 GB Notification: Performance of collectPreVariables (initialization): time 0.001974/15.68, allocations: 35.98 kB / 4.081 GB, free: 49.45 MB / 0.7137 GB Notification: Performance of collectInitialEqns (initialization): time 0.005364/15.69, allocations: 4.302 MB / 4.086 GB, free: 47.97 MB / 0.7137 GB Notification: Performance of collectInitialBindings (initialization): time 0.00294/15.69, allocations: 1.501 MB / 4.087 GB, free: 46.99 MB / 0.7137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004264/15.69, allocations: 3.688 kB / 4.087 GB, free: 46.99 MB / 0.7137 GB Notification: Performance of setup shared object (initialization): time 0.0004051/15.69, allocations: 0.5449 MB / 4.088 GB, free: 46.68 MB / 0.7137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003937/15.7, allocations: 2.778 MB / 4.09 GB, free: 46.66 MB / 0.7137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005517/15.7, allocations: 4.618 MB / 4.095 GB, free: 44.48 MB / 0.7137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007582/15.71, allocations: 4.067 MB / 4.099 GB, free: 44.43 MB / 0.7137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.868e-05/15.71, allocations: 15.12 kB / 4.099 GB, free: 44.43 MB / 0.7137 GB Notification: Performance of matching and sorting (n=754) (initialization): time 0.01686/15.73, allocations: 8.236 MB / 4.107 GB, free: 43.99 MB / 0.7137 GB Notification: Performance of prepare postOptimizeDAE: time 0.008935/15.73, allocations: 28.13 MB / 4.134 GB, free: 30.83 MB / 0.7293 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002104/15.73, allocations: 61.66 kB / 4.134 GB, free: 30.83 MB / 0.7293 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001502/15.74, allocations: 99.62 kB / 4.134 GB, free: 30.83 MB / 0.7293 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006944/15.74, allocations: 1.444 MB / 4.136 GB, free: 30.83 MB / 0.7293 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001399/15.74, allocations: 127.1 kB / 4.136 GB, free: 30.83 MB / 0.7293 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009638/15.75, allocations: 0.5134 MB / 4.137 GB, free: 30.77 MB / 0.7293 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001868/15.75, allocations: 285.2 kB / 4.137 GB, free: 30.77 MB / 0.7293 GB Notification: Performance of prepare postOptimizeDAE: time 2.203e-05/15.75, allocations: 3.156 kB / 4.137 GB, free: 30.77 MB / 0.7293 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01759/15.77, allocations: 7.605 MB / 4.144 GB, free: 30.68 MB / 0.7293 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001832/15.77, allocations: 58.91 kB / 4.144 GB, free: 30.68 MB / 0.7293 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001034/15.77, allocations: 98.91 kB / 4.144 GB, free: 30.68 MB / 0.7293 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006473/15.78, allocations: 1.44 MB / 4.146 GB, free: 30.68 MB / 0.7293 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002008/15.78, allocations: 127.2 kB / 4.146 GB, free: 30.68 MB / 0.7293 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01116/15.79, allocations: 493.3 kB / 4.146 GB, free: 30.63 MB / 0.7293 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00276/15.79, allocations: 282 kB / 4.147 GB, free: 30.63 MB / 0.7293 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.004623/15.8, allocations: 356.9 kB / 4.147 GB, free: 30.42 MB / 0.7293 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003829/15.8, allocations: 0.6459 MB / 4.148 GB, free: 30.09 MB / 0.7293 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01503/15.82, allocations: 6.778 MB / 4.154 GB, free: 29.86 MB / 0.7293 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.726e-05/15.82, allocations: 41.34 kB / 4.154 GB, free: 29.86 MB / 0.7293 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.399e-05/15.82, allocations: 0 / 4.154 GB, free: 29.86 MB / 0.7293 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008285/15.82, allocations: 5.646 MB / 4.16 GB, free: 29.7 MB / 0.7293 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.03785/15.86, allocations: 15.4 MB / 4.175 GB, free: 28.77 MB / 0.7293 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.417e-05/15.86, allocations: 0 / 4.175 GB, free: 28.77 MB / 0.7293 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003974/15.87, allocations: 0.9116 MB / 4.176 GB, free: 28.77 MB / 0.7293 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.281e-05/15.87, allocations: 14.88 kB / 4.176 GB, free: 28.77 MB / 0.7293 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004023/15.87, allocations: 65.45 kB / 4.176 GB, free: 28.77 MB / 0.7293 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-05/15.87, allocations: 24.14 kB / 4.176 GB, free: 28.77 MB / 0.7293 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/15.87, allocations: 0 / 4.176 GB, free: 28.77 MB / 0.7293 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01516/15.88, allocations: 10.34 MB / 4.186 GB, free: 27.96 MB / 0.7293 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00667/15.89, allocations: 1.673 MB / 4.188 GB, free: 27.53 MB / 0.7293 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003265/15.89, allocations: 22.62 kB / 4.188 GB, free: 27.53 MB / 0.7293 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008139/15.9, allocations: 0.4908 MB / 4.188 GB, free: 27.5 MB / 0.7293 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007548/15.9, allocations: 250.1 kB / 4.188 GB, free: 27.49 MB / 0.7293 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009173/15.9, allocations: 200.9 kB / 4.188 GB, free: 27.49 MB / 0.7293 GB Notification: Performance of sorting global known variables: time 0.01106/15.91, allocations: 4.52 MB / 4.193 GB, free: 27.28 MB / 0.7293 GB Notification: Performance of sort global known variables: time 9.11e-07/15.91, allocations: 0 / 4.193 GB, free: 27.28 MB / 0.7293 GB Notification: Performance of remove unused functions: time 0.02808/15.94, allocations: 4.772 MB / 4.198 GB, free: 26.45 MB / 0.7293 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.00381/15.95, allocations: 0.8588 MB / 4.198 GB, free: 26.29 MB / 0.7293 GB Notification: Performance of simCode: created initialization part: time 0.02209/15.97, allocations: 10.87 MB / 4.209 GB, free: 23.55 MB / 0.7293 GB Notification: Performance of simCode: created event and clocks part: time 1.78e-05/15.97, allocations: 4.625 kB / 4.209 GB, free: 23.55 MB / 0.7293 GB Notification: Performance of simCode: created simulation system equations: time 0.005819/15.97, allocations: 3.029 MB / 4.212 GB, free: 22.36 MB / 0.7293 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02223/16, allocations: 3.475 MB / 4.215 GB, free: 21.82 MB / 0.7293 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04453/16.04, allocations: 16.25 MB / 4.231 GB, free: 16.15 MB / 0.7293 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01341/16.05, allocations: 6.312 MB / 4.237 GB, free: 12.04 MB / 0.7293 GB Notification: Performance of simCode: alias equations: time 0.02599/16.08, allocations: 5.946 MB / 4.243 GB, free: 8.336 MB / 0.7293 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003747/16.08, allocations: 471.5 kB / 4.244 GB, free: 7.91 MB / 0.7293 GB Notification: Performance of SimCode: time 1.904e-06/16.08, allocations: 0 / 4.244 GB, free: 7.91 MB / 0.7293 GB Notification: Performance of Templates: time 0.85/16.93, allocations: 131.3 MB / 4.372 GB, free: 87.89 MB / 0.7449 GB make -j1 -f IDEAS_dev_IDEAS.Fluid.Storage.Examples.Stratified.makefile (rm -f IDEAS_dev_IDEAS.Fluid.Storage.Examples.Stratified.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Storage.Examples.Stratified.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Storage.Examples.Stratified.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Storage.Examples.Stratified.sim & ./IDEAS_dev_IDEAS.Fluid.Storage.Examples.Stratified -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Fluid.Storage.Examples.Stratified.pipe 2>&1)