Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.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.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_4.0.0_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_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001697/0.001697, 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.398/1.398, 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.0009512/0.0009513, allocations: 102.4 kB / 291.2 MB, free: 10.94 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009033/0.0009035, allocations: 39.88 kB / 350 MB, free: 68 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2634/0.2643, allocations: 49.44 MB / 399.5 MB, free: 33.35 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.02165/0.286, allocations: 31.5 MB / 431 MB, free: 1.754 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01499/0.301, allocations: 10.82 MB / 441.8 MB, free: 6.91 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001873/0.303, allocations: 47.62 kB / 441.8 MB, free: 6.863 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001344/0.3044, allocations: 417.7 kB / 442.2 MB, free: 6.453 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004906/0.3093, allocations: 1.739 MB / 444 MB, free: 4.707 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006118/0.3154, allocations: 2.317 MB / 446.3 MB, free: 2.398 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.006133/0.3216, allocations: 5.219 MB / 451.5 MB, free: 13.17 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001682/0.3233, allocations: 1.022 MB / 452.5 MB, free: 12.13 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002646/0.3259, allocations: 1.327 MB / 453.9 MB, free: 10.8 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002015/0.328, allocations: 1.425 MB / 455.3 MB, free: 9.367 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002277/0.3282, allocations: 84 kB / 455.4 MB, free: 9.285 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003891/0.3321, allocations: 2 MB / 457.4 MB, free: 7.281 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005595/0.3327, allocations: 0.5063 MB / 457.9 MB, free: 6.773 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008712/0.3335, allocations: 0.7386 MB / 458.6 MB, free: 6.031 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004005/0.3376, allocations: 3.269 MB / 461.9 MB, free: 2.754 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.3376, allocations: 0 / 461.9 MB, free: 2.754 MB / 330.7 MB Notification: Performance of FrontEnd: time 6.21e-07/0.3376, allocations: 4 kB / 461.9 MB, free: 2.75 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.631e-05/0.3376, allocations: 0 / 461.9 MB, free: 2.75 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: 271 * Number of variables: 271 Notification: Performance of Generate backend data structure: time 0.004644/0.3423, allocations: 2.041 MB / 463.9 MB, free: 0.6562 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.962e-05/0.3423, allocations: 8.031 kB / 463.9 MB, free: 0.6484 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004691/0.3428, allocations: 170.1 kB / 464.1 MB, free: 492 kB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001504/0.3443, allocations: 0.8979 MB / 465 MB, free: 15.54 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001701/0.3445, allocations: 230.5 kB / 465.2 MB, free: 15.28 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001732/0.3447, allocations: 103.9 kB / 465.3 MB, free: 15.18 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002641/0.3473, allocations: 1.794 MB / 467.1 MB, free: 13.33 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.358e-05/0.3473, allocations: 4 kB / 467.1 MB, free: 13.32 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001553/0.3475, allocations: 47.91 kB / 467.2 MB, free: 13.28 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001258/0.3476, allocations: 106 kB / 467.3 MB, free: 13.17 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002765/0.3504, allocations: 1.772 MB / 469.1 MB, free: 11.39 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.01137/0.3618, allocations: 6.928 MB / 476 MB, free: 4.156 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002603/0.3644, allocations: 1.486 MB / 477.5 MB, free: 2.664 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001325/0.3657, allocations: 0.8783 MB / 478.3 MB, free: 1.785 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008556/0.3666, allocations: 0.6451 MB / 479 MB, free: 1.012 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.775e-05/0.3667, allocations: 51.5 kB / 479 MB, free: 0.9531 MB / 346.7 MB Notification: Performance of pre-optimization done (n=116): time 2.785e-06/0.3667, allocations: 0 / 479 MB, free: 0.9531 MB / 346.7 MB Notification: Performance of matching and sorting (n=128): time 0.01862/0.3853, allocations: 6.627 MB / 485.7 MB, free: 10.21 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001437/0.3855, allocations: 171.5 kB / 485.8 MB, free: 10 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001709/0.3872, allocations: 1.103 MB / 486.9 MB, free: 8.883 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001777/0.3874, allocations: 45.7 kB / 487 MB, free: 8.832 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005188/0.3879, allocations: 0.5004 MB / 487.5 MB, free: 8.324 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004733/0.3884, allocations: 441.8 kB / 487.9 MB, free: 7.887 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004994/0.3889, allocations: 259.5 kB / 488.2 MB, free: 7.629 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.00016/0.3891, allocations: 361.9 kB / 488.5 MB, free: 7.27 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001376/0.3905, allocations: 0.8519 MB / 489.4 MB, free: 6.414 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001584/0.3921, allocations: 1.072 MB / 490.4 MB, free: 5.266 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002701/0.3948, allocations: 1.804 MB / 492.3 MB, free: 3.395 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.172e-06/0.3948, allocations: 4 kB / 492.3 MB, free: 3.391 MB / 362.7 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.004531/0.3993, allocations: 2.615 MB / 494.9 MB, free: 0.75 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.469e-05/0.3994, allocations: 8 kB / 494.9 MB, free: 0.7422 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.433e-05/0.3994, allocations: 4 kB / 494.9 MB, free: 0.7383 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003525/0.4029, allocations: 1.304 MB / 496.2 MB, free: 15.42 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000963/0.4039, allocations: 215.6 kB / 496.4 MB, free: 15.21 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0064/0.4103, allocations: 6.351 MB / 0.491 GB, free: 8.512 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001409/0.4117, allocations: 83.91 kB / 0.491 GB, free: 8.43 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001417/0.4119, allocations: 63.91 kB / 0.4911 GB, free: 8.367 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001789/0.4137, allocations: 1.105 MB / 0.4922 GB, free: 7.258 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001482/0.4152, allocations: 1.059 MB / 0.4932 GB, free: 6.121 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002615/0.4178, allocations: 1.77 MB / 0.4949 GB, free: 4.277 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.561e-06/0.4178, allocations: 3.938 kB / 0.495 GB, free: 4.273 MB / 378.7 MB Notification: Performance of matching and sorting (n=170) (initialization_lambda0): time 0.004511/0.4223, allocations: 2.495 MB / 0.4974 GB, free: 1.754 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.909e-05/0.4224, allocations: 12.03 kB / 0.4974 GB, free: 1.742 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.817e-06/0.4224, allocations: 4 kB / 0.4974 GB, free: 1.738 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002524/0.4249, allocations: 1.019 MB / 0.4984 GB, free: 0.7031 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001057/0.426, allocations: 231.6 kB / 0.4986 GB, free: 488 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1836/0.6097, allocations: 6.095 MB / 0.5046 GB, free: 96.76 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001454/0.6111, allocations: 89.16 kB / 0.5047 GB, free: 96.74 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001488/0.6113, allocations: 59.25 kB / 0.5047 GB, free: 96.73 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.0006049/0.6119, allocations: 267.1 kB / 0.505 GB, free: 96.51 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003335/0.6122, allocations: 133.2 kB / 0.5051 GB, free: 96.51 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00485/0.6171, allocations: 2.807 MB / 0.5078 GB, free: 95.46 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.352e-05/0.6172, allocations: 17.78 kB / 0.5079 GB, free: 95.46 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.404e-06/0.6172, allocations: 2.25 kB / 0.5079 GB, free: 95.46 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.258e-05/0.6172, allocations: 11.7 kB / 0.5079 GB, free: 95.46 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006575/0.6238, allocations: 4.518 MB / 0.5123 GB, free: 93.51 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.743e-06/0.6238, allocations: 2.25 kB / 0.5123 GB, free: 93.51 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007319/0.6245, allocations: 160.5 kB / 0.5124 GB, free: 93.47 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002867/0.6274, allocations: 1.302 MB / 0.5137 GB, free: 92.91 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001128/0.6275, allocations: 39.44 kB / 0.5137 GB, free: 92.88 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004644/0.6322, allocations: 6.387 MB / 0.52 GB, free: 87.16 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.6322, allocations: 0 / 0.52 GB, free: 87.16 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.329/0.9612, allocations: 59.44 MB / 0.578 GB, free: 27.43 MB / 378.7 MB Error: post-optimization module symbolicJacobian (simulation) failed.