Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.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.TanksWithEmptyingPipe2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T|tank1.aboveLevel.1.|tank2.aboveLevel.1.|tank2.aboveLevel.2.|tank2.aboveLevel.3.|tank3.aboveLevel.1.|tank3.aboveLevel.2.",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T|tank1.aboveLevel.1.|tank2.aboveLevel.1.|tank2.aboveLevel.2.|tank2.aboveLevel.3.|tank3.aboveLevel.1.|tank3.aboveLevel.2.",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001911/0.001911, allocations: 188.9 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.446/1.446, allocations: 222.9 MB / 240.9 MB, free: 10.98 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.0009759/0.0009758, allocations: 102.5 kB / 291.2 MB, free: 10.94 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008597/0.0008598, allocations: 35.94 kB / 350 MB, free: 76 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2304/0.2313, allocations: 49.44 MB / 399.5 MB, free: 33.37 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2): time 0.02684/0.2582, allocations: 38.46 MB / 437.9 MB, free: 10.78 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0209/0.2792, allocations: 15.87 MB / 453.8 MB, free: 10.87 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002675/0.2819, allocations: 67.44 kB / 453.9 MB, free: 10.8 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00188/0.2838, allocations: 0.5983 MB / 454.5 MB, free: 10.2 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006733/0.2906, allocations: 2.388 MB / 456.9 MB, free: 7.805 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008674/0.2993, allocations: 3.2 MB / 460.1 MB, free: 4.617 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.00769/0.307, allocations: 7.134 MB / 467.2 MB, free: 13.47 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001965/0.309, allocations: 1.099 MB / 468.3 MB, free: 12.35 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003094/0.3121, allocations: 1.51 MB / 469.8 MB, free: 10.83 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003017/0.3151, allocations: 1.818 MB / 471.6 MB, free: 9.008 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003932/0.3155, allocations: 92 kB / 471.7 MB, free: 8.918 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008341/0.3239, allocations: 2.375 MB / 474.1 MB, free: 6.539 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00141/0.3254, allocations: 0.5763 MB / 474.7 MB, free: 5.961 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001925/0.3273, allocations: 0.9096 MB / 475.6 MB, free: 5.047 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006708/0.334, allocations: 3.981 MB / 479.5 MB, free: 1.055 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.061e-06/0.3341, allocations: 0 / 479.5 MB, free: 1.055 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.262e-06/0.3341, allocations: 0 / 479.5 MB, free: 1.055 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.079e-05/0.3341, allocations: 7.938 kB / 479.6 MB, free: 1.047 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: 315 * Number of variables: 315 Notification: Performance of Generate backend data structure: time 0.005207/0.3393, allocations: 2.412 MB / 482 MB, free: 14.57 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.5e-05/0.3394, allocations: 12.03 kB / 482 MB, free: 14.56 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005896/0.34, allocations: 197.8 kB / 482.2 MB, free: 14.37 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001803/0.3418, allocations: 1.097 MB / 483.3 MB, free: 13.21 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.175e-05/0.3419, allocations: 102.2 kB / 483.4 MB, free: 13.11 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001872/0.3421, allocations: 120 kB / 483.5 MB, free: 12.99 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00282/0.3449, allocations: 1.951 MB / 485.4 MB, free: 10.95 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.963e-05/0.345, allocations: 0 / 485.4 MB, free: 10.95 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00016/0.3451, allocations: 55.97 kB / 485.5 MB, free: 10.89 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001402/0.3453, allocations: 118.3 kB / 485.6 MB, free: 10.77 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002898/0.3482, allocations: 1.988 MB / 487.6 MB, free: 8.777 MB / 362.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.01095/0.3591, allocations: 7.868 MB / 495.5 MB, free: 444 kB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001753/0.3609, allocations: 1.172 MB / 496.6 MB, free: 15.25 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001044/0.362, allocations: 0.7472 MB / 497.4 MB, free: 14.51 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004935/0.3669, allocations: 3.42 MB / 0.4891 GB, free: 10.82 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.942e-05/0.367, allocations: 47.56 kB / 0.4891 GB, free: 10.77 MB / 378.7 MB Notification: Performance of pre-optimization done (n=119): time 3.657e-06/0.367, allocations: 0 / 0.4891 GB, free: 10.77 MB / 378.7 MB Notification: Performance of matching and sorting (n=134): time 0.01233/0.3793, allocations: 5.4 MB / 0.4944 GB, free: 5.238 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.663e-05/0.3795, allocations: 171.5 kB / 0.4945 GB, free: 5.035 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001868/0.3813, allocations: 1.427 MB / 0.4959 GB, free: 3.598 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001367/0.3815, allocations: 61.69 kB / 0.496 GB, free: 3.531 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005205/0.382, allocations: 0.7073 MB / 0.4967 GB, free: 2.816 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003574/0.3824, allocations: 477.2 kB / 0.4971 GB, free: 2.344 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004919/0.3829, allocations: 339.3 kB / 0.4975 GB, free: 2.004 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.645e-05/0.383, allocations: 301.1 kB / 0.4978 GB, free: 1.707 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001184/0.3842, allocations: 0.7855 MB / 0.4985 GB, free: 0.918 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2187/0.6028, allocations: 1.198 MB / 0.4997 GB, free: 101 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003338/0.6062, allocations: 1.895 MB / 0.5015 GB, free: 100.2 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.058e-05/0.6063, allocations: 3.969 kB / 0.5015 GB, free: 100.2 MB / 378.7 MB Notification: Performance of matching and sorting (n=224) (initialization): time 0.004352/0.6106, allocations: 2.45 MB / 0.5039 GB, free: 99.3 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.071e-05/0.6107, allocations: 12.48 kB / 0.504 GB, free: 99.3 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.397e-05/0.6107, allocations: 12.53 kB / 0.504 GB, free: 99.3 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006534/0.6172, allocations: 1.103 MB / 0.505 GB, free: 99.16 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00172/0.619, allocations: 351.8 kB / 0.5054 GB, free: 99.12 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002257/0.6213, allocations: 2.9 MB / 0.5082 GB, free: 96.75 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001802/0.6231, allocations: 114.1 kB / 0.5083 GB, free: 96.72 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001503/0.6232, allocations: 80.38 kB / 0.5084 GB, free: 96.71 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00155/0.6248, allocations: 1.076 MB / 0.5094 GB, free: 96.25 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001254/0.6261, allocations: 1.193 MB / 0.5106 GB, free: 95.48 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002169/0.6283, allocations: 1.83 MB / 0.5124 GB, free: 94.25 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.626e-06/0.6283, allocations: 6.406 kB / 0.5124 GB, free: 94.25 MB / 378.7 MB Notification: Performance of matching and sorting (n=224) (initialization_lambda0): time 0.003621/0.6319, allocations: 2.302 MB / 0.5147 GB, free: 93.17 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.195e-05/0.6319, allocations: 19.56 kB / 0.5147 GB, free: 93.16 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.745e-05/0.632, allocations: 15.14 kB / 0.5147 GB, free: 93.16 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00518/0.6371, allocations: 0.8009 MB / 0.5155 GB, free: 92.39 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001317/0.6385, allocations: 359.8 kB / 0.5158 GB, free: 92.04 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001645/0.6401, allocations: 2.651 MB / 0.5184 GB, free: 89.31 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001725/0.6419, allocations: 114.7 kB / 0.5185 GB, free: 89.2 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001473/0.642, allocations: 86.5 kB / 0.5186 GB, free: 89.12 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 18 (tank2.aboveLevel[3],$PRE.tank2.aboveLevel[3],tank2.aboveLevel[2],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[1],tank3.aboveLevel[2],$PRE.tank3.aboveLevel[2],tank3.aboveLevel[1],$PRE.tank3.aboveLevel[1],tank2.ports_m_flow_out[3],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1],tank3.ports_m_flow_out[2],tank3.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 (203): * Single equations (assignments): 199 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * 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): 4 systems {(1,2), (2,7), (2,7), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0005484/0.6426, allocations: 306.6 kB / 0.5189 GB, free: 88.83 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002815/0.6429, allocations: 170.4 kB / 0.519 GB, free: 88.73 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003876/0.6468, allocations: 2.354 MB / 0.5213 GB, free: 86.42 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.527e-05/0.6468, allocations: 16 kB / 0.5214 GB, free: 86.4 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.544e-06/0.6468, allocations: 7.938 kB / 0.5214 GB, free: 86.39 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.309e-05/0.6468, allocations: 11.97 kB / 0.5214 GB, free: 86.38 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005621/0.6524, allocations: 4 MB / 0.5253 GB, free: 82.34 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.183e-05/0.6525, allocations: 12.03 kB / 0.5253 GB, free: 82.32 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001004/0.6535, allocations: 243.6 kB / 0.5255 GB, free: 82.09 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003707/0.6572, allocations: 0.8805 MB / 0.5264 GB, free: 81.2 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001249/0.6574, allocations: 43.97 kB / 0.5264 GB, free: 81.16 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001823/0.6592, allocations: 2.837 MB / 0.5292 GB, free: 78.23 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.6592, allocations: 0 / 0.5292 GB, free: 78.23 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.3307/0.9899, allocations: 31.98 MB / 0.5604 GB, free: 46.03 MB / 378.7 MB Error: post-optimization module symbolicJacobian (simulation) failed.