Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|lowerTank.level|lowerTank.medium.h|upperTank.level|upperTank.medium.h|hysteresis.y",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") translateModel(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|lowerTank.level|lowerTank.medium.h|upperTank.level|upperTank.medium.h|hysteresis.y",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001211/0.001211, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.462/1.462, allocations: 226.8 MB / 245.5 MB, free: 6.973 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001363/0.001363, allocations: 109 kB / 296.7 MB, free: 6.469 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000907/0.000907, allocations: 51.92 kB / 356.6 MB, free: 10.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2155/0.2165, allocations: 50.45 MB / 407 MB, free: 27.81 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.02224/0.2388, allocations: 31.57 MB / 438.6 MB, free: 12.15 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01366/0.2525, allocations: 10.83 MB / 449.4 MB, free: 1.293 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001393/0.2539, allocations: 47.62 kB / 449.5 MB, free: 1.246 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001091/0.255, allocations: 417.7 kB / 449.9 MB, free: 0.8359 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003845/0.2589, allocations: 1.743 MB / 451.6 MB, free: 15.09 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00544/0.2643, allocations: 2.31 MB / 454 MB, free: 12.78 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.004914/0.2693, allocations: 5.234 MB / 459.2 MB, free: 7.535 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001406/0.2707, allocations: 1.022 MB / 460.2 MB, free: 6.5 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002191/0.2729, allocations: 1.331 MB / 461.5 MB, free: 5.164 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001844/0.2748, allocations: 1.421 MB / 463 MB, free: 3.738 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002093/0.275, allocations: 84 kB / 463 MB, free: 3.656 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003649/0.2786, allocations: 2.004 MB / 465 MB, free: 1.648 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005102/0.2792, allocations: 0.5219 MB / 465.6 MB, free: 1.125 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008062/0.28, allocations: 0.7464 MB / 466.3 MB, free: 384 kB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0039/0.2839, allocations: 3.269 MB / 469.6 MB, free: 13.1 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.2839, allocations: 3.938 kB / 469.6 MB, free: 13.09 MB / 346.7 MB Notification: Performance of FrontEnd: time 8.72e-07/0.2839, allocations: 0 / 469.6 MB, free: 13.09 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.908e-05/0.2839, allocations: 0 / 469.6 MB, free: 13.09 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: 271 * Number of variables: 271 Notification: Performance of Generate backend data structure: time 0.004535/0.2885, allocations: 2.041 MB / 471.6 MB, free: 11 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.763e-05/0.2885, allocations: 12.59 kB / 471.6 MB, free: 10.99 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004766/0.289, allocations: 174.1 kB / 471.8 MB, free: 10.82 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001469/0.2905, allocations: 0.9017 MB / 472.7 MB, free: 9.871 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001645/0.2907, allocations: 234.5 kB / 472.9 MB, free: 9.609 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001791/0.2909, allocations: 99.97 kB / 473 MB, free: 9.512 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002621/0.2935, allocations: 1.789 MB / 474.8 MB, free: 7.668 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.527e-05/0.2935, allocations: 3.938 kB / 474.8 MB, free: 7.664 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001363/0.2937, allocations: 51.91 kB / 474.9 MB, free: 7.613 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001236/0.2938, allocations: 106 kB / 475 MB, free: 7.508 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002708/0.2965, allocations: 1.776 MB / 476.8 MB, free: 5.723 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.011/0.3075, allocations: 6.921 MB / 483.7 MB, free: 14.5 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002475/0.31, allocations: 1.486 MB / 485.2 MB, free: 13 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001266/0.3113, allocations: 0.8851 MB / 486.1 MB, free: 12.12 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007692/0.3121, allocations: 0.6451 MB / 486.7 MB, free: 11.35 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.815e-05/0.3121, allocations: 43.56 kB / 486.7 MB, free: 11.3 MB / 362.7 MB Notification: Performance of pre-optimization done (n=116): time 2.835e-06/0.3121, allocations: 0 / 486.7 MB, free: 11.3 MB / 362.7 MB Notification: Performance of matching and sorting (n=128): time 0.01589/0.328, allocations: 6.613 MB / 493.4 MB, free: 4.562 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.358e-05/0.3281, allocations: 171.5 kB / 493.5 MB, free: 4.359 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001382/0.3295, allocations: 1.107 MB / 494.6 MB, free: 3.234 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000112/0.3297, allocations: 49.7 kB / 494.7 MB, free: 3.18 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000364/0.33, allocations: 0.5004 MB / 495.2 MB, free: 2.672 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000349/0.3304, allocations: 433.8 kB / 495.6 MB, free: 2.242 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004745/0.3309, allocations: 263.5 kB / 495.9 MB, free: 1.98 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000141/0.331, allocations: 361.9 kB / 496.2 MB, free: 1.621 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001307/0.3323, allocations: 0.8441 MB / 497.1 MB, free: 0.7734 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001536/0.3339, allocations: 1.082 MB / 498.1 MB, free: 15.61 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002634/0.3365, allocations: 1.808 MB / 499.9 MB, free: 13.74 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.3365, allocations: 0 / 499.9 MB, free: 13.74 MB / 378.7 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.004604/0.3411, allocations: 2.619 MB / 0.4908 GB, free: 11.09 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.644e-05/0.3412, allocations: 11.98 kB / 0.4908 GB, free: 11.08 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.305e-05/0.3412, allocations: 4 kB / 0.4908 GB, free: 11.08 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003597/0.3448, allocations: 1.3 MB / 0.4921 GB, free: 9.762 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001138/0.346, allocations: 215.7 kB / 0.4923 GB, free: 9.551 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006594/0.3526, allocations: 6.36 MB / 0.4985 GB, free: 2.852 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001429/0.354, allocations: 79.84 kB / 0.4986 GB, free: 2.773 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001536/0.3542, allocations: 59.97 kB / 0.4986 GB, free: 2.715 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001798/0.356, allocations: 1.109 MB / 0.4997 GB, free: 1.602 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00151/0.3575, allocations: 1.066 MB / 0.5007 GB, free: 468 kB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.1767/0.5342, allocations: 1.766 MB / 0.5025 GB, free: 95.79 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.385e-06/0.5343, allocations: 4.719 kB / 0.5025 GB, free: 95.79 MB / 378.7 MB Notification: Performance of matching and sorting (n=170) (initialization_lambda0): time 0.0046/0.5389, allocations: 2.495 MB / 0.5049 GB, free: 94.92 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.8e-05/0.5389, allocations: 11.59 kB / 0.5049 GB, free: 94.92 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.078e-05/0.5389, allocations: 3.938 kB / 0.5049 GB, free: 94.92 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002506/0.5414, allocations: 1.031 MB / 0.5059 GB, free: 94.69 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001197/0.5427, allocations: 224.8 kB / 0.5061 GB, free: 94.67 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005687/0.5484, allocations: 6.094 MB / 0.5121 GB, free: 89.65 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001449/0.5498, allocations: 88.16 kB / 0.5122 GB, free: 89.62 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001581/0.55, allocations: 59.73 kB / 0.5122 GB, free: 89.61 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 12 (hysteresis.y,$PRE.hysteresis.y,lowerTank.inFlow[2],lowerTank.inFlow[1],lowerTank.regularFlow[2],lowerTank.regularFlow[1],upperTank.inFlow[3],upperTank.inFlow[2],upperTank.inFlow[1],upperTank.regularFlow[3],upperTank.regularFlow[2],upperTank.regularFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (126): * Single equations (assignments): 121 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,6,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(2,3), (4,11), (4,11)} Notification: Performance of prepare postOptimizeDAE: time 0.0003783/0.5504, allocations: 265.5 kB / 0.5125 GB, free: 89.38 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002628/0.5507, allocations: 147.4 kB / 0.5126 GB, free: 89.38 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004489/0.5552, allocations: 2.793 MB / 0.5154 GB, free: 88.32 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.869e-05/0.5552, allocations: 18.92 kB / 0.5154 GB, free: 88.32 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.502e-06/0.5552, allocations: 3.906 kB / 0.5154 GB, free: 88.32 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.4e-05/0.5553, allocations: 7.594 kB / 0.5154 GB, free: 88.32 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006434/0.5617, allocations: 4.525 MB / 0.5198 GB, free: 85.48 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.687e-06/0.5617, allocations: 0 / 0.5198 GB, free: 85.48 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000725/0.5625, allocations: 165.8 kB / 0.52 GB, free: 85.32 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002923/0.5654, allocations: 1.296 MB / 0.5212 GB, free: 84.05 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001674/0.5656, allocations: 39.97 kB / 0.5213 GB, free: 84.02 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00491/0.5705, allocations: 6.371 MB / 0.5275 GB, free: 77.36 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.774e-06/0.5705, allocations: 10.5 kB / 0.5275 GB, free: 77.35 MB / 378.7 MB Error: It is not possible to select a new tearing variable, because all remaining variables have the attribute tearingSelect=never Warning: Function Tearing.selectTearingVar failed at least once. Use -d=tearingdump or -d=tearingdumpV for more information. Error: It is not possible to select a new tearing variable, because all remaining variables have the attribute tearingSelect=never Warning: Function Tearing.selectTearingVar failed at least once. Use -d=tearingdump or -d=tearingdumpV for more information. Error: Jacobian A contains non-linear components. This indicates a singular system or internal generation errors. Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3426/0.9132, allocations: 59.67 MB / 0.5858 GB, free: 17.26 MB / 378.7 MB Error: post-optimization module symbolicJacobian (simulation) failed.