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.001504/0.001504, allocations: 108.6 kB / 16.92 MB, free: 6.145 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.001045/0.001045, allocations: 191.5 kB / 17.85 MB, free: 5.309 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.47/1.47, allocations: 205.1 MB / 223.7 MB, free: 12.31 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.001403/0.001404, allocations: 47.94 kB / 280 MB, free: 3.188 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.114/0.1154, allocations: 46.63 MB / 326.6 MB, free: 4.484 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.03197/0.1474, allocations: 30.15 MB / 356.8 MB, free: 6.211 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01616/0.1636, allocations: 10.26 MB / 367 MB, free: 11.92 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001566/0.1652, allocations: 31.81 kB / 367.1 MB, free: 11.89 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001437/0.1667, allocations: 488.9 kB / 367.5 MB, free: 11.41 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005612/0.1723, allocations: 1.862 MB / 369.4 MB, free: 9.539 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007714/0.18, allocations: 2.747 MB / 372.1 MB, free: 6.785 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005229/0.1853, allocations: 3.683 MB / 375.8 MB, free: 3.094 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001875/0.1872, allocations: 1.158 MB / 377 MB, free: 1.922 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003442/0.1906, allocations: 1.495 MB / 378.5 MB, free: 432 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2478/0.4384, allocations: 1.412 MB / 379.9 MB, free: 13.8 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006529/0.4391, allocations: 156.1 kB / 380 MB, free: 13.8 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006609/0.4458, allocations: 2.067 MB / 382.1 MB, free: 13.8 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001297/0.4471, allocations: 0.5815 MB / 382.7 MB, free: 13.8 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00254/0.4496, allocations: 0.8065 MB / 383.5 MB, free: 13.8 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01009/0.4597, allocations: 3.312 MB / 386.8 MB, free: 13.6 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.523e-06/0.4598, allocations: 1.438 kB / 386.8 MB, free: 13.6 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.945e-06/0.4598, allocations: 0 / 386.8 MB, free: 13.6 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.588e-05/0.4599, allocations: 1.531 kB / 386.8 MB, free: 13.6 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.007213/0.4671, allocations: 2.041 MB / 388.9 MB, free: 12.62 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.33e-05/0.4672, allocations: 10.28 kB / 388.9 MB, free: 12.62 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006854/0.4679, allocations: 159.1 kB / 389 MB, free: 12.55 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001617/0.4695, allocations: 0.9084 MB / 389.9 MB, free: 12.21 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002157/0.4697, allocations: 235.5 kB / 390.2 MB, free: 12.05 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002233/0.47, allocations: 103.6 kB / 390.3 MB, free: 12.05 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003269/0.4732, allocations: 1.791 MB / 392.1 MB, free: 11.88 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.53e-05/0.4733, allocations: 7.656 kB / 392.1 MB, free: 11.88 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001629/0.4735, allocations: 45.33 kB / 392.1 MB, free: 11.88 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001433/0.4736, allocations: 101.1 kB / 392.2 MB, free: 11.87 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002978/0.4766, allocations: 1.775 MB / 394 MB, free: 11.85 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.01174/0.4883, allocations: 6.938 MB / 400.9 MB, free: 9.551 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002534/0.4909, allocations: 1.489 MB / 402.4 MB, free: 9.512 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00125/0.4922, allocations: 0.8779 MB / 403.3 MB, free: 9.5 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007295/0.4929, allocations: 0.6442 MB / 403.9 MB, free: 8.84 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.157e-05/0.493, allocations: 50.16 kB / 404 MB, free: 8.801 MB / 318.1 MB Notification: Performance of pre-optimization done (n=116): time 3.596e-06/0.493, allocations: 0 / 404 MB, free: 8.801 MB / 318.1 MB Notification: Performance of matching and sorting (n=128): time 0.01599/0.509, allocations: 6.628 MB / 410.6 MB, free: 6.039 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.276e-05/0.5091, allocations: 171.1 kB / 410.8 MB, free: 5.848 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001316/0.5104, allocations: 1.092 MB / 411.9 MB, free: 5.246 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001558/0.5106, allocations: 50.8 kB / 411.9 MB, free: 5.195 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003337/0.5109, allocations: 0.5035 MB / 412.4 MB, free: 4.754 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004192/0.5113, allocations: 431.3 kB / 412.8 MB, free: 4.395 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005326/0.5119, allocations: 272.9 kB / 413.1 MB, free: 4.242 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001234/0.512, allocations: 368.1 kB / 413.5 MB, free: 3.895 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001267/0.5133, allocations: 0.8493 MB / 414.3 MB, free: 3.441 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00148/0.5148, allocations: 1.069 MB / 415.4 MB, free: 2.742 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002458/0.5172, allocations: 1.809 MB / 417.2 MB, free: 1.336 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.781e-06/0.5173, allocations: 4 kB / 417.2 MB, free: 1.332 MB / 318.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.004655/0.5219, allocations: 2.616 MB / 419.8 MB, free: 14.73 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.915e-05/0.522, allocations: 4 kB / 419.8 MB, free: 14.72 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.56e-05/0.522, allocations: 4.312 kB / 419.8 MB, free: 14.72 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003817/0.5258, allocations: 1.316 MB / 421.1 MB, free: 13.4 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001104/0.5269, allocations: 212.3 kB / 421.3 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007252/0.5342, allocations: 6.722 MB / 428.1 MB, free: 6.176 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001909/0.5361, allocations: 71.88 kB / 428.1 MB, free: 6.105 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001945/0.5364, allocations: 55.97 kB / 428.2 MB, free: 6.051 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002056/0.5384, allocations: 1.106 MB / 429.3 MB, free: 4.941 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001552/0.54, allocations: 1.062 MB / 430.4 MB, free: 3.801 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002792/0.5428, allocations: 1.772 MB / 432.1 MB, free: 1.98 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.723e-06/0.5428, allocations: 4 kB / 432.1 MB, free: 1.977 MB / 334.1 MB Notification: Performance of matching and sorting (n=170) (initialization_lambda0): time 0.004687/0.5475, allocations: 2.494 MB / 434.6 MB, free: 15.49 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/0.5475, allocations: 7.938 kB / 434.6 MB, free: 15.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.144e-05/0.5475, allocations: 8 kB / 434.6 MB, free: 15.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002621/0.5502, allocations: 1.03 MB / 435.7 MB, free: 14.44 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001073/0.5513, allocations: 228.7 kB / 435.9 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00647/0.5577, allocations: 6.466 MB / 442.4 MB, free: 7.449 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001771/0.5595, allocations: 68.02 kB / 442.4 MB, free: 7.383 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00016/0.5597, allocations: 59.97 kB / 442.5 MB, free: 7.324 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.0006028/0.5603, allocations: 265.1 kB / 442.7 MB, free: 7.07 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003332/0.5607, allocations: 130.4 kB / 442.9 MB, free: 6.941 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005582/0.5663, allocations: 2.809 MB / 445.7 MB, free: 4.125 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.359e-05/0.5663, allocations: 19.98 kB / 445.7 MB, free: 4.105 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.652e-06/0.5663, allocations: 0 / 445.7 MB, free: 4.105 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.757e-05/0.5663, allocations: 7.969 kB / 445.7 MB, free: 4.098 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008786/0.5751, allocations: 4.528 MB / 450.2 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.143e-05/0.5752, allocations: 4 kB / 450.2 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000886/0.5761, allocations: 153.5 kB / 450.4 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003427/0.5795, allocations: 1.299 MB / 451.7 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000156/0.5797, allocations: 35.98 kB / 451.7 MB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006954/0.5867, allocations: 6.748 MB / 458.5 MB, free: 6.988 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-06/0.5867, allocations: 8 kB / 458.5 MB, free: 6.98 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006979/0.5937, allocations: 3.945 MB / 462.4 MB, free: 3.016 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001219/0.595, allocations: 435.1 kB / 462.9 MB, free: 2.57 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002889/0.5953, allocations: 28 kB / 462.9 MB, free: 2.543 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001102/0.5964, allocations: 67.88 kB / 462.9 MB, free: 2.477 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003902/0.5968, allocations: 152.4 kB / 463.1 MB, free: 2.328 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001732/0.5969, allocations: 47.97 kB / 463.1 MB, free: 2.281 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001285/0.5982, allocations: 0.7493 MB / 463.9 MB, free: 1.523 MB / 366.1 MB Notification: Performance of sort global known variables: time 6.42e-07/0.5982, allocations: 0 / 463.9 MB, free: 1.523 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.004659/0.6029, allocations: 1.054 MB / 464.9 MB, free: 480 kB / 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.003045/0.606, allocations: 0.7319 MB / 465.7 MB, free: 15.78 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.01015/0.6161, allocations: 4.388 MB / 470.1 MB, free: 11.4 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.354e-06/0.6162, allocations: 0 / 470.1 MB, free: 11.4 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003156/0.6194, allocations: 1.434 MB / 471.5 MB, free: 9.961 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003376/0.6227, allocations: 0.6203 MB / 472.1 MB, free: 9.34 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006814/0.6296, allocations: 3.126 MB / 475.2 MB, free: 6.211 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001314/0.6309, allocations: 1.272 MB / 476.5 MB, free: 4.906 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002415/0.6333, allocations: 0.5757 MB / 477.1 MB, free: 4.332 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003786/0.6337, allocations: 119.4 kB / 477.2 MB, free: 4.215 MB / 382.1 MB Notification: Performance of SimCode: time 9.72e-07/0.6337, allocations: 0 / 477.2 MB, free: 4.215 MB / 382.1 MB Notification: Performance of Templates: time 0.08122/0.715, allocations: 46.51 MB / 0.5114 GB, free: 5.77 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)