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/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001065/0.001064, allocations: 186.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.449/1.449, allocations: 222.9 MB / 240.9 MB, free: 11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00111/0.00111, allocations: 106 kB / 291.2 MB, free: 10.94 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008237/0.0008238, allocations: 39.94 kB / 350 MB, free: 76 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.216/0.2168, allocations: 49.44 MB / 399.5 MB, free: 33.38 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1): time 0.03371/0.2506, allocations: 32.28 MB / 431.8 MB, free: 0.9961 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02887/0.2795, allocations: 14.93 MB / 446.7 MB, free: 2.023 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002529/0.2821, allocations: 55.56 kB / 446.7 MB, free: 1.969 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002231/0.2844, allocations: 0.5012 MB / 447.2 MB, free: 1.465 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007311/0.2918, allocations: 2.054 MB / 449.3 MB, free: 15.4 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01155/0.3033, allocations: 3.129 MB / 452.4 MB, free: 12.29 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.009311/0.3126, allocations: 5.948 MB / 458.4 MB, free: 6.32 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002116/0.3148, allocations: 0.8613 MB / 459.2 MB, free: 5.445 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003684/0.3185, allocations: 1.292 MB / 460.5 MB, free: 4.148 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003554/0.3221, allocations: 1.526 MB / 462.1 MB, free: 2.617 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003639/0.3225, allocations: 76 kB / 462.1 MB, free: 2.543 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007017/0.3295, allocations: 2.269 MB / 464.4 MB, free: 276 kB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00102/0.3306, allocations: 498.5 kB / 464.9 MB, free: 15.78 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001563/0.3322, allocations: 0.758 MB / 465.6 MB, free: 15.02 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008092/0.3403, allocations: 3.526 MB / 469.2 MB, free: 11.48 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.304e-06/0.3403, allocations: 4 kB / 469.2 MB, free: 11.48 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.926e-06/0.3403, allocations: 0 / 469.2 MB, free: 11.48 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.782e-05/0.3404, allocations: 0 / 469.2 MB, free: 11.48 MB / 346.7 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.007146/0.3476, allocations: 2.099 MB / 471.3 MB, free: 9.328 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.275e-05/0.3476, allocations: 8.031 kB / 471.3 MB, free: 9.32 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000943/0.3486, allocations: 174.2 kB / 471.4 MB, free: 9.148 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002359/0.351, allocations: 0.9559 MB / 472.4 MB, free: 8.148 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001132/0.3511, allocations: 81.92 kB / 472.5 MB, free: 8.066 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002406/0.3513, allocations: 95.97 kB / 472.6 MB, free: 7.973 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003962/0.3553, allocations: 1.636 MB / 474.2 MB, free: 6.254 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.824e-05/0.3554, allocations: 4 kB / 474.2 MB, free: 6.25 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000189/0.3556, allocations: 39.98 kB / 474.3 MB, free: 6.211 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002111/0.3558, allocations: 97.94 kB / 474.4 MB, free: 6.117 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004275/0.3601, allocations: 1.647 MB / 476 MB, free: 4.469 MB / 346.7 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.01488/0.375, allocations: 6.644 MB / 482.6 MB, free: 13.43 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0021/0.3771, allocations: 0.9263 MB / 483.6 MB, free: 12.5 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001187/0.3784, allocations: 0.5542 MB / 484.1 MB, free: 11.95 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005972/0.3843, allocations: 2.812 MB / 486.9 MB, free: 8.879 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.204e-05/0.3844, allocations: 47.16 kB / 487 MB, free: 8.824 MB / 362.7 MB Notification: Performance of pre-optimization done (n=80): time 6.582e-06/0.3845, allocations: 3.984 kB / 487 MB, free: 8.82 MB / 362.7 MB Notification: Performance of matching and sorting (n=90): time 0.01373/0.3982, allocations: 3.707 MB / 490.7 MB, free: 4.996 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001343/0.3984, allocations: 192.9 kB / 490.9 MB, free: 4.766 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002672/0.401, allocations: 1.306 MB / 492.2 MB, free: 3.441 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001657/0.4012, allocations: 53.69 kB / 492.2 MB, free: 3.383 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006996/0.4019, allocations: 0.6433 MB / 492.9 MB, free: 2.73 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003915/0.4023, allocations: 327.4 kB / 493.2 MB, free: 2.406 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006823/0.403, allocations: 291.3 kB / 493.5 MB, free: 2.117 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001246/0.4032, allocations: 305.1 kB / 493.8 MB, free: 1.816 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001461/0.4046, allocations: 0.5825 MB / 494.4 MB, free: 1.23 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001836/0.4065, allocations: 1.001 MB / 495.4 MB, free: 56 kB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003085/0.4096, allocations: 1.481 MB / 496.9 MB, free: 14.41 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.047e-05/0.4096, allocations: 4 kB / 496.9 MB, free: 14.4 MB / 378.7 MB Notification: Performance of matching and sorting (n=180) (initialization): time 0.004969/0.4146, allocations: 1.912 MB / 498.8 MB, free: 12.48 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.667e-05/0.4147, allocations: 12 kB / 498.8 MB, free: 12.46 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.719e-05/0.4147, allocations: 15.94 kB / 498.8 MB, free: 12.45 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006925/0.4216, allocations: 0.7597 MB / 499.6 MB, free: 11.68 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001812/0.4235, allocations: 291.5 kB / 499.8 MB, free: 11.39 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002843/0.4263, allocations: 2.157 MB / 0.4902 GB, free: 9.16 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002429/0.4288, allocations: 83.94 kB / 0.4903 GB, free: 9.078 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002687/0.4291, allocations: 63.98 kB / 0.4904 GB, free: 9.016 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002017/0.4311, allocations: 0.8513 MB / 0.4912 GB, free: 8.16 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001675/0.4328, allocations: 0.9914 MB / 0.4922 GB, free: 6.984 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00273/0.4356, allocations: 1.452 MB / 0.4936 GB, free: 5.359 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.119e-05/0.4356, allocations: 4 kB / 0.4936 GB, free: 5.355 MB / 378.7 MB Notification: Performance of matching and sorting (n=180) (initialization_lambda0): time 0.004966/0.4406, allocations: 1.834 MB / 0.4954 GB, free: 3.504 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.807e-05/0.4406, allocations: 12.09 kB / 0.4954 GB, free: 3.492 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.116e-05/0.4407, allocations: 15.94 kB / 0.4954 GB, free: 3.477 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005823/0.4465, allocations: 0.5921 MB / 0.496 GB, free: 2.875 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001877/0.4484, allocations: 291.5 kB / 0.4963 GB, free: 2.59 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00239/0.4508, allocations: 2.028 MB / 0.4982 GB, free: 496 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002183/0.453, allocations: 92.08 kB / 0.4983 GB, free: 404 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002162/0.4533, allocations: 67.97 kB / 0.4984 GB, free: 336 kB / 378.7 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.0005579/0.4538, allocations: 272.4 kB / 0.4987 GB, free: 56 kB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.2212/0.6751, allocations: 147.3 kB / 0.4988 GB, free: 101.7 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003666/0.6788, allocations: 1.524 MB / 0.5003 GB, free: 101.4 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.064e-05/0.6788, allocations: 13.59 kB / 0.5003 GB, free: 101.4 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.244e-06/0.6788, allocations: 3.75 kB / 0.5003 GB, free: 101.4 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.311e-05/0.6788, allocations: 4.5 kB / 0.5003 GB, free: 101.4 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004372/0.6832, allocations: 2.801 MB / 0.503 GB, free: 100.2 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.191e-06/0.6833, allocations: 1.156 kB / 0.503 GB, free: 100.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006525/0.6839, allocations: 159.2 kB / 0.5032 GB, free: 100.2 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00296/0.6869, allocations: 0.601 MB / 0.5038 GB, free: 100.1 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.474e-05/0.687, allocations: 31.39 kB / 0.5038 GB, free: 100.1 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001411/0.6884, allocations: 2.104 MB / 0.5059 GB, free: 98.36 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.22e-06/0.6884, allocations: 5.5 kB / 0.5059 GB, free: 98.35 MB / 378.7 MB Error: Jacobian A contains non-linear components. This indicates a singular system or internal generation errors. Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3199/1.008, allocations: 26.09 MB / 0.5314 GB, free: 75.92 MB / 378.7 MB Error: post-optimization module symbolicJacobian (simulation) failed.