Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001709/0.001709, allocations: 188.5 kB / 8.353 MB, free: 0.707 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.411/1.411, allocations: 194.3 MB / 203.1 MB, free: 9.32 MB / 171.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001731/0.001731, allocations: 111.2 kB / 248.1 MB, free: 6.348 MB / 203.1 MB Notification: Performance of FrontEnd - loaded program: time 1.466e-05/1.468e-05, allocations: 4 kB / 298.1 MB, free: 8.242 MB / 251.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08841/0.08843, allocations: 44.49 MB / 342.6 MB, free: 11.65 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7113/0.7998, allocations: 318.6 MB / 0.6457 GB, free: 9.41 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002544/0.8001, allocations: 87.11 kB / 0.6458 GB, free: 9.367 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.8115/1.612, allocations: 188.9 MB / 0.8303 GB, free: 63.38 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.314e-06/1.612, allocations: 0 / 0.8303 GB, free: 63.38 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0001578/1.612, allocations: 19.09 kB / 0.8303 GB, free: 63.38 MB / 395.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 164 * Number of variables: 164 Notification: Performance of Generate backend data structure: time 0.005298/1.617, allocations: 1.296 MB / 0.8316 GB, free: 62.82 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.778e-05/1.617, allocations: 8.469 kB / 0.8316 GB, free: 62.82 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001054/1.618, allocations: 111.2 kB / 0.8317 GB, free: 62.78 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002284/1.621, allocations: 0.7785 MB / 0.8325 GB, free: 62.52 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.001e-05/1.621, allocations: 19.03 kB / 0.8325 GB, free: 62.52 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002788/1.621, allocations: 38.03 kB / 0.8325 GB, free: 62.52 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001719/1.623, allocations: 0.8889 MB / 0.8334 GB, free: 62.52 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001793/1.625, allocations: 0.9457 MB / 0.8343 GB, free: 62.34 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.822e-05/1.625, allocations: 4.469 kB / 0.8343 GB, free: 62.34 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001274/1.625, allocations: 3.281 kB / 0.8343 GB, free: 62.34 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001149/1.625, allocations: 71.83 kB / 0.8344 GB, free: 62.33 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006448/1.631, allocations: 4.264 MB / 0.8386 GB, free: 60.18 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008297/1.632, allocations: 0.5115 MB / 0.8391 GB, free: 60.16 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003747/1.633, allocations: 291 kB / 0.8393 GB, free: 60.15 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00223/1.635, allocations: 1.958 MB / 0.8413 GB, free: 58.91 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.706e-05/1.635, allocations: 42.27 kB / 0.8413 GB, free: 58.87 MB / 395.1 MB Notification: Performance of pre-optimization done (n=40): time 1.914e-06/1.635, allocations: 2.938 kB / 0.8413 GB, free: 58.87 MB / 395.1 MB Notification: Performance of matching and sorting (n=45): time 0.005226/1.64, allocations: 1.721 MB / 0.843 GB, free: 58.44 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.26e-05/1.64, allocations: 161.3 kB / 0.8431 GB, free: 58.25 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007239/1.641, allocations: 0.6145 MB / 0.8437 GB, free: 58.12 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 5.06e-05/1.641, allocations: 29.66 kB / 0.8438 GB, free: 58.09 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003028/1.641, allocations: 0.4942 MB / 0.8442 GB, free: 57.87 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001268/1.641, allocations: 161.1 kB / 0.8444 GB, free: 57.79 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.21e-05/1.641, allocations: 0 / 0.8444 GB, free: 57.79 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001049/1.642, allocations: 389 kB / 0.8448 GB, free: 57.48 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004218/1.642, allocations: 288.7 kB / 0.845 GB, free: 57.48 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005354/1.642, allocations: 0.6374 MB / 0.8457 GB, free: 57.04 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006102/1.649, allocations: 1.368 MB / 0.847 GB, free: 57.03 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.225e-05/1.649, allocations: 4.062 kB / 0.847 GB, free: 57.03 MB / 395.1 MB Notification: Performance of matching and sorting (n=115) (initialization): time 0.007714/1.656, allocations: 2.002 MB / 0.849 GB, free: 56.93 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009697/1.657, allocations: 4.438 MB / 0.8533 GB, free: 52.32 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.086e-05/1.657, allocations: 13.59 kB / 0.8533 GB, free: 52.32 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006371/1.658, allocations: 157.6 kB / 0.8535 GB, free: 52.3 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007497/1.659, allocations: 198.3 kB / 0.8536 GB, free: 52.3 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001872/1.661, allocations: 1.48 MB / 0.8551 GB, free: 51.26 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009495/1.662, allocations: 49.98 kB / 0.8551 GB, free: 51.25 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001088/1.662, allocations: 44.22 kB / 0.8552 GB, free: 51.25 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.19e-05/1.662, allocations: 6.188 kB / 0.8552 GB, free: 51.25 MB / 395.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007039/1.669, allocations: 1.818 MB / 0.857 GB, free: 51.22 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.605e-05/1.669, allocations: 12.31 kB / 0.857 GB, free: 51.22 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005495/1.669, allocations: 163.5 kB / 0.8571 GB, free: 51.21 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006611/1.67, allocations: 188 kB / 0.8573 GB, free: 51.21 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001326/1.671, allocations: 1.391 MB / 0.8587 GB, free: 50.16 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007575/1.672, allocations: 42.66 kB / 0.8587 GB, free: 50.16 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001097/1.672, allocations: 48.94 kB / 0.8588 GB, free: 50.16 MB / 395.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],tank1.ports_m_flow_out[2],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (109): * Single equations (assignments): 107 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 3,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0002573/1.673, allocations: 141.5 kB / 0.8589 GB, free: 50.04 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001829/1.673, allocations: 78.56 kB / 0.859 GB, free: 50 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002113/1.675, allocations: 0.8015 MB / 0.8597 GB, free: 49.91 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.137e-06/1.675, allocations: 6.719 kB / 0.8598 GB, free: 49.91 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.512e-06/1.675, allocations: 0 / 0.8598 GB, free: 49.91 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.795e-06/1.675, allocations: 3.75 kB / 0.8598 GB, free: 49.91 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003218/1.678, allocations: 1.492 MB / 0.8612 GB, free: 49.59 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.739e-06/1.678, allocations: 5.938 kB / 0.8612 GB, free: 49.59 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000467/1.679, allocations: 77.3 kB / 0.8613 GB, free: 49.59 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005471/1.679, allocations: 155.6 kB / 0.8614 GB, free: 49.58 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.483e-05/1.679, allocations: 2.844 kB / 0.8614 GB, free: 49.58 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001387/1.681, allocations: 1.383 MB / 0.8628 GB, free: 48.54 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.38e-06/1.681, allocations: 1.672 kB / 0.8628 GB, free: 48.54 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002187/1.683, allocations: 1.105 MB / 0.8639 GB, free: 48.28 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003119/1.683, allocations: 167.6 kB / 0.864 GB, free: 48.14 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000205/1.683, allocations: 5.609 kB / 0.864 GB, free: 48.14 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005634/1.684, allocations: 33.92 kB / 0.8641 GB, free: 48.13 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001381/1.684, allocations: 51.7 kB / 0.8641 GB, free: 48.13 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.275e-05/1.684, allocations: 18.69 kB / 0.8641 GB, free: 48.13 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.0007459/1.685, allocations: 470.7 kB / 0.8646 GB, free: 48.04 MB / 395.1 MB Notification: Performance of sort global known variables: time 2.4e-07/1.685, allocations: 3.094 kB / 0.8646 GB, free: 48.04 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.003103/1.688, allocations: 0.7625 MB / 0.8653 GB, free: 47.89 MB / 395.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (tank1.medium.T,tank1.level) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Number of discrete states: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.002456/1.691, allocations: 0.793 MB / 0.8661 GB, free: 47.66 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.002255/1.693, allocations: 1.148 MB / 0.8672 GB, free: 47.64 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/1.693, allocations: 3.656 kB / 0.8672 GB, free: 47.64 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005527/1.693, allocations: 288.9 kB / 0.8675 GB, free: 47.64 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001525/1.695, allocations: 292.7 kB / 0.8678 GB, free: 47.64 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002651/1.698, allocations: 1.292 MB / 0.8691 GB, free: 47.31 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005669/1.698, allocations: 1.055 MB / 0.8701 GB, free: 46.6 MB / 395.1 MB Notification: Performance of simCode: alias equations: time 0.001412/1.7, allocations: 371.9 kB / 0.8704 GB, free: 46.59 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001572/1.7, allocations: 56.48 kB / 0.8705 GB, free: 46.58 MB / 395.1 MB Notification: Performance of SimCode: time 4.3e-07/1.7, allocations: 0 / 0.8705 GB, free: 46.58 MB / 395.1 MB Notification: Performance of Templates: time 0.0329/1.733, allocations: 21.02 MB / 0.891 GB, free: 45.32 MB / 395.1 MB make -j1 -f Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.makefile (rm -f Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; mkfifo Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe >> ../files/Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.sim & ./Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe 2>&1)