Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_3.2.3_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_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001334/0.001334, allocations: 107.3 kB / 18.35 MB, free: 4.773 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001144/0.001144, allocations: 192 kB / 19.29 MB, free: 3.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.474/1.474, allocations: 205.1 MB / 225.2 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001253/0.001253, allocations: 47.94 kB / 282.1 MB, free: 2.469 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09497/0.09623, allocations: 46.63 MB / 328.7 MB, free: 3.773 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.03012/0.1264, allocations: 30.17 MB / 358.9 MB, free: 5.484 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01375/0.1402, allocations: 10.26 MB / 369.1 MB, free: 11.2 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001175/0.1414, allocations: 35.81 kB / 369.2 MB, free: 11.16 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001188/0.1426, allocations: 477 kB / 369.6 MB, free: 10.69 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004075/0.1467, allocations: 1.866 MB / 371.5 MB, free: 8.816 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006588/0.1533, allocations: 2.743 MB / 374.3 MB, free: 6.066 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004681/0.158, allocations: 3.674 MB / 377.9 MB, free: 2.383 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001442/0.1595, allocations: 1.162 MB / 379.1 MB, free: 1.207 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1939/0.3533, allocations: 1.502 MB / 380.6 MB, free: 14.13 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00283/0.3562, allocations: 1.411 MB / 382 MB, free: 14.13 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005225/0.3567, allocations: 154 kB / 382.2 MB, free: 14.13 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005063/0.3618, allocations: 2.072 MB / 384.2 MB, free: 14.13 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008123/0.3626, allocations: 0.5806 MB / 384.8 MB, free: 14.13 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001352/0.364, allocations: 0.8029 MB / 385.6 MB, free: 14.02 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006247/0.3703, allocations: 3.345 MB / 389 MB, free: 13.79 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.3703, allocations: 0 / 389 MB, free: 13.79 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.3703, allocations: 0 / 389 MB, free: 13.79 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.407e-05/0.3703, allocations: 0 / 389 MB, free: 13.79 MB / 318.1 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.005341/0.3757, allocations: 2.043 MB / 391 MB, free: 12.82 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.25e-05/0.3757, allocations: 13.41 kB / 391 MB, free: 12.82 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006007/0.3763, allocations: 160.6 kB / 391.2 MB, free: 12.75 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001877/0.3782, allocations: 0.9473 MB / 392.1 MB, free: 12.41 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001927/0.3784, allocations: 237.9 kB / 392.3 MB, free: 12.25 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002174/0.3787, allocations: 95.86 kB / 392.4 MB, free: 12.25 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002764/0.3814, allocations: 1.794 MB / 394.2 MB, free: 12.07 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.072e-05/0.3815, allocations: 5.25 kB / 394.2 MB, free: 12.07 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000152/0.3816, allocations: 46.02 kB / 394.3 MB, free: 12.07 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001218/0.3818, allocations: 101.9 kB / 394.4 MB, free: 12.07 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002835/0.3846, allocations: 1.776 MB / 396.2 MB, free: 12.05 MB / 318.1 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.01049/0.3951, allocations: 6.92 MB / 403.1 MB, free: 9.75 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002348/0.3975, allocations: 1.495 MB / 404.6 MB, free: 9.699 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001475/0.399, allocations: 0.8785 MB / 405.5 MB, free: 9.688 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008634/0.3998, allocations: 0.6533 MB / 406.1 MB, free: 9.027 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.076e-05/0.3999, allocations: 48.94 kB / 406.2 MB, free: 8.988 MB / 318.1 MB Notification: Performance of pre-optimization done (n=116): time 3.176e-06/0.3999, allocations: 0 / 406.2 MB, free: 8.988 MB / 318.1 MB Notification: Performance of matching and sorting (n=128): time 0.01512/0.415, allocations: 6.612 MB / 412.8 MB, free: 5.828 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.58e-05/0.4151, allocations: 173.5 kB / 412.9 MB, free: 5.637 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001269/0.4164, allocations: 1.098 MB / 414 MB, free: 5.031 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001364/0.4165, allocations: 48.73 kB / 414.1 MB, free: 4.984 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002941/0.4168, allocations: 0.5038 MB / 414.6 MB, free: 4.539 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000289/0.4171, allocations: 436.7 kB / 415 MB, free: 4.176 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000478/0.4176, allocations: 265.3 kB / 415.3 MB, free: 4.031 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.6e-05/0.4177, allocations: 365 kB / 415.6 MB, free: 3.684 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00123/0.4189, allocations: 0.8448 MB / 416.5 MB, free: 3.234 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001295/0.4203, allocations: 1.076 MB / 417.5 MB, free: 2.297 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002285/0.4225, allocations: 1.808 MB / 419.4 MB, free: 452 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.829e-06/0.4226, allocations: 2.25 kB / 419.4 MB, free: 452 kB / 318.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.004843/0.4274, allocations: 2.616 MB / 422 MB, free: 13.84 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.342e-05/0.4275, allocations: 15.92 kB / 422 MB, free: 13.82 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.257e-05/0.4275, allocations: 4 kB / 422 MB, free: 13.82 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003728/0.4312, allocations: 1.311 MB / 423.3 MB, free: 12.5 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001085/0.4323, allocations: 216.3 kB / 423.5 MB, free: 12.3 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007075/0.4394, allocations: 6.708 MB / 430.2 MB, free: 5.277 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001563/0.441, allocations: 63.89 kB / 430.3 MB, free: 5.215 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001644/0.4412, allocations: 59.97 kB / 430.3 MB, free: 5.156 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001918/0.4431, allocations: 1.105 MB / 431.4 MB, free: 4.047 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001534/0.4446, allocations: 1.062 MB / 432.5 MB, free: 2.906 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002756/0.4474, allocations: 1.778 MB / 434.3 MB, free: 1.082 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.908e-06/0.4474, allocations: 0 / 434.3 MB, free: 1.082 MB / 334.1 MB Notification: Performance of matching and sorting (n=170) (initialization_lambda0): time 0.004537/0.452, allocations: 2.492 MB / 436.8 MB, free: 14.6 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.584e-05/0.452, allocations: 11.94 kB / 436.8 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/0.452, allocations: 4 kB / 436.8 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002492/0.4545, allocations: 1.024 MB / 437.8 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001004/0.4555, allocations: 233.3 kB / 438 MB, free: 13.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006186/0.4617, allocations: 6.464 MB / 444.5 MB, free: 6.566 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001488/0.4632, allocations: 71.94 kB / 444.6 MB, free: 6.496 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001578/0.4634, allocations: 59.97 kB / 444.6 MB, free: 6.438 MB / 350.1 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.0004607/0.4639, allocations: 269.7 kB / 444.9 MB, free: 6.18 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002957/0.4642, allocations: 134.4 kB / 445 MB, free: 6.047 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005223/0.4694, allocations: 2.808 MB / 447.8 MB, free: 3.23 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.936e-05/0.4694, allocations: 16 kB / 447.9 MB, free: 3.215 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.4694, allocations: 0 / 447.9 MB, free: 3.215 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.471e-05/0.4695, allocations: 11.97 kB / 447.9 MB, free: 3.203 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007498/0.477, allocations: 4.527 MB / 452.4 MB, free: 14.64 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.6e-06/0.477, allocations: 7.688 kB / 452.4 MB, free: 14.64 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008036/0.4778, allocations: 158.6 kB / 452.6 MB, free: 14.49 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003167/0.481, allocations: 1.283 MB / 453.8 MB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001324/0.4811, allocations: 35.97 kB / 453.9 MB, free: 13.16 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006449/0.4876, allocations: 6.742 MB / 460.6 MB, free: 6.105 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.529e-06/0.4876, allocations: 4.125 kB / 460.6 MB, free: 6.102 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00663/0.4942, allocations: 3.95 MB / 464.6 MB, free: 2.125 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001039/0.4953, allocations: 427.2 kB / 465 MB, free: 1.688 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002473/0.4956, allocations: 28 kB / 465 MB, free: 1.66 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001027/0.4966, allocations: 63.95 kB / 465.1 MB, free: 1.598 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003392/0.497, allocations: 149 kB / 465.2 MB, free: 1.453 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001408/0.4971, allocations: 47.97 kB / 465.3 MB, free: 1.406 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001014/0.4981, allocations: 0.7532 MB / 466 MB, free: 0.6445 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.102e-06/0.4981, allocations: 0 / 466 MB, free: 0.6445 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.003007/0.5011, allocations: 1.053 MB / 467.1 MB, free: 15.59 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (upperTank.level,upperTank.medium.T,lowerTank.level,lowerTank.medium.T) * Number of discrete variables: 11 (upperTank.regularFlow[1],upperTank.regularFlow[2],upperTank.regularFlow[3],upperTank.inFlow[1],upperTank.inFlow[2],upperTank.inFlow[3],lowerTank.regularFlow[1],lowerTank.regularFlow[2],lowerTank.inFlow[1],lowerTank.inFlow[2],hysteresis.y) * Number of discrete states: 1 (hysteresis.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (97): * Single equations (assignments): 88 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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,4), (4,14), (4,14)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001796/0.5029, allocations: 0.7373 MB / 467.8 MB, free: 14.91 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.007353/0.5103, allocations: 3.826 MB / 471.6 MB, free: 11.08 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.099e-06/0.5103, allocations: 1.188 kB / 471.6 MB, free: 11.08 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00294/0.5133, allocations: 1.441 MB / 473.1 MB, free: 9.629 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002809/0.5161, allocations: 0.628 MB / 473.7 MB, free: 9 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005926/0.522, allocations: 3.087 MB / 476.8 MB, free: 5.902 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008062/0.5229, allocations: 1.268 MB / 478.1 MB, free: 4.605 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00161/0.5245, allocations: 0.5757 MB / 478.6 MB, free: 4.031 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00035/0.5248, allocations: 123.4 kB / 478.8 MB, free: 3.91 MB / 382.1 MB Notification: Performance of SimCode: time 5.11e-07/0.5249, allocations: 3.938 kB / 478.8 MB, free: 3.906 MB / 382.1 MB Notification: Performance of Templates: time 0.06745/0.5923, allocations: 46.48 MB / 0.5129 GB, free: 5.496 MB / 430.1 MB make -j1 -f Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.makefile (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.sim & ./Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe 2>&1)