Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_Tanks_TanksWithOverflow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_Tanks_TanksWithOverflow",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001674/0.001674, allocations: 103.9 kB / 17.63 MB, free: 5.516 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001974/0.001974, allocations: 202.4 kB / 18.57 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.314/1.314, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00104/0.00104, allocations: 59.45 kB / 307 MB, free: 0.5625 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08342/0.08448, allocations: 50.52 MB / 357.6 MB, free: 14.03 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.1931/0.2776, allocations: 30.3 MB / 387.9 MB, free: 4.383 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01271/0.2904, allocations: 10.3 MB / 398.2 MB, free: 13.15 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001494/0.2919, allocations: 36.94 kB / 398.2 MB, free: 13.14 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001375/0.2933, allocations: 481.8 kB / 398.7 MB, free: 12.86 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004845/0.2982, allocations: 1.869 MB / 400.5 MB, free: 11.71 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006769/0.305, allocations: 2.751 MB / 403.3 MB, free: 9.84 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004218/0.3092, allocations: 3.688 MB / 407 MB, free: 7.766 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001428/0.3107, allocations: 1.161 MB / 408.1 MB, free: 7.016 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002159/0.3128, allocations: 1.509 MB / 409.6 MB, free: 6.164 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001652/0.3145, allocations: 1.421 MB / 411.1 MB, free: 5.324 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002432/0.3147, allocations: 154.2 kB / 411.2 MB, free: 5.324 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00401/0.3188, allocations: 2.093 MB / 413.3 MB, free: 3.914 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000545/0.3193, allocations: 0.5804 MB / 413.9 MB, free: 3.332 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008659/0.3202, allocations: 0.805 MB / 414.7 MB, free: 2.523 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004085/0.3243, allocations: 3.32 MB / 418 MB, free: 15.2 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.3243, allocations: 4 kB / 418 MB, free: 15.19 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.3243, allocations: 4 kB / 418 MB, free: 15.19 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.326e-05/0.3243, allocations: 0 / 418 MB, free: 15.19 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.004438/0.3288, allocations: 2.042 MB / 420.1 MB, free: 13.09 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.361e-05/0.3288, allocations: 8.031 kB / 420.1 MB, free: 13.08 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002167/0.3291, allocations: 180.6 kB / 420.3 MB, free: 12.89 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004817/0.3295, allocations: 166.2 kB / 420.4 MB, free: 12.73 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001245/0.3308, allocations: 0.9056 MB / 421.3 MB, free: 11.78 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001673/0.331, allocations: 234.5 kB / 421.6 MB, free: 11.52 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001759/0.3312, allocations: 95.98 kB / 421.6 MB, free: 11.43 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002602/0.3338, allocations: 1.794 MB / 423.4 MB, free: 9.574 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.284e-05/0.3338, allocations: 0 / 423.4 MB, free: 9.574 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001437/0.3339, allocations: 47.91 kB / 423.5 MB, free: 9.527 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001205/0.3341, allocations: 97.98 kB / 423.6 MB, free: 9.43 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0027/0.3368, allocations: 1.776 MB / 425.4 MB, free: 7.645 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.01061/0.3474, allocations: 6.944 MB / 432.3 MB, free: 408 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002656/0.3501, allocations: 1.49 MB / 433.8 MB, free: 14.89 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00132/0.3514, allocations: 0.8857 MB / 434.7 MB, free: 14.01 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009613/0.3524, allocations: 0.6451 MB / 435.3 MB, free: 13.24 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.083e-05/0.3525, allocations: 51.5 kB / 435.4 MB, free: 13.18 MB / 350.1 MB Notification: Performance of pre-optimization done (n=116): time 2.885e-06/0.3525, allocations: 3.938 kB / 435.4 MB, free: 13.17 MB / 350.1 MB Notification: Performance of matching and sorting (n=128): time 0.0158/0.3683, allocations: 6.614 MB / 442 MB, free: 6.438 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.058e-05/0.3684, allocations: 175.5 kB / 442.2 MB, free: 6.23 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001368/0.3698, allocations: 1.099 MB / 443.3 MB, free: 5.113 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001251/0.3699, allocations: 49.7 kB / 443.3 MB, free: 5.059 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003885/0.3703, allocations: 0.5043 MB / 443.8 MB, free: 4.547 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000362/0.3707, allocations: 429.8 kB / 444.2 MB, free: 4.121 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004636/0.3711, allocations: 275.4 kB / 444.5 MB, free: 3.848 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001258/0.3713, allocations: 357.9 kB / 444.9 MB, free: 3.492 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001304/0.3726, allocations: 0.848 MB / 445.7 MB, free: 2.641 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001583/0.3742, allocations: 1.07 MB / 446.8 MB, free: 1.496 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002636/0.3768, allocations: 1.812 MB / 448.6 MB, free: 15.61 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.3768, allocations: 0 / 448.6 MB, free: 15.61 MB / 366.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.004546/0.3814, allocations: 2.623 MB / 451.2 MB, free: 12.96 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.874e-05/0.3814, allocations: 8 kB / 451.2 MB, free: 12.96 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.889e-06/0.3814, allocations: 4 kB / 451.2 MB, free: 12.95 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003357/0.3848, allocations: 1.304 MB / 452.5 MB, free: 11.64 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008766/0.3857, allocations: 215.6 kB / 452.7 MB, free: 11.43 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006288/0.392, allocations: 6.713 MB / 459.4 MB, free: 4.359 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001109/0.3931, allocations: 79.81 kB / 459.5 MB, free: 4.281 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001612/0.3933, allocations: 60.16 kB / 459.6 MB, free: 4.223 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001728/0.395, allocations: 1.101 MB / 460.7 MB, free: 3.117 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0015/0.3965, allocations: 1.064 MB / 461.7 MB, free: 1.977 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002598/0.3991, allocations: 1.774 MB / 463.5 MB, free: 132 kB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.641e-06/0.3992, allocations: 4 kB / 463.5 MB, free: 128 kB / 366.1 MB Notification: Performance of matching and sorting (n=170) (initialization_lambda0): time 0.004404/0.4036, allocations: 2.494 MB / 466 MB, free: 13.61 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.64e-05/0.4036, allocations: 10.81 kB / 466 MB, free: 13.6 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.354e-05/0.4036, allocations: 7.984 kB / 466 MB, free: 13.59 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002695/0.4063, allocations: 1.027 MB / 467.1 MB, free: 12.55 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001017/0.4073, allocations: 231.6 kB / 467.3 MB, free: 12.32 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006056/0.4134, allocations: 6.461 MB / 473.8 MB, free: 5.508 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001122/0.4146, allocations: 68.14 kB / 473.8 MB, free: 5.441 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001461/0.4147, allocations: 59.97 kB / 473.9 MB, free: 5.383 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.0004141/0.4151, allocations: 269.1 kB / 474.1 MB, free: 5.113 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003063/0.4154, allocations: 138.3 kB / 474.3 MB, free: 4.977 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004837/0.4203, allocations: 2.799 MB / 477.1 MB, free: 2.156 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.774e-05/0.4203, allocations: 19.98 kB / 477.1 MB, free: 2.137 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.611e-06/0.4203, allocations: 0 / 477.1 MB, free: 2.137 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.449e-05/0.4203, allocations: 11.86 kB / 477.1 MB, free: 2.125 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006655/0.427, allocations: 4.53 MB / 481.6 MB, free: 13.52 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.989e-06/0.427, allocations: 4 kB / 481.6 MB, free: 13.52 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007236/0.4278, allocations: 151.8 kB / 481.8 MB, free: 13.37 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002932/0.4307, allocations: 1.284 MB / 483.1 MB, free: 12.07 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001151/0.4308, allocations: 43.91 kB / 483.1 MB, free: 12.03 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005928/0.4368, allocations: 6.76 MB / 489.9 MB, free: 4.91 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.4368, allocations: 0 / 489.9 MB, free: 4.91 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00588/0.4427, allocations: 3.948 MB / 493.8 MB, free: 0.9297 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006399/0.4433, allocations: 431.1 kB / 494.2 MB, free: 500 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002153/0.4435, allocations: 24 kB / 494.3 MB, free: 476 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009508/0.4445, allocations: 71.88 kB / 494.3 MB, free: 404 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002799/0.4448, allocations: 145.1 kB / 494.5 MB, free: 260 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001101/0.4449, allocations: 47.97 kB / 494.5 MB, free: 212 kB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0008559/0.4458, allocations: 0.7532 MB / 495.3 MB, free: 15.45 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4458, allocations: 0 / 495.3 MB, free: 15.45 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002349/0.4481, allocations: 1.054 MB / 496.3 MB, free: 14.39 MB / 414.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.007514/0.4556, allocations: 5.142 MB / 0.4897 GB, free: 9.207 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.008078/0.4637, allocations: 4.392 MB / 0.494 GB, free: 4.766 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.544e-06/0.4638, allocations: 4 kB / 0.494 GB, free: 4.762 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002662/0.4664, allocations: 1.441 MB / 0.4954 GB, free: 3.297 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002385/0.4688, allocations: 0.6376 MB / 0.496 GB, free: 2.68 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01993/0.4888, allocations: 15.27 MB / 0.511 GB, free: 2.938 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007328/0.4895, allocations: 1.268 MB / 0.5122 GB, free: 1.645 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001546/0.4911, allocations: 0.5727 MB / 0.5127 GB, free: 1.07 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000615/0.4917, allocations: 0.5148 MB / 0.5133 GB, free: 0.5547 MB / 430.1 MB Notification: Performance of SimCode: time 3.11e-07/0.4917, allocations: 0 / 0.5133 GB, free: 0.5547 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.079/1.571, allocations: 59.25 MB / 0.5711 GB, free: 127.4 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.94/16.51, allocations: 7.578 kB / 0.5711 GB, free: 127.4 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow_res.mat --tempDir=temp_Modelica_trunk_Modelica_Fluid_Examples_Tanks_TanksWithOverflow_fmu --startTime=0 --stopTime=25000 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Fluid_Examples_Tanks_TanksWithOverflow.fmu > Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe 2>&1)