Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_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.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") translateModel(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="Modelica_3.1_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.008796/0.008796, allocations: 100.9 kB / 15.73 MB, free: 6.047 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.001871/0.001871, allocations: 198.8 kB / 16.67 MB, free: 5.977 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.506/1.506, allocations: 205.1 MB / 222.5 MB, free: 4.371 MB / 174.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.001295/0.001295, allocations: 50.47 kB / 326.5 MB, free: 14.45 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1174/0.1187, allocations: 46.63 MB / 373.2 MB, free: 1.305 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.03964/0.1584, allocations: 30.16 MB / 403.3 MB, free: 3.031 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01831/0.1768, allocations: 10.26 MB / 413.6 MB, free: 8.742 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002189/0.179, allocations: 35.81 kB / 413.6 MB, free: 8.707 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002156/0.1812, allocations: 473 kB / 414.1 MB, free: 8.242 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007251/0.1885, allocations: 1.866 MB / 415.9 MB, free: 6.367 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009971/0.1985, allocations: 2.755 MB / 418.7 MB, free: 3.602 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006584/0.2051, allocations: 3.681 MB / 422.4 MB, free: 15.91 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002638/0.2078, allocations: 1.146 MB / 423.5 MB, free: 14.75 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004689/0.2125, allocations: 1.507 MB / 425 MB, free: 13.24 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003683/0.2162, allocations: 1.421 MB / 426.5 MB, free: 11.81 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008031/0.217, allocations: 152 kB / 426.6 MB, free: 11.66 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006548/0.2236, allocations: 2.075 MB / 428.7 MB, free: 9.586 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001637/0.2253, allocations: 0.5805 MB / 429.3 MB, free: 9.004 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004029/0.2293, allocations: 0.7972 MB / 430.1 MB, free: 8.203 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009804/0.2392, allocations: 3.351 MB / 433.4 MB, free: 4.844 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.116e-06/0.2392, allocations: 0 / 433.4 MB, free: 4.844 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.675e-06/0.2393, allocations: 0 / 433.4 MB, free: 4.844 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.579e-05/0.2393, allocations: 0 / 433.4 MB, free: 4.844 MB / 366.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.005947/0.2453, allocations: 2.045 MB / 435.5 MB, free: 2.742 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.29e-05/0.2453, allocations: 12.03 kB / 435.5 MB, free: 2.73 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006067/0.2459, allocations: 166.2 kB / 435.6 MB, free: 2.566 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00181/0.2478, allocations: 0.937 MB / 436.6 MB, free: 1.586 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002046/0.248, allocations: 242.5 kB / 436.8 MB, free: 1.32 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002042/0.2482, allocations: 95.89 kB / 436.9 MB, free: 1.227 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002997/0.2512, allocations: 1.798 MB / 438.7 MB, free: 15.37 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.164e-05/0.2512, allocations: 3.938 kB / 438.7 MB, free: 15.37 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001653/0.2514, allocations: 43.97 kB / 438.7 MB, free: 15.32 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001361/0.2515, allocations: 106 kB / 438.8 MB, free: 15.22 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002985/0.2545, allocations: 1.776 MB / 440.6 MB, free: 13.43 MB / 382.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.01304/0.2676, allocations: 6.912 MB / 447.5 MB, free: 6.219 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002596/0.2702, allocations: 1.482 MB / 449 MB, free: 4.73 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00134/0.2716, allocations: 0.8783 MB / 449.9 MB, free: 3.848 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009129/0.2725, allocations: 0.6451 MB / 450.5 MB, free: 3.07 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.821e-05/0.2725, allocations: 47.55 kB / 450.6 MB, free: 3.016 MB / 382.1 MB Notification: Performance of pre-optimization done (n=116): time 3.406e-06/0.2726, allocations: 0 / 450.6 MB, free: 3.016 MB / 382.1 MB Notification: Performance of matching and sorting (n=128): time 0.3104/0.583, allocations: 6.622 MB / 457.2 MB, free: 73.58 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.142e-05/0.5831, allocations: 171.1 kB / 457.4 MB, free: 73.39 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002076/0.5852, allocations: 1.096 MB / 458.5 MB, free: 72.95 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002015/0.5854, allocations: 50.56 kB / 458.5 MB, free: 72.91 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004416/0.5858, allocations: 0.5008 MB / 459 MB, free: 72.51 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005401/0.5864, allocations: 433.9 kB / 459.4 MB, free: 72.18 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005621/0.587, allocations: 264.5 kB / 459.7 MB, free: 72.07 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000127/0.5871, allocations: 368.1 kB / 460.1 MB, free: 71.75 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001573/0.5887, allocations: 0.849 MB / 460.9 MB, free: 71.43 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001733/0.5904, allocations: 1.079 MB / 462 MB, free: 70.88 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00322/0.5936, allocations: 1.811 MB / 463.8 MB, free: 70.03 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.701e-06/0.5937, allocations: 1.438 kB / 463.8 MB, free: 70.03 MB / 382.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.004959/0.5986, allocations: 2.621 MB / 466.4 MB, free: 69.01 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.905e-05/0.5987, allocations: 11.91 kB / 466.4 MB, free: 69 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.339e-05/0.5987, allocations: 4.781 kB / 466.4 MB, free: 69 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003337/0.602, allocations: 1.305 MB / 467.7 MB, free: 68.73 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009641/0.603, allocations: 212 kB / 467.9 MB, free: 68.71 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006299/0.6093, allocations: 6.724 MB / 474.7 MB, free: 63.07 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002038/0.6114, allocations: 59.48 kB / 474.7 MB, free: 63.04 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001741/0.6116, allocations: 59.41 kB / 474.8 MB, free: 63.02 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001786/0.6134, allocations: 1.104 MB / 475.9 MB, free: 62.39 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001288/0.6147, allocations: 1.065 MB / 477 MB, free: 61.69 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002307/0.617, allocations: 1.772 MB / 478.7 MB, free: 60.64 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.721e-06/0.617, allocations: 3.5 kB / 478.7 MB, free: 60.64 MB / 382.1 MB Notification: Performance of matching and sorting (n=170) (initialization_lambda0): time 0.004156/0.6212, allocations: 2.497 MB / 481.2 MB, free: 59.29 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.477e-05/0.6212, allocations: 8 kB / 481.2 MB, free: 59.29 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.794e-06/0.6212, allocations: 8 kB / 481.2 MB, free: 59.28 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002172/0.6234, allocations: 1.029 MB / 482.3 MB, free: 58.29 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009635/0.6244, allocations: 223.7 kB / 482.5 MB, free: 58.07 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004746/0.6291, allocations: 6.456 MB / 488.9 MB, free: 51.29 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001547/0.6307, allocations: 75.59 kB / 489 MB, free: 51.22 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001621/0.6309, allocations: 55.97 kB / 489.1 MB, free: 51.16 MB / 382.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.0005589/0.6315, allocations: 267.9 kB / 489.3 MB, free: 50.9 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003638/0.6318, allocations: 138.3 kB / 489.5 MB, free: 50.76 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004338/0.6362, allocations: 2.8 MB / 492.3 MB, free: 47.96 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.459e-05/0.6362, allocations: 12 kB / 492.3 MB, free: 47.95 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.285e-06/0.6362, allocations: 6.625 kB / 492.3 MB, free: 47.94 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.387e-05/0.6362, allocations: 11.91 kB / 492.3 MB, free: 47.93 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006536/0.6428, allocations: 4.531 MB / 496.8 MB, free: 43.38 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.855e-06/0.6428, allocations: 3.969 kB / 496.8 MB, free: 43.38 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000746/0.6436, allocations: 155.8 kB / 497 MB, free: 43.23 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002767/0.6463, allocations: 1.281 MB / 498.3 MB, free: 41.94 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001363/0.6465, allocations: 43.91 kB / 498.3 MB, free: 41.89 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005576/0.6521, allocations: 6.746 MB / 0.4932 GB, free: 34.81 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.6521, allocations: 0 / 0.4932 GB, free: 34.81 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006157/0.6583, allocations: 3.946 MB / 0.4971 GB, free: 30.83 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001144/0.6595, allocations: 439.4 kB / 0.4975 GB, free: 30.38 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000235/0.6597, allocations: 24 kB / 0.4975 GB, free: 30.36 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001005/0.6607, allocations: 67.89 kB / 0.4976 GB, free: 30.29 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003503/0.6611, allocations: 149 kB / 0.4977 GB, free: 30.14 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001188/0.6612, allocations: 47.97 kB / 0.4978 GB, free: 30.1 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0009021/0.6621, allocations: 0.7571 MB / 0.4985 GB, free: 29.33 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6621, allocations: 0 / 0.4985 GB, free: 29.33 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003323/0.6655, allocations: 1.046 MB / 0.4995 GB, free: 28.37 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.001892/0.6674, allocations: 0.7356 MB / 0.5002 GB, free: 27.75 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.007066/0.6744, allocations: 3.838 MB / 0.504 GB, free: 23.87 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.032e-05/0.6745, allocations: 4.062 kB / 0.504 GB, free: 23.87 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002785/0.6773, allocations: 1.433 MB / 0.5054 GB, free: 22.41 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003023/0.6804, allocations: 0.6287 MB / 0.506 GB, free: 21.79 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005634/0.686, allocations: 3.084 MB / 0.509 GB, free: 18.7 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006099/0.6866, allocations: 1.268 MB / 0.5103 GB, free: 17.39 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001617/0.6883, allocations: 0.5807 MB / 0.5108 GB, free: 16.81 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003205/0.6886, allocations: 119.4 kB / 0.5109 GB, free: 16.69 MB / 382.1 MB Notification: Performance of SimCode: time 9.22e-07/0.6886, allocations: 0 / 0.5109 GB, free: 16.69 MB / 382.1 MB Notification: Performance of Templates: time 0.0764/0.765, allocations: 46.91 MB / 0.5568 GB, free: 1.703 MB / 414.1 MB make -j1 -f Modelica_3.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.makefile (rm -f Modelica_3.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; mkfifo Modelica_3.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe >> ../files/Modelica_3.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.sim & ./Modelica_3.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe 2>&1)