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/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/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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_IDEAS.Fluid.Storage.Examples.Stratified") translateModel(IDEAS.Fluid.Storage.Examples.Stratified,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_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.0009227/0.0009228, allocations: 86.25 kB / 15.06 MB, free: 1.09 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.001131/0.001131, allocations: 168.7 kB / 15.95 MB, free: 204 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.304/1.304, allocations: 223.3 MB / 240 MB, free: 5.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7413/0.7413, allocations: 132.4 MB / 423.4 MB, free: 2.051 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002835/0.0002836, allocations: 8 kB / 0.5034 GB, free: 4.281 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.343/0.3433, allocations: 81.57 MB / 0.5831 GB, free: 3.996 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Storage.Examples.Stratified): time 0.04799/0.3913, allocations: 51.74 MB / 0.6336 GB, free: 12.64 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.02028/0.4117, allocations: 16.36 MB / 0.6496 GB, free: 12.36 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001708/0.4134, allocations: 63.62 kB / 0.6496 GB, free: 12.3 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001651/0.415, allocations: 0.6872 MB / 0.6503 GB, free: 11.61 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004176/0.4192, allocations: 1.965 MB / 0.6522 GB, free: 9.633 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003228/0.4225, allocations: 1.319 MB / 0.6535 GB, free: 8.328 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.02704/0.4495, allocations: 32.47 MB / 0.6852 GB, free: 7.762 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01211/0.4617, allocations: 10.06 MB / 0.695 GB, free: 13.62 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01154/0.4732, allocations: 7.23 MB / 0.7021 GB, free: 6.367 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01103/0.4843, allocations: 7.566 MB / 0.7095 GB, free: 14.77 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.001222/0.4855, allocations: 472 kB / 0.7099 GB, free: 14.3 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004415/0.4899, allocations: 1.346 MB / 0.7113 GB, free: 12.96 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.002018/0.492, allocations: 2.101 MB / 0.7133 GB, free: 10.85 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.003039/0.495, allocations: 2.227 MB / 0.7155 GB, free: 8.609 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.01398/0.509, allocations: 14.45 MB / 0.7296 GB, free: 10.12 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/0.5091, allocations: 0 / 0.7296 GB, free: 10.12 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.754e-06/0.5091, allocations: 3.938 kB / 0.7296 GB, free: 10.12 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 0.000418/0.5095, allocations: 0 / 0.7296 GB, free: 10.12 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.01717/0.5267, allocations: 9.573 MB / 0.7389 GB, free: 448 kB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.675e-05/0.5267, allocations: 8.031 kB / 0.739 GB, free: 440 kB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003492/0.5302, allocations: 1.19 MB / 0.7401 GB, free: 15.22 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01428/0.5445, allocations: 8.972 MB / 0.7489 GB, free: 6.18 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004078/0.5449, allocations: 0.6138 MB / 0.7495 GB, free: 5.566 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001247/0.5462, allocations: 0.8162 MB / 0.7503 GB, free: 4.75 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02015/0.5663, allocations: 12.46 MB / 0.7624 GB, free: 7.895 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001643/0.5665, allocations: 23.72 kB / 0.7625 GB, free: 7.871 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008979/0.5674, allocations: 360 kB / 0.7628 GB, free: 7.52 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002159/0.5677, allocations: 251.9 kB / 0.7631 GB, free: 7.273 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0177/0.5854, allocations: 10.36 MB / 0.7732 GB, free: 12.91 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.56/1.145, allocations: 48.86 MB / 0.8209 GB, free: 178.3 MB / 0.6388 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008658/1.154, allocations: 6.233 MB / 0.827 GB, free: 178 MB / 0.6388 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00623/1.16, allocations: 5.06 MB / 0.8319 GB, free: 176.4 MB / 0.6388 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001035/1.161, allocations: 0.844 MB / 0.8327 GB, free: 175.6 MB / 0.6388 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004621/1.166, allocations: 3.413 MB / 0.8361 GB, free: 174.4 MB / 0.6388 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003158/1.169, allocations: 0.5014 MB / 0.8366 GB, free: 174.3 MB / 0.6388 GB Notification: Performance of pre-optimization done (n=449): time 7.644e-06/1.169, allocations: 0.75 kB / 0.8366 GB, free: 174.3 MB / 0.6388 GB Notification: Performance of matching and sorting (n=449): time 0.01188/1.181, allocations: 8.861 MB / 0.8452 GB, free: 171.4 MB / 0.6388 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.655e-05/1.181, allocations: 155.4 kB / 0.8454 GB, free: 171.3 MB / 0.6388 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007578/1.189, allocations: 7.37 MB / 0.8526 GB, free: 167.7 MB / 0.6388 GB Notification: Performance of collectPreVariables (initialization): time 0.0003767/1.189, allocations: 115.7 kB / 0.8527 GB, free: 167.6 MB / 0.6388 GB Notification: Performance of collectInitialEqns (initialization): time 0.00294/1.192, allocations: 4.323 MB / 0.8569 GB, free: 163.9 MB / 0.6388 GB Notification: Performance of collectInitialBindings (initialization): time 0.001366/1.193, allocations: 1.559 MB / 0.8584 GB, free: 162.6 MB / 0.6388 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002877/1.194, allocations: 117.9 kB / 0.8585 GB, free: 162.5 MB / 0.6388 GB Notification: Performance of setup shared object (initialization): time 0.0001985/1.194, allocations: 0.545 MB / 0.8591 GB, free: 162 MB / 0.6388 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004051/1.198, allocations: 2.988 MB / 0.862 GB, free: 160.5 MB / 0.6388 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004055/1.202, allocations: 4.879 MB / 0.8667 GB, free: 156.5 MB / 0.6388 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004698/1.207, allocations: 4.029 MB / 0.8707 GB, free: 153.3 MB / 0.6388 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.999e-05/1.207, allocations: 20 kB / 0.8707 GB, free: 153.3 MB / 0.6388 GB Notification: Performance of matching and sorting (n=754) (initialization): time 0.01134/1.218, allocations: 8.833 MB / 0.8793 GB, free: 144.5 MB / 0.6388 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006025/1.219, allocations: 1.901 MB / 0.8812 GB, free: 141.8 MB / 0.6388 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.564e-05/1.219, allocations: 56 kB / 0.8812 GB, free: 141.7 MB / 0.6388 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.458e-05/1.219, allocations: 96 kB / 0.8813 GB, free: 141.6 MB / 0.6388 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004452/1.223, allocations: 1.361 MB / 0.8827 GB, free: 140.3 MB / 0.6388 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.964e-05/1.224, allocations: 131.2 kB / 0.8828 GB, free: 140.2 MB / 0.6388 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005811/1.229, allocations: 0.6192 MB / 0.8834 GB, free: 139.5 MB / 0.6388 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004516/1.23, allocations: 280 kB / 0.8836 GB, free: 139.3 MB / 0.6388 GB Notification: Performance of prepare postOptimizeDAE: time 9.468e-06/1.23, allocations: 4.656 kB / 0.8837 GB, free: 139.3 MB / 0.6388 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01003/1.24, allocations: 8.251 MB / 0.8917 GB, free: 131 MB / 0.6388 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.182e-05/1.24, allocations: 60 kB / 0.8918 GB, free: 130.9 MB / 0.6388 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.317e-05/1.24, allocations: 96 kB / 0.8919 GB, free: 130.8 MB / 0.6388 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004366/1.244, allocations: 1.361 MB / 0.8932 GB, free: 129.5 MB / 0.6388 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.866e-05/1.244, allocations: 127.6 kB / 0.8933 GB, free: 129.4 MB / 0.6388 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0054/1.25, allocations: 0.6076 MB / 0.8939 GB, free: 128.8 MB / 0.6388 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003742/1.25, allocations: 279.8 kB / 0.8942 GB, free: 128.5 MB / 0.6388 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.004738/1.255, allocations: 3.587 MB / 0.8977 GB, free: 124.9 MB / 0.6388 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001406/1.256, allocations: 0.7179 MB / 0.8984 GB, free: 124.1 MB / 0.6388 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009456/1.266, allocations: 7.113 MB / 0.9053 GB, free: 117 MB / 0.6388 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.651e-05/1.266, allocations: 51.89 kB / 0.9054 GB, free: 117 MB / 0.6388 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.065e-05/1.266, allocations: 0 / 0.9054 GB, free: 117 MB / 0.6388 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006669/1.273, allocations: 5.809 MB / 0.911 GB, free: 111.1 MB / 0.6388 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.02166/1.294, allocations: 16.53 MB / 0.9272 GB, free: 94.54 MB / 0.6388 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.12e-05/1.294, allocations: 0 / 0.9272 GB, free: 94.54 MB / 0.6388 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003447/1.298, allocations: 0.9402 MB / 0.9281 GB, free: 93.59 MB / 0.6388 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-05/1.298, allocations: 19.95 kB / 0.9281 GB, free: 93.57 MB / 0.6388 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002538/1.298, allocations: 115.9 kB / 0.9282 GB, free: 93.46 MB / 0.6388 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.588e-05/1.298, allocations: 20 kB / 0.9283 GB, free: 93.44 MB / 0.6388 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/1.298, allocations: 0 / 0.9283 GB, free: 93.44 MB / 0.6388 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01174/1.31, allocations: 10.54 MB / 0.9385 GB, free: 82.84 MB / 0.6388 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003564/1.313, allocations: 1.683 MB / 0.9402 GB, free: 81.13 MB / 0.6388 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000972/1.314, allocations: 95.94 kB / 0.9403 GB, free: 81.04 MB / 0.6388 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004164/1.319, allocations: 0.6328 MB / 0.9409 GB, free: 80.41 MB / 0.6388 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003705/1.319, allocations: 251.1 kB / 0.9411 GB, free: 80.16 MB / 0.6388 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003325/1.319, allocations: 199.8 kB / 0.9413 GB, free: 79.96 MB / 0.6388 GB Notification: Performance of sorting global known variables: time 0.005842/1.325, allocations: 5.14 MB / 0.9463 GB, free: 74.86 MB / 0.6388 GB Notification: Performance of sort global known variables: time 2.01e-07/1.325, allocations: 4 kB / 0.9464 GB, free: 74.85 MB / 0.6388 GB Notification: Performance of remove unused functions: time 0.01017/1.335, allocations: 4.807 MB / 0.951 GB, free: 70.05 MB / 0.6388 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.001161/1.337, allocations: 0.5616 MB / 0.9516 GB, free: 69.55 MB / 0.6388 GB Notification: Performance of simCode: created initialization part: time 0.01292/1.349, allocations: 11.42 MB / 0.9627 GB, free: 58.11 MB / 0.6388 GB Notification: Performance of simCode: created event and clocks part: time 8.156e-06/1.35, allocations: 4.562 kB / 0.9628 GB, free: 58.1 MB / 0.6388 GB Notification: Performance of simCode: created simulation system equations: time 0.003408/1.353, allocations: 3.188 MB / 0.9659 GB, free: 54.89 MB / 0.6388 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.018/1.371, allocations: 4.473 MB / 0.9702 GB, free: 50.54 MB / 0.6388 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02672/1.398, allocations: 22.69 MB / 0.9924 GB, free: 27.8 MB / 0.6388 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004212/1.402, allocations: 6.137 MB / 0.9984 GB, free: 21.63 MB / 0.6388 GB Notification: Performance of simCode: alias equations: time 0.01075/1.413, allocations: 4.25 MB / 1.003 GB, free: 17.37 MB / 0.6388 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001673/1.414, allocations: 0.6125 MB / 1.003 GB, free: 16.76 MB / 0.6388 GB Notification: Performance of SimCode: time 8.91e-07/1.414, allocations: 0 / 1.003 GB, free: 16.76 MB / 0.6388 GB Notification: Performance of Templates: time 0.4765/1.891, allocations: 153.7 MB / 1.153 GB, free: 189.5 MB / 0.7013 GB make -j1 -f IDEAS_IDEAS.Fluid.Storage.Examples.Stratified.makefile (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 & ./IDEAS_IDEAS.Fluid.Storage.Examples.Stratified -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Fluid.Storage.Examples.Stratified.pipe 2>&1)