Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") translateModel(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.0009082/0.0009083, allocations: 88.7 kB / 16.65 MB, free: 6.535 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.001101/0.001101, allocations: 173 kB / 17.56 MB, free: 6.184 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.575/1.575, allocations: 205.4 MB / 223.7 MB, free: 12.98 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.0004769/0.0004769, allocations: 12 kB / 280.7 MB, free: 3.398 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1155/0.116, allocations: 47.58 MB / 328.3 MB, free: 3.746 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.03092/0.147, allocations: 30.75 MB / 359.1 MB, free: 4.879 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01657/0.1636, allocations: 10.64 MB / 369.7 MB, free: 10.21 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001787/0.1655, allocations: 43.62 kB / 369.7 MB, free: 10.16 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001528/0.167, allocations: 413.8 kB / 370.1 MB, free: 9.758 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005756/0.1728, allocations: 1.739 MB / 371.9 MB, free: 8.012 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007119/0.1799, allocations: 2.307 MB / 374.2 MB, free: 5.699 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006963/0.1869, allocations: 5.198 MB / 379.4 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2512/0.4381, allocations: 0.9981 MB / 380.4 MB, free: 11.75 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005167/0.4433, allocations: 1.299 MB / 381.7 MB, free: 11.75 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003982/0.4473, allocations: 1.395 MB / 383.1 MB, free: 11.75 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000535/0.4479, allocations: 80 kB / 383.2 MB, free: 11.75 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006658/0.4546, allocations: 1.985 MB / 385.1 MB, free: 11.75 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001645/0.4563, allocations: 0.4981 MB / 385.6 MB, free: 11.75 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002231/0.4585, allocations: 0.7511 MB / 386.4 MB, free: 11.54 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009557/0.4681, allocations: 3.219 MB / 389.6 MB, free: 11.31 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.204e-06/0.4682, allocations: 1 kB / 389.6 MB, free: 11.31 MB / 318.1 MB Notification: Performance of FrontEnd: time 5.159e-06/0.4682, allocations: 0 / 389.6 MB, free: 11.31 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.46e-05/0.4683, allocations: 3.094 kB / 389.6 MB, free: 11.31 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.006638/0.4749, allocations: 1.771 MB / 391.4 MB, free: 10.36 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.7e-05/0.475, allocations: 13.06 kB / 391.4 MB, free: 10.35 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001012/0.476, allocations: 165.8 kB / 391.6 MB, free: 10.28 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002135/0.4782, allocations: 0.9006 MB / 392.5 MB, free: 9.941 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002168/0.4784, allocations: 239.7 kB / 392.7 MB, free: 9.781 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002914/0.4787, allocations: 99.31 kB / 392.8 MB, free: 9.781 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003517/0.4822, allocations: 1.789 MB / 394.6 MB, free: 9.609 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.4e-05/0.4823, allocations: 1.375 kB / 394.6 MB, free: 9.609 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001621/0.4824, allocations: 43.08 kB / 394.6 MB, free: 9.609 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001692/0.4826, allocations: 109.4 kB / 394.7 MB, free: 9.602 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003451/0.4861, allocations: 1.776 MB / 396.5 MB, free: 9.586 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.01341/0.4995, allocations: 6.959 MB / 403.5 MB, free: 7.051 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002493/0.502, allocations: 1.492 MB / 405 MB, free: 6.805 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001271/0.5033, allocations: 0.8831 MB / 405.8 MB, free: 6.664 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000762/0.5041, allocations: 0.6625 MB / 406.5 MB, free: 5.973 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.858e-05/0.5042, allocations: 50.69 kB / 406.6 MB, free: 5.93 MB / 318.1 MB Notification: Performance of pre-optimization done (n=116): time 3.046e-06/0.5042, allocations: 0.75 kB / 406.6 MB, free: 5.93 MB / 318.1 MB Notification: Performance of matching and sorting (n=128): time 0.01605/0.5202, allocations: 6.671 MB / 413.2 MB, free: 3.996 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.01e-05/0.5203, allocations: 173.2 kB / 413.4 MB, free: 3.805 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001417/0.5217, allocations: 1.098 MB / 414.5 MB, free: 3.375 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001622/0.5219, allocations: 47.2 kB / 414.5 MB, free: 3.328 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003311/0.5223, allocations: 0.4932 MB / 415 MB, free: 2.891 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003657/0.5226, allocations: 442.6 kB / 415.5 MB, free: 2.523 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001891/0.5228, allocations: 118 kB / 415.6 MB, free: 2.445 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001014/0.5229, allocations: 369.8 kB / 415.9 MB, free: 2.098 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001237/0.5242, allocations: 0.8374 MB / 416.8 MB, free: 1.66 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001396/0.5256, allocations: 1.072 MB / 417.9 MB, free: 0.957 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00265/0.5282, allocations: 1.809 MB / 419.7 MB, free: 15.32 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.26e-06/0.5283, allocations: 0 / 419.7 MB, free: 15.32 MB / 334.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.005114/0.5334, allocations: 2.618 MB / 422.3 MB, free: 12.71 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002171/0.5336, allocations: 235 kB / 422.5 MB, free: 12.41 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.455e-05/0.5337, allocations: 11.94 kB / 422.5 MB, free: 12.4 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003649/0.5373, allocations: 1.303 MB / 423.8 MB, free: 11.1 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001164/0.5385, allocations: 219.4 kB / 424 MB, free: 10.9 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007396/0.5459, allocations: 6.35 MB / 430.4 MB, free: 4.242 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002129/0.5481, allocations: 101.6 kB / 430.5 MB, free: 4.145 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002478/0.5483, allocations: 55.97 kB / 430.5 MB, free: 4.09 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.022e-05/0.5484, allocations: 4 kB / 430.5 MB, free: 4.086 MB / 334.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004782/0.5531, allocations: 2.357 MB / 432.9 MB, free: 1.746 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.749e-05/0.5532, allocations: 4 kB / 432.9 MB, free: 1.742 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002658/0.5559, allocations: 1.031 MB / 433.9 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001161/0.557, allocations: 229.6 kB / 434.2 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006864/0.5639, allocations: 6.104 MB / 440.3 MB, free: 10.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002084/0.5661, allocations: 99.84 kB / 440.4 MB, free: 9.992 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001898/0.5663, allocations: 55.97 kB / 440.4 MB, free: 9.938 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.001115/0.5674, allocations: 459.3 kB / 440.9 MB, free: 9.492 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003381/0.5677, allocations: 130.4 kB / 441 MB, free: 9.363 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005311/0.5731, allocations: 2.808 MB / 443.8 MB, free: 6.551 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.68e-05/0.5731, allocations: 16 kB / 443.8 MB, free: 6.535 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.614e-06/0.5731, allocations: 0 / 443.8 MB, free: 6.535 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.619e-05/0.5732, allocations: 7.969 kB / 443.8 MB, free: 6.527 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008053/0.5812, allocations: 4.532 MB / 448.4 MB, free: 1.961 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.063e-05/0.5813, allocations: 4 kB / 448.4 MB, free: 1.957 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008203/0.5821, allocations: 158.6 kB / 448.5 MB, free: 1.812 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00352/0.5856, allocations: 1.307 MB / 449.8 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002272/0.5859, allocations: 35.98 kB / 449.9 MB, free: 472 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007021/0.5929, allocations: 6.387 MB / 456.2 MB, free: 9.77 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.593, allocations: 7.875 kB / 456.3 MB, free: 9.762 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007976/0.6009, allocations: 3.948 MB / 460.2 MB, free: 5.797 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001595/0.6026, allocations: 451 kB / 460.6 MB, free: 5.336 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002462/0.6029, allocations: 28 kB / 460.7 MB, free: 5.309 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001172/0.6041, allocations: 95.86 kB / 460.8 MB, free: 5.215 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004076/0.6045, allocations: 137.1 kB / 460.9 MB, free: 5.078 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001429/0.6046, allocations: 52.53 kB / 460.9 MB, free: 5.027 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001415/0.606, allocations: 0.7493 MB / 461.7 MB, free: 4.27 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.6061, allocations: 0 / 461.7 MB, free: 4.27 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.004135/0.6102, allocations: 1.054 MB / 462.8 MB, free: 3.215 MB / 366.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.002713/0.6129, allocations: 0.739 MB / 463.5 MB, free: 2.531 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.008761/0.6217, allocations: 3.798 MB / 467.3 MB, free: 14.73 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.015e-05/0.6217, allocations: 4 kB / 467.3 MB, free: 14.72 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003165/0.6249, allocations: 1.427 MB / 468.7 MB, free: 13.29 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003747/0.6287, allocations: 0.6052 MB / 469.3 MB, free: 12.68 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006928/0.6356, allocations: 3.691 MB / 473 MB, free: 8.977 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009446/0.6366, allocations: 1.272 MB / 474.3 MB, free: 7.676 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002208/0.6388, allocations: 0.5757 MB / 474.9 MB, free: 7.102 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000361/0.6392, allocations: 126.9 kB / 475 MB, free: 6.98 MB / 382.1 MB Notification: Performance of SimCode: time 1.193e-06/0.6392, allocations: 0 / 475 MB, free: 6.98 MB / 382.1 MB Notification: Performance of Templates: time 0.07231/0.7115, allocations: 43.85 MB / 0.5067 GB, free: 11.21 MB / 430.1 MB make -j1 -f Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.makefile (rm -f Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; mkfifo Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe >> ../files/Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.sim & ./Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.TanksWithOverflow -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe 2>&1)