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/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 4.0.0+maint.om/package.mo", uses=false) 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) 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008905/0.0008906, allocations: 95.03 kB / 16.3 MB, free: 5.992 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.0009133/0.0009133, allocations: 182.7 kB / 17.19 MB, free: 5.906 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.423/1.423, allocations: 223.2 MB / 241.1 MB, free: 5.445 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003851/0.0003853, allocations: 7.5 kB / 300.7 MB, free: 5.973 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1097/0.1101, allocations: 50.42 MB / 351.1 MB, free: 11.76 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.02292/0.1331, allocations: 21.2 MB / 372.3 MB, free: 6.496 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01397/0.1471, allocations: 9.961 MB / 382.3 MB, free: 12.52 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001238/0.1484, allocations: 43.62 kB / 382.3 MB, free: 12.48 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001335/0.1497, allocations: 409.8 kB / 382.7 MB, free: 12.07 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004029/0.1538, allocations: 1.503 MB / 384.2 MB, free: 10.57 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005226/0.159, allocations: 2.12 MB / 386.4 MB, free: 8.453 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003024/0.1621, allocations: 2.075 MB / 388.4 MB, free: 6.375 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001552/0.1636, allocations: 0.9609 MB / 389.4 MB, free: 5.398 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002147/0.1658, allocations: 1.141 MB / 390.5 MB, free: 4.254 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00168/0.1675, allocations: 0.9579 MB / 391.5 MB, free: 3.293 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004073/0.1679, allocations: 80 kB / 391.6 MB, free: 3.215 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003511/0.1714, allocations: 1.787 MB / 393.4 MB, free: 1.426 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006718/0.1721, allocations: 462.8 kB / 393.8 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005027/0.1726, allocations: 289 kB / 394.1 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003132/0.1758, allocations: 2.284 MB / 396.4 MB, free: 14.39 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.385e-06/0.1758, allocations: 3.938 kB / 396.4 MB, free: 14.39 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.1758, allocations: 0 / 396.4 MB, free: 14.39 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.507e-05/0.1758, allocations: 0 / 396.4 MB, free: 14.39 MB / 334.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.004592/0.1804, allocations: 1.773 MB / 398.2 MB, free: 12.57 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.528e-05/0.1805, allocations: 12.03 kB / 398.2 MB, free: 12.55 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006532/0.1811, allocations: 166.2 kB / 398.3 MB, free: 12.39 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001758/0.1829, allocations: 0.8674 MB / 399.2 MB, free: 11.48 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002128/0.1831, allocations: 234.5 kB / 399.4 MB, free: 11.22 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000266/0.1834, allocations: 99.97 kB / 399.5 MB, free: 11.12 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002789/0.1862, allocations: 1.786 MB / 401.3 MB, free: 9.277 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.416e-05/0.1862, allocations: 0 / 401.3 MB, free: 9.277 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001377/0.1864, allocations: 43.98 kB / 401.3 MB, free: 9.234 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001302/0.1865, allocations: 102 kB / 401.4 MB, free: 9.133 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00275/0.1893, allocations: 1.765 MB / 403.2 MB, free: 7.359 MB / 334.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.01111/0.2004, allocations: 6.967 MB / 410.2 MB, free: 96 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002458/0.2029, allocations: 1.494 MB / 411.7 MB, free: 14.59 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008134/0.2037, allocations: 0.6646 MB / 412.3 MB, free: 13.8 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.442e-05/0.2037, allocations: 55.55 kB / 412.4 MB, free: 13.73 MB / 350.1 MB Notification: Performance of pre-optimization done (n=116): time 2.665e-06/0.2038, allocations: 0 / 412.4 MB, free: 13.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=128): time 0.01523/0.219, allocations: 6.651 MB / 419 MB, free: 6.961 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.242e-05/0.2191, allocations: 167.5 kB / 419.2 MB, free: 6.758 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001331/0.2204, allocations: 1.088 MB / 420.3 MB, free: 5.652 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001238/0.2206, allocations: 57.7 kB / 420.4 MB, free: 5.59 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003696/0.2209, allocations: 0.5042 MB / 420.9 MB, free: 5.078 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003403/0.2213, allocations: 425.9 kB / 421.3 MB, free: 4.656 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.245e-05/0.2214, allocations: 24 kB / 421.3 MB, free: 4.633 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001318/0.2215, allocations: 361.9 kB / 421.6 MB, free: 4.273 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001271/0.2228, allocations: 0.8315 MB / 422.5 MB, free: 3.441 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001411/0.2242, allocations: 1.057 MB / 423.5 MB, free: 2.309 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00133/0.2256, allocations: 0.8808 MB / 424.4 MB, free: 1.426 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.636e-06/0.2256, allocations: 0 / 424.4 MB, free: 1.426 MB / 350.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.1582/0.3838, allocations: 2.594 MB / 427 MB, free: 65.94 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002805/0.3841, allocations: 1.843 MB / 428.9 MB, free: 64.04 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.202e-05/0.3841, allocations: 5.75 kB / 428.9 MB, free: 64.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003397/0.3875, allocations: 1.292 MB / 430.2 MB, free: 64 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001056/0.3886, allocations: 211.7 kB / 430.4 MB, free: 64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005624/0.3942, allocations: 6.397 MB / 436.8 MB, free: 59.8 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001465/0.3957, allocations: 91.95 kB / 436.8 MB, free: 59.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001766/0.3959, allocations: 63.89 kB / 436.9 MB, free: 59.8 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.308e-06/0.3959, allocations: 4.469 kB / 436.9 MB, free: 59.8 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004203/0.4001, allocations: 2.339 MB / 439.2 MB, free: 59.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.412e-05/0.4002, allocations: 6.422 kB / 439.3 MB, free: 59.7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002554/0.4027, allocations: 1.025 MB / 440.3 MB, free: 59.64 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001004/0.4037, allocations: 226.1 kB / 440.5 MB, free: 59.63 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005158/0.4089, allocations: 6.148 MB / 446.6 MB, free: 55.4 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001297/0.4102, allocations: 92.23 kB / 446.7 MB, free: 55.4 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001757/0.4104, allocations: 56.75 kB / 446.8 MB, free: 55.4 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 (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],$PRE.hysteresis.y,hysteresis.y) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 3 {2 3,4 11,4 11} Notification: Performance of prepare postOptimizeDAE: time 0.0007488/0.4112, allocations: 454.4 kB / 447.2 MB, free: 55.11 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003001/0.4115, allocations: 138.7 kB / 447.4 MB, free: 55.11 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00468/0.4162, allocations: 2.81 MB / 450.2 MB, free: 53.95 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.807e-05/0.4162, allocations: 15.81 kB / 450.2 MB, free: 53.95 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.109e-05/0.4162, allocations: 0 / 450.2 MB, free: 53.95 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.416e-05/0.4162, allocations: 11.88 kB / 450.2 MB, free: 53.94 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006458/0.4227, allocations: 4.534 MB / 454.7 MB, free: 51.21 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.382e-06/0.4227, allocations: 0 / 454.7 MB, free: 51.21 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000733/0.4235, allocations: 154.5 kB / 454.9 MB, free: 51.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002948/0.4264, allocations: 1.302 MB / 456.2 MB, free: 50.59 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001218/0.4266, allocations: 31.02 kB / 456.2 MB, free: 50.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004926/0.4315, allocations: 6.435 MB / 462.7 MB, free: 44.32 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.4315, allocations: 0 / 462.7 MB, free: 44.32 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005248/0.4368, allocations: 3.94 MB / 466.6 MB, free: 40.35 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008151/0.4376, allocations: 444 kB / 467 MB, free: 39.89 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002037/0.4378, allocations: 28 kB / 467.1 MB, free: 39.87 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009914/0.4388, allocations: 93.44 kB / 467.2 MB, free: 39.78 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002791/0.4391, allocations: 156.8 kB / 467.3 MB, free: 39.63 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001105/0.4392, allocations: 51.97 kB / 467.4 MB, free: 39.58 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0007858/0.44, allocations: 0.7415 MB / 468.1 MB, free: 38.83 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.44, allocations: 0 / 468.1 MB, free: 38.83 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002501/0.4425, allocations: 1.048 MB / 469.1 MB, free: 37.88 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 3 {2 4,4 14,4 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.001379/0.4439, allocations: 0.7254 MB / 469.9 MB, free: 37.27 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.006095/0.45, allocations: 3.783 MB / 473.7 MB, free: 33.45 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.78e-06/0.4501, allocations: 4 kB / 473.7 MB, free: 33.44 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002441/0.4525, allocations: 1.434 MB / 475.1 MB, free: 31.99 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00241/0.4549, allocations: 0.5708 MB / 475.7 MB, free: 31.43 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004921/0.4599, allocations: 3.556 MB / 479.2 MB, free: 27.86 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005458/0.4604, allocations: 1.292 MB / 480.5 MB, free: 26.54 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001678/0.4621, allocations: 0.5681 MB / 481.1 MB, free: 25.97 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003023/0.4624, allocations: 127.3 kB / 481.2 MB, free: 25.84 MB / 350.1 MB Notification: Performance of SimCode: time 3.71e-07/0.4624, allocations: 0 / 481.2 MB, free: 25.84 MB / 350.1 MB Notification: Performance of Templates: time 0.05539/0.5178, allocations: 42.76 MB / 0.5117 GB, free: 15.39 MB / 382.1 MB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.makefile (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe 2>&1)