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.0008476/0.0008476, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.00577/0.00577, allocations: 168.9 kB / 16.26 MB, free: 6.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.406/1.406, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9485/0.9485, allocations: 135.3 MB / 426.7 MB, free: 14.33 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003047/0.0003047, allocations: 8 kB / 0.5076 GB, free: 4.777 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1733/0.1736, allocations: 82.31 MB / 0.588 GB, free: 2.645 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Storage.Examples.Stratified): time 0.3545/0.5281, allocations: 54.72 MB / 0.6414 GB, free: 20.86 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.01941/0.5476, allocations: 17.31 MB / 0.6583 GB, free: 8.461 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003489/0.5511, allocations: 65.62 kB / 0.6584 GB, free: 8.438 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.002398/0.5535, allocations: 0.788 MB / 0.6591 GB, free: 8.004 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.006225/0.5598, allocations: 2.266 MB / 0.6614 GB, free: 6.68 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.003968/0.5638, allocations: 1.614 MB / 0.6629 GB, free: 5.77 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.03807/0.6018, allocations: 38.25 MB / 0.7003 GB, free: 7.16 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01757/0.6195, allocations: 11.45 MB / 0.7115 GB, free: 13.81 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01597/0.6355, allocations: 7.119 MB / 0.7184 GB, free: 6.66 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01445/0.65, allocations: 7.985 MB / 0.7262 GB, free: 14.64 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.002362/0.6523, allocations: 472 kB / 0.7267 GB, free: 14.18 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008495/0.6609, allocations: 1.552 MB / 0.7282 GB, free: 12.62 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.004625/0.6655, allocations: 2.194 MB / 0.7303 GB, free: 10.42 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.01572/0.6813, allocations: 5.366 MB / 0.7356 GB, free: 5.02 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.02689/0.7082, allocations: 17.15 MB / 0.7523 GB, free: 3.82 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.7082, allocations: 3.938 kB / 0.7523 GB, free: 3.816 MB / 0.5606 GB Notification: Performance of FrontEnd: time 2.915e-06/0.7082, allocations: 0 / 0.7523 GB, free: 3.816 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 0.0006528/0.7089, allocations: 0 / 0.7523 GB, free: 3.816 MB / 0.5606 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.0231/0.732, allocations: 9.469 MB / 0.7616 GB, free: 10.24 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.009e-05/0.7321, allocations: 8.031 kB / 0.7616 GB, free: 10.23 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005479/0.7376, allocations: 1.187 MB / 0.7627 GB, free: 9.031 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02172/0.7593, allocations: 9.211 MB / 0.7717 GB, free: 15.74 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001038/0.7604, allocations: 0.61 MB / 0.7723 GB, free: 15.13 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004963/0.7654, allocations: 0.8123 MB / 0.7731 GB, free: 14.32 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0335/0.7989, allocations: 12.53 MB / 0.7854 GB, free: 1.402 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000384/0.7993, allocations: 23.81 kB / 0.7854 GB, free: 1.379 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002283/0.8016, allocations: 360 kB / 0.7857 GB, free: 1.027 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002796/0.8019, allocations: 247.9 kB / 0.786 GB, free: 0.7852 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0227/0.8246, allocations: 10.42 MB / 0.7961 GB, free: 6.355 MB / 0.6075 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.08335/0.908, allocations: 48.89 MB / 0.8439 GB, free: 2.75 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01177/0.9198, allocations: 6.27 MB / 0.85 GB, free: 12.46 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.009051/0.9289, allocations: 4.966 MB / 0.8548 GB, free: 7.488 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001601/0.9306, allocations: 0.8555 MB / 0.8557 GB, free: 6.484 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007546/0.9381, allocations: 3.428 MB / 0.859 GB, free: 3.02 MB / 0.67 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.004595/0.9428, allocations: 0.5062 MB / 0.8595 GB, free: 2.508 MB / 0.67 GB Notification: Performance of pre-optimization done (n=449): time 1.405e-05/0.9428, allocations: 0 / 0.8595 GB, free: 2.508 MB / 0.67 GB Notification: Performance of matching and sorting (n=449): time 0.3593/1.302, allocations: 8.881 MB / 0.8682 GB, free: 195.3 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.969e-05/1.302, allocations: 158.1 kB / 0.8683 GB, free: 195.2 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01407/1.316, allocations: 7.423 MB / 0.8756 GB, free: 193.2 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 0.001386/1.318, allocations: 117.9 kB / 0.8757 GB, free: 193.1 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.004565/1.322, allocations: 4.326 MB / 0.8799 GB, free: 190.4 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.002496/1.325, allocations: 1.565 MB / 0.8815 GB, free: 189.2 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007922/1.326, allocations: 480.5 kB / 0.8819 GB, free: 189 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 6.649e-05/1.326, allocations: 303.8 kB / 0.8822 GB, free: 188.7 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004352/1.33, allocations: 3.011 MB / 0.8851 GB, free: 187.7 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005251/1.335, allocations: 4.901 MB / 0.8899 GB, free: 184.4 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01771/1.353, allocations: 8.6 MB / 0.8983 GB, free: 179.4 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.035e-05/1.353, allocations: 16.59 kB / 0.8983 GB, free: 179.4 MB / 0.67 GB Notification: Performance of matching and sorting (n=754) (initialization): time 0.01876/1.372, allocations: 8.891 MB / 0.907 GB, free: 176 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 0.001097/1.373, allocations: 1.905 MB / 0.9089 GB, free: 173.4 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.448e-05/1.373, allocations: 59.94 kB / 0.9089 GB, free: 173.4 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001494/1.373, allocations: 89.88 kB / 0.909 GB, free: 173.4 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005922/1.379, allocations: 1.362 MB / 0.9104 GB, free: 173.3 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001729/1.38, allocations: 123.7 kB / 0.9105 GB, free: 173.3 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009123/1.389, allocations: 0.6175 MB / 0.9111 GB, free: 173.1 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001245/1.39, allocations: 280.8 kB / 0.9113 GB, free: 173 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 1.941e-05/1.39, allocations: 6.812 kB / 0.9114 GB, free: 173 MB / 0.67 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0164/1.406, allocations: 8.292 MB / 0.9195 GB, free: 169.9 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001732/1.407, allocations: 58.31 kB / 0.9195 GB, free: 169.9 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001399/1.407, allocations: 93.5 kB / 0.9196 GB, free: 169.9 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00593/1.413, allocations: 1.361 MB / 0.9209 GB, free: 169.8 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002148/1.413, allocations: 130.4 kB / 0.9211 GB, free: 169.7 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00995/1.423, allocations: 0.5964 MB / 0.9216 GB, free: 169.6 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001885/1.425, allocations: 280.5 kB / 0.9219 GB, free: 169.5 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 (P.nextEventScaled,P.nextEvent,$PRE.P.nextEvent,P.last,P.b,P.a,TWat.nextEventScaled,TWat.nextEvent,$PRE.TWat.nextEvent,TWat.last,TWat.b,TWat.a,$whenCondition2,$whenCondition1,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01006/1.435, allocations: 3.583 MB / 0.9254 GB, free: 168 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00336/1.438, allocations: 0.7177 MB / 0.9261 GB, free: 167.6 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01792/1.456, allocations: 7.134 MB / 0.9331 GB, free: 164.9 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.263e-05/1.456, allocations: 41.56 kB / 0.9331 GB, free: 164.9 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.241e-05/1.456, allocations: 0 / 0.9331 GB, free: 164.9 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01115/1.468, allocations: 5.853 MB / 0.9388 GB, free: 162.8 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.03105/1.499, allocations: 16.55 MB / 0.955 GB, free: 153.8 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.625e-05/1.499, allocations: 0 / 0.955 GB, free: 153.8 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003647/1.502, allocations: 0.9403 MB / 0.9559 GB, free: 152.8 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.49e-05/1.502, allocations: 16 kB / 0.9559 GB, free: 152.8 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003146/1.503, allocations: 125.8 kB / 0.956 GB, free: 152.7 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.501e-05/1.503, allocations: 16 kB / 0.9561 GB, free: 152.7 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/1.503, allocations: 0 / 0.9561 GB, free: 152.7 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01298/1.516, allocations: 10.58 MB / 0.9664 GB, free: 142 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00533/1.521, allocations: 1.679 MB / 0.968 GB, free: 140.3 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002213/1.523, allocations: 91.98 kB / 0.9681 GB, free: 140.2 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007705/1.531, allocations: 0.631 MB / 0.9687 GB, free: 139.6 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007761/1.532, allocations: 262.8 kB / 0.969 GB, free: 139.4 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007839/1.533, allocations: 199.8 kB / 0.9692 GB, free: 139.2 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.01054/1.543, allocations: 5.194 MB / 0.9742 GB, free: 134 MB / 0.67 GB Notification: Performance of sort global known variables: time 1.001e-06/1.543, allocations: 4 kB / 0.9742 GB, free: 134 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.0178/1.561, allocations: 4.812 MB / 0.9789 GB, free: 129.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002353/1.564, allocations: 0.574 MB / 0.9795 GB, free: 128.7 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.01946/1.583, allocations: 11.48 MB / 0.9907 GB, free: 117.2 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 1.457e-05/1.583, allocations: 4.562 kB / 0.9907 GB, free: 117.2 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.005159/1.588, allocations: 3.204 MB / 0.9938 GB, free: 113.9 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02865/1.617, allocations: 4.482 MB / 0.9982 GB, free: 109.6 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0424/1.659, allocations: 23.45 MB / 1.021 GB, free: 86.13 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006583/1.666, allocations: 6.134 MB / 1.027 GB, free: 79.96 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.01339/1.679, allocations: 4.251 MB / 1.031 GB, free: 75.7 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002941/1.682, allocations: 0.6086 MB / 1.032 GB, free: 75.09 MB / 0.67 GB Notification: Performance of SimCode: time 9.71e-07/1.682, allocations: 0 / 1.032 GB, free: 75.09 MB / 0.67 GB Notification: Performance of Templates: time 0.6422/2.325, allocations: 157.7 MB / 1.186 GB, free: 162.9 MB / 0.6856 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)