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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/Modelica 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) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000886/0.0008861, allocations: 91.61 kB / 15.06 MB, free: 1.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001/0.001001, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.429/1.429, allocations: 223.3 MB / 240 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.006/1.006, allocations: 135.3 MB / 426.4 MB, free: 14.05 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005274/0.0005276, allocations: 8 kB / 0.507 GB, free: 5.145 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1708/0.1714, allocations: 82.31 MB / 0.5874 GB, free: 3.008 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Storage.Examples.Stratified): time 0.3579/0.5294, allocations: 51.73 MB / 0.6379 GB, free: 23.55 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.02147/0.5509, allocations: 16.35 MB / 0.6538 GB, free: 11.88 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003635/0.5546, allocations: 68.81 kB / 0.6539 GB, free: 11.86 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.00254/0.5571, allocations: 0.6914 MB / 0.6546 GB, free: 11.51 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.006306/0.5635, allocations: 1.963 MB / 0.6565 GB, free: 10.39 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.003882/0.5674, allocations: 1.311 MB / 0.6578 GB, free: 9.781 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.03619/0.6036, allocations: 32.46 MB / 0.6895 GB, free: 12.72 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01909/0.6227, allocations: 10.06 MB / 0.6993 GB, free: 7.703 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01854/0.6413, allocations: 7.232 MB / 0.7064 GB, free: 2.824 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01582/0.6571, allocations: 7.566 MB / 0.7138 GB, free: 11.23 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.002881/0.6601, allocations: 472 kB / 0.7142 GB, free: 10.77 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008941/0.669, allocations: 1.346 MB / 0.7155 GB, free: 9.418 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.004994/0.674, allocations: 2.101 MB / 0.7176 GB, free: 7.309 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.007173/0.6812, allocations: 2.227 MB / 0.7198 GB, free: 5.07 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.01889/0.7001, allocations: 14.46 MB / 0.7339 GB, free: 6.574 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 8.697e-06/0.7002, allocations: 0 / 0.7339 GB, free: 6.574 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.775e-06/0.7002, allocations: 0 / 0.7339 GB, free: 6.574 MB / 0.545 GB Notification: Performance of Transformations before backend: time 0.0007149/0.7009, allocations: 0 / 0.7339 GB, free: 6.574 MB / 0.545 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.02387/0.7248, allocations: 9.572 MB / 0.7432 GB, free: 12.9 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.656e-05/0.7249, allocations: 8.031 kB / 0.7432 GB, free: 12.89 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0064/0.7313, allocations: 1.186 MB / 0.7444 GB, free: 11.69 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02023/0.7515, allocations: 8.978 MB / 0.7532 GB, free: 2.641 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001088/0.7527, allocations: 0.6179 MB / 0.7538 GB, free: 2.02 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00484/0.7576, allocations: 0.8162 MB / 0.7546 GB, free: 1.203 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03714/0.7947, allocations: 12.46 MB / 0.7667 GB, free: 4.359 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004591/0.7952, allocations: 27.72 kB / 0.7667 GB, free: 4.332 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002611/0.7979, allocations: 360 kB / 0.7671 GB, free: 3.98 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002806/0.7982, allocations: 247.9 kB / 0.7673 GB, free: 3.738 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02537/0.8235, allocations: 10.36 MB / 0.7774 GB, free: 9.367 MB / 0.5919 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.08453/0.9081, allocations: 48.86 MB / 0.8252 GB, free: 5.777 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01042/0.9186, allocations: 6.246 MB / 0.8313 GB, free: 15.52 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008715/0.9273, allocations: 5.067 MB / 0.8362 GB, free: 10.44 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001738/0.9291, allocations: 0.8516 MB / 0.837 GB, free: 9.438 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.009305/0.9384, allocations: 3.412 MB / 0.8404 GB, free: 5.992 MB / 0.6544 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.005979/0.9445, allocations: 0.4984 MB / 0.8409 GB, free: 5.488 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=449): time 1.873e-05/0.9445, allocations: 0 / 0.8409 GB, free: 5.488 MB / 0.6544 GB Notification: Performance of matching and sorting (n=449): time 0.02162/0.9662, allocations: 8.861 MB / 0.8495 GB, free: 12.6 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001362/0.9663, allocations: 158.2 kB / 0.8497 GB, free: 12.42 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01796/0.9843, allocations: 7.366 MB / 0.8569 GB, free: 5.078 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 0.001463/0.9858, allocations: 109.7 kB / 0.857 GB, free: 4.965 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.006043/0.9919, allocations: 4.326 MB / 0.8612 GB, free: 0.5977 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.728/1.72, allocations: 1.552 MB / 0.8627 GB, free: 193.4 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006052/1.721, allocations: 119.3 kB / 0.8628 GB, free: 193.4 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0004623/1.721, allocations: 0.5431 MB / 0.8633 GB, free: 193.1 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00508/1.726, allocations: 2.989 MB / 0.8663 GB, free: 193.1 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00538/1.732, allocations: 4.874 MB / 0.871 GB, free: 190.9 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00619/1.738, allocations: 4.036 MB / 0.875 GB, free: 189.8 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.061e-05/1.738, allocations: 15.28 kB / 0.875 GB, free: 189.8 MB / 0.67 GB Notification: Performance of matching and sorting (n=754) (initialization): time 0.01506/1.753, allocations: 8.839 MB / 0.8836 GB, free: 186.6 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 0.001089/1.754, allocations: 1.897 MB / 0.8855 GB, free: 184.1 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.516e-05/1.754, allocations: 60.16 kB / 0.8855 GB, free: 184.1 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001132/1.754, allocations: 99.25 kB / 0.8856 GB, free: 184.1 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004921/1.759, allocations: 1.365 MB / 0.8869 GB, free: 184 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001089/1.759, allocations: 125.6 kB / 0.8871 GB, free: 183.9 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00738/1.767, allocations: 0.6211 MB / 0.8877 GB, free: 183.8 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009514/1.768, allocations: 282.2 kB / 0.8879 GB, free: 183.7 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 1.46e-05/1.768, allocations: 6.672 kB / 0.8879 GB, free: 183.7 MB / 0.67 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01498/1.783, allocations: 8.243 MB / 0.896 GB, free: 180.6 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001851/1.783, allocations: 61.34 kB / 0.8961 GB, free: 180.6 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001693/1.783, allocations: 97.38 kB / 0.8961 GB, free: 180.6 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00586/1.789, allocations: 1.361 MB / 0.8975 GB, free: 180.5 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000341/1.789, allocations: 126.7 kB / 0.8976 GB, free: 180.4 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01021/1.8, allocations: 0.599 MB / 0.8982 GB, free: 180.3 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001771/1.801, allocations: 279.9 kB / 0.8985 GB, free: 180.2 MB / 0.67 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.01173/1.813, allocations: 3.59 MB / 0.902 GB, free: 178.7 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00497/1.818, allocations: 0.7191 MB / 0.9027 GB, free: 178.3 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02577/1.844, allocations: 7.111 MB / 0.9096 GB, free: 175.6 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.945e-05/1.844, allocations: 42.23 kB / 0.9096 GB, free: 175.6 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.317e-05/1.844, allocations: 5.984 kB / 0.9096 GB, free: 175.6 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0163/1.86, allocations: 5.811 MB / 0.9153 GB, free: 173.5 MB / 0.67 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.04515/1.906, allocations: 16.52 MB / 0.9315 GB, free: 167.2 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.757e-05/1.906, allocations: 1.25 kB / 0.9315 GB, free: 167.2 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004081/1.91, allocations: 0.9424 MB / 0.9324 GB, free: 167.1 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.625e-05/1.91, allocations: 14.25 kB / 0.9324 GB, free: 167.1 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000809/1.911, allocations: 120.7 kB / 0.9325 GB, free: 167.1 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.532e-05/1.911, allocations: 15.03 kB / 0.9325 GB, free: 167.1 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.887e-06/1.911, allocations: 5.625 kB / 0.9325 GB, free: 167.1 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01713/1.928, allocations: 10.54 MB / 0.9428 GB, free: 162.5 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005786/1.934, allocations: 1.682 MB / 0.9445 GB, free: 161.1 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002686/1.936, allocations: 91.7 kB / 0.9445 GB, free: 161 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00713/1.944, allocations: 0.6337 MB / 0.9452 GB, free: 160.5 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009601/1.945, allocations: 258.3 kB / 0.9454 GB, free: 160.4 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001042/1.946, allocations: 200.2 kB / 0.9456 GB, free: 160.2 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.01128/1.957, allocations: 5.141 MB / 0.9506 GB, free: 156 MB / 0.67 GB Notification: Performance of sort global known variables: time 1.573e-06/1.957, allocations: 0 / 0.9506 GB, free: 156 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.02033/1.977, allocations: 4.812 MB / 0.9553 GB, free: 151.2 MB / 0.67 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.002371/1.98, allocations: 0.5602 MB / 0.9559 GB, free: 150.7 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.01998/2, allocations: 11.42 MB / 0.967 GB, free: 139.3 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 1.468e-05/2, allocations: 4.562 kB / 0.967 GB, free: 139.3 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.005573/2.005, allocations: 3.186 MB / 0.9701 GB, free: 136.1 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0261/2.031, allocations: 4.465 MB / 0.9745 GB, free: 131.8 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04444/2.076, allocations: 22.7 MB / 0.9967 GB, free: 109 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01394/2.09, allocations: 6.141 MB / 1.003 GB, free: 102.8 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.01794/2.108, allocations: 4.251 MB / 1.007 GB, free: 98.57 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004476/2.112, allocations: 0.6086 MB / 1.007 GB, free: 97.96 MB / 0.67 GB Notification: Performance of SimCode: time 1.964e-06/2.112, allocations: 0 / 1.007 GB, free: 97.96 MB / 0.67 GB Notification: Performance of Templates: time 0.6354/2.748, allocations: 153.7 MB / 1.158 GB, free: 150.4 MB / 0.6857 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)