Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.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) 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(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.|tank2.aboveLevel.1.|tank2.aboveLevel.2.",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.|tank2.aboveLevel.1.|tank2.aboveLevel.2.",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001045/0.001045, allocations: 110.9 kB / 17.75 MB, free: 5.332 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.001017/0.001017, allocations: 190.6 kB / 18.68 MB, free: 4.406 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.296/1.296, allocations: 222.9 MB / 242.4 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009117/0.0009117, allocations: 44.06 kB / 352 MB, free: 3.254 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2005/0.2014, allocations: 49.43 MB / 401.4 MB, free: 8.762 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1): time 0.02938/0.2308, allocations: 31 MB / 432.4 MB, free: 9.766 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01729/0.2481, allocations: 14.26 MB / 446.7 MB, free: 11.47 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001/0.2492, allocations: 47.69 kB / 446.7 MB, free: 11.42 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001374/0.2506, allocations: 0.5823 MB / 447.3 MB, free: 10.84 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004504/0.2551, allocations: 2.203 MB / 449.5 MB, free: 8.625 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007491/0.2626, allocations: 3.676 MB / 453.2 MB, free: 4.965 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004196/0.2668, allocations: 3.98 MB / 457.2 MB, free: 0.9688 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001394/0.2682, allocations: 1.01 MB / 458.2 MB, free: 15.94 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002262/0.2705, allocations: 1.495 MB / 459.7 MB, free: 14.44 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002162/0.2727, allocations: 1.526 MB / 461.2 MB, free: 12.91 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003534/0.273, allocations: 148 kB / 461.3 MB, free: 12.77 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003844/0.2769, allocations: 2.32 MB / 463.7 MB, free: 10.44 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006131/0.2775, allocations: 0.5532 MB / 464.2 MB, free: 9.887 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001056/0.2786, allocations: 0.8166 MB / 465 MB, free: 9.066 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004465/0.283, allocations: 3.608 MB / 468.6 MB, free: 5.449 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.945e-06/0.2831, allocations: 0 / 468.6 MB, free: 5.449 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.647e-06/0.2831, allocations: 4 kB / 468.6 MB, free: 5.445 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.697e-05/0.2831, allocations: 7.875 kB / 468.6 MB, free: 5.438 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.004429/0.2876, allocations: 2.095 MB / 470.7 MB, free: 3.285 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.402e-05/0.2876, allocations: 8.031 kB / 470.7 MB, free: 3.277 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005845/0.2882, allocations: 174.1 kB / 470.9 MB, free: 3.105 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001688/0.2899, allocations: 1.007 MB / 471.9 MB, free: 2.055 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.976e-05/0.29, allocations: 85.91 kB / 472 MB, free: 1.973 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001734/0.2902, allocations: 103.9 kB / 472.1 MB, free: 1.871 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002547/0.2927, allocations: 1.632 MB / 473.7 MB, free: 160 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.821e-05/0.2928, allocations: 7.938 kB / 473.7 MB, free: 152 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001385/0.2929, allocations: 43.98 kB / 473.8 MB, free: 108 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001365/0.293, allocations: 101.9 kB / 473.9 MB, free: 4 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002668/0.2957, allocations: 1.643 MB / 475.5 MB, free: 14.36 MB / 398.1 MB 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.009694/0.3054, allocations: 6.648 MB / 482.2 MB, free: 7.32 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00148/0.3069, allocations: 0.9288 MB / 483.1 MB, free: 6.383 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008311/0.3078, allocations: 0.5569 MB / 483.7 MB, free: 5.828 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003663/0.3114, allocations: 2.805 MB / 486.5 MB, free: 2.773 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.27e-05/0.3115, allocations: 47.22 kB / 486.5 MB, free: 2.719 MB / 398.1 MB Notification: Performance of pre-optimization done (n=80): time 2.134e-06/0.3115, allocations: 0 / 486.5 MB, free: 2.719 MB / 398.1 MB Notification: Performance of matching and sorting (n=90): time 0.008319/0.3198, allocations: 3.707 MB / 490.2 MB, free: 14.9 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.56e-05/0.3199, allocations: 192.9 kB / 490.4 MB, free: 14.67 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001548/0.3215, allocations: 1.306 MB / 491.7 MB, free: 13.34 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 9.778e-05/0.3216, allocations: 49.7 kB / 491.8 MB, free: 13.29 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004822/0.3221, allocations: 0.6549 MB / 492.4 MB, free: 12.62 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002502/0.3223, allocations: 319.6 kB / 492.7 MB, free: 12.31 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004274/0.3228, allocations: 283.3 kB / 493 MB, free: 12.03 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 8.784e-05/0.3229, allocations: 305.1 kB / 493.3 MB, free: 11.73 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009636/0.3238, allocations: 0.5864 MB / 493.9 MB, free: 11.14 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001254/0.3251, allocations: 1.001 MB / 494.9 MB, free: 9.953 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002025/0.3271, allocations: 1.481 MB / 496.4 MB, free: 8.312 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.244e-06/0.3271, allocations: 7.984 kB / 496.4 MB, free: 8.305 MB / 414.1 MB Notification: Performance of matching and sorting (n=180) (initialization): time 0.003065/0.3302, allocations: 1.9 MB / 498.3 MB, free: 6.383 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.837e-05/0.3302, allocations: 8 kB / 498.3 MB, free: 6.375 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.326e-05/0.3303, allocations: 12 kB / 498.3 MB, free: 6.363 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00482/0.3351, allocations: 0.7754 MB / 499.1 MB, free: 5.578 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001025/0.3361, allocations: 283.6 kB / 499.4 MB, free: 5.301 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001947/0.3381, allocations: 2.168 MB / 0.4898 GB, free: 3.055 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001011/0.3391, allocations: 67.95 kB / 0.4898 GB, free: 2.988 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001184/0.3392, allocations: 71.97 kB / 0.4899 GB, free: 2.918 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001269/0.3405, allocations: 0.8473 MB / 0.4907 GB, free: 2.066 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001201/0.3417, allocations: 0.9876 MB / 0.4917 GB, free: 0.8984 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001883/0.3436, allocations: 1.46 MB / 0.4931 GB, free: 15.27 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.823e-06/0.3436, allocations: 7.938 kB / 0.4931 GB, free: 15.26 MB / 430.1 MB Notification: Performance of matching and sorting (n=180) (initialization_lambda0): time 0.003023/0.3467, allocations: 1.834 MB / 0.4949 GB, free: 13.41 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.52e-05/0.3467, allocations: 11.98 kB / 0.4949 GB, free: 13.4 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.916e-05/0.3467, allocations: 16 kB / 0.4949 GB, free: 13.38 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00407/0.3508, allocations: 0.5838 MB / 0.4955 GB, free: 12.79 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001041/0.3518, allocations: 291.7 kB / 0.4958 GB, free: 12.5 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001628/0.3535, allocations: 2.024 MB / 0.4978 GB, free: 10.4 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001019/0.3545, allocations: 67.95 kB / 0.4978 GB, free: 10.34 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001125/0.3546, allocations: 67.98 kB / 0.4979 GB, free: 10.27 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 12 (tank2.aboveLevel[2],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank1.aboveLevel[2],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[1],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[2],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (166): * Single equations (assignments): 163 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,3), (2,7), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0003305/0.355, allocations: 280.5 kB / 0.4982 GB, free: 9.988 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002475/0.3552, allocations: 146.2 kB / 0.4983 GB, free: 9.844 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002927/0.3582, allocations: 1.521 MB / 0.4998 GB, free: 8.316 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.238e-05/0.3582, allocations: 7.969 kB / 0.4998 GB, free: 8.309 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.845e-06/0.3582, allocations: 0 / 0.4998 GB, free: 8.309 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002666/0.3585, allocations: 219.3 kB / 0.5 GB, free: 8.074 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002257/0.3587, allocations: 31.84 kB / 0.5 GB, free: 8.043 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007846/0.3595, allocations: 48.02 kB / 0.5001 GB, free: 7.996 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001712/0.3597, allocations: 84.88 kB / 0.5002 GB, free: 7.914 MB / 430.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003318/0.363, allocations: 1.488 MB / 0.5016 GB, free: 6.41 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002779/0.3658, allocations: 1.889 MB / 0.5035 GB, free: 4.508 MB / 430.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000767/0.3666, allocations: 0.5192 MB / 0.504 GB, free: 3.988 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001144/0.3677, allocations: 0.9006 MB / 0.5048 GB, free: 3.086 MB / 430.1 MB Notification: Performance of Backend: time 3.61e-07/0.3677, allocations: 0 / 0.5048 GB, free: 3.086 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005836/0.3736, allocations: 2.698 MB / 0.5075 GB, free: 404 kB / 430.1 MB Notification: Performance of SimCode: time 0.004931/0.3785, allocations: 3.49 MB / 0.5109 GB, free: 12.86 MB / 446.1 MB Notification: Performance of Templates: time 0.2203/0.5988, allocations: 44.52 MB / 0.5544 GB, free: 128.7 MB / 462.1 MB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.makefile (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe 2>&1)