Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001057/0.001057, allocations: 187 kB / 17.92 MB, free: 3.855 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.19/1.19, allocations: 205.1 MB / 223.7 MB, free: 8.484 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009421/0.0009421, allocations: 106.3 kB / 271.2 MB, free: 8.438 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007987/0.0007989, allocations: 43.94 kB / 327.2 MB, free: 324 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2101/0.2109, allocations: 46.61 MB / 373.8 MB, free: 45.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2): time 0.02704/0.238, allocations: 38.47 MB / 412.3 MB, free: 10.94 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01716/0.2552, allocations: 15.88 MB / 428.2 MB, free: 11.02 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002594/0.2578, allocations: 71.38 kB / 428.2 MB, free: 10.95 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001768/0.2597, allocations: 0.5945 MB / 428.8 MB, free: 10.35 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00555/0.2653, allocations: 2.369 MB / 431.2 MB, free: 7.973 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007413/0.2727, allocations: 3.208 MB / 434.4 MB, free: 4.773 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.007055/0.2798, allocations: 7.127 MB / 441.5 MB, free: 13.63 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00138/0.2812, allocations: 1.111 MB / 442.6 MB, free: 12.49 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001945/0.2831, allocations: 1.498 MB / 444.1 MB, free: 10.99 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002012/0.2851, allocations: 1.818 MB / 446 MB, free: 9.164 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002203/0.2854, allocations: 96 kB / 446.1 MB, free: 9.07 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004318/0.2897, allocations: 2.367 MB / 448.4 MB, free: 6.699 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005714/0.2903, allocations: 0.5802 MB / 449 MB, free: 6.117 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008949/0.2912, allocations: 0.9057 MB / 449.9 MB, free: 5.207 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004379/0.2956, allocations: 3.97 MB / 453.9 MB, free: 1.227 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.55e-06/0.2956, allocations: 3.984 kB / 453.9 MB, free: 1.223 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.2956, allocations: 0 / 453.9 MB, free: 1.223 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.157e-05/0.2956, allocations: 0 / 453.9 MB, free: 1.223 MB / 330.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.004512/0.3002, allocations: 2.415 MB / 456.3 MB, free: 14.75 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.998e-05/0.3002, allocations: 8.031 kB / 456.3 MB, free: 14.74 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005475/0.3008, allocations: 205.8 kB / 456.5 MB, free: 14.54 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001709/0.3025, allocations: 1.097 MB / 457.6 MB, free: 13.38 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.511e-05/0.3026, allocations: 94.27 kB / 457.7 MB, free: 13.29 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001883/0.3028, allocations: 120 kB / 457.8 MB, free: 13.17 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002816/0.3056, allocations: 1.955 MB / 459.8 MB, free: 11.12 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.939e-05/0.3056, allocations: 4 kB / 459.8 MB, free: 11.12 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001367/0.3058, allocations: 47.98 kB / 459.8 MB, free: 11.07 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001432/0.3059, allocations: 126.2 kB / 459.9 MB, free: 10.95 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002958/0.3089, allocations: 1.98 MB / 461.9 MB, free: 8.957 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.0102/0.3191, allocations: 7.871 MB / 469.8 MB, free: 0.6133 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001775/0.3209, allocations: 1.177 MB / 471 MB, free: 15.43 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00105/0.3219, allocations: 0.7495 MB / 471.7 MB, free: 14.68 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004316/0.3263, allocations: 3.411 MB / 475.1 MB, free: 11 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.189e-05/0.3263, allocations: 51.5 kB / 475.2 MB, free: 10.95 MB / 362.7 MB Notification: Performance of pre-optimization done (n=119): time 2.154e-06/0.3263, allocations: 0 / 475.2 MB, free: 10.95 MB / 362.7 MB Notification: Performance of matching and sorting (n=134): time 0.01134/0.3377, allocations: 5.396 MB / 480.6 MB, free: 5.418 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.597e-05/0.3378, allocations: 175.5 kB / 480.8 MB, free: 5.211 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001671/0.3395, allocations: 1.423 MB / 482.2 MB, free: 3.777 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001161/0.3396, allocations: 57.7 kB / 482.2 MB, free: 3.715 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005396/0.3401, allocations: 0.7151 MB / 482.9 MB, free: 2.992 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003648/0.3405, allocations: 469.3 kB / 483.4 MB, free: 2.527 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005004/0.341, allocations: 339.3 kB / 483.7 MB, free: 2.188 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001226/0.3412, allocations: 301.1 kB / 484 MB, free: 1.891 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001206/0.3424, allocations: 0.7894 MB / 484.8 MB, free: 1.098 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001534/0.3439, allocations: 1.203 MB / 486 MB, free: 15.72 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002565/0.3465, allocations: 1.88 MB / 487.9 MB, free: 13.68 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.346e-06/0.3465, allocations: 8 kB / 487.9 MB, free: 13.68 MB / 378.7 MB Notification: Performance of matching and sorting (n=224) (initialization): time 0.003738/0.3502, allocations: 2.455 MB / 490.4 MB, free: 11.2 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.459e-05/0.3503, allocations: 12 kB / 490.4 MB, free: 11.19 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.663e-05/0.3503, allocations: 12 kB / 490.4 MB, free: 11.18 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006289/0.3566, allocations: 1.096 MB / 491.5 MB, free: 10.07 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001212/0.3578, allocations: 363.4 kB / 491.8 MB, free: 9.711 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002466/0.3603, allocations: 2.888 MB / 494.7 MB, free: 6.719 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001338/0.3617, allocations: 116 kB / 494.8 MB, free: 6.605 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001397/0.3618, allocations: 87.97 kB / 494.9 MB, free: 6.52 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001908/0.3637, allocations: 1.078 MB / 496 MB, free: 5.438 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001712/0.3654, allocations: 1.185 MB / 497.2 MB, free: 4.074 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002878/0.3683, allocations: 1.84 MB / 499 MB, free: 2.066 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.217e-06/0.3684, allocations: 4 kB / 499 MB, free: 2.062 MB / 378.7 MB Notification: Performance of matching and sorting (n=224) (initialization_lambda0): time 0.1584/0.5268, allocations: 2.305 MB / 0.4896 GB, free: 112 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.237e-05/0.5268, allocations: 8.969 kB / 0.4896 GB, free: 112 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.037e-05/0.5268, allocations: 15.81 kB / 0.4896 GB, free: 112 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005146/0.532, allocations: 0.7982 MB / 0.4904 GB, free: 111.9 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001415/0.5334, allocations: 365.7 kB / 0.4907 GB, free: 111.9 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001442/0.5349, allocations: 2.651 MB / 0.4933 GB, free: 109.9 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001484/0.5364, allocations: 123.5 kB / 0.4934 GB, free: 109.9 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000136/0.5365, allocations: 80.31 kB / 0.4935 GB, free: 109.9 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.000429/0.537, allocations: 300 kB / 0.4938 GB, free: 109.7 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002815/0.5372, allocations: 173.6 kB / 0.494 GB, free: 109.7 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004333/0.5416, allocations: 2.368 MB / 0.4963 GB, free: 108.8 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.818e-05/0.5416, allocations: 15.19 kB / 0.4963 GB, free: 108.8 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.313e-06/0.5416, allocations: 1.469 kB / 0.4963 GB, free: 108.8 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.427e-05/0.5417, allocations: 7.922 kB / 0.4963 GB, free: 108.8 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005818/0.5475, allocations: 4.015 MB / 0.5002 GB, free: 106.8 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.526e-06/0.5475, allocations: 4.344 kB / 0.5002 GB, free: 106.8 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009017/0.5484, allocations: 241.8 kB / 0.5005 GB, free: 106.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003638/0.5521, allocations: 0.8828 MB / 0.5013 GB, free: 106.4 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000102/0.5522, allocations: 38.55 kB / 0.5014 GB, free: 106.4 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001937/0.5541, allocations: 2.841 MB / 0.5041 GB, free: 103.9 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.939e-06/0.5541, allocations: 6.188 kB / 0.5041 GB, free: 103.9 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.3264/0.8805, allocations: 31.97 MB / 0.5354 GB, free: 75.64 MB / 378.7 MB Error: post-optimization module symbolicJacobian (simulation) failed.