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.001297/0.001297, allocations: 118.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001422/0.001422, allocations: 198 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.34/1.34, allocations: 227.4 MB / 247 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00173/0.00173, allocations: 67.88 kB / 358.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2342/0.236, allocations: 50.56 MB / 408.8 MB, free: 1.461 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.03068/0.2667, allocations: 30.29 MB / 439.1 MB, free: 3.055 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0143/0.281, allocations: 10.3 MB / 449.4 MB, free: 8.727 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001078/0.2821, allocations: 31.81 kB / 449.5 MB, free: 8.695 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001198/0.2833, allocations: 481 kB / 449.9 MB, free: 8.223 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004385/0.2878, allocations: 1.87 MB / 451.8 MB, free: 6.344 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006587/0.2944, allocations: 2.76 MB / 454.6 MB, free: 3.594 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00481/0.2992, allocations: 3.681 MB / 458.2 MB, free: 15.9 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001637/0.3009, allocations: 1.158 MB / 459.4 MB, free: 14.73 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00272/0.3036, allocations: 1.511 MB / 460.9 MB, free: 13.21 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002321/0.3059, allocations: 1.425 MB / 462.3 MB, free: 11.78 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003599/0.3063, allocations: 156 kB / 462.5 MB, free: 11.63 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004338/0.3107, allocations: 2.106 MB / 464.6 MB, free: 9.52 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007882/0.3115, allocations: 0.5727 MB / 465.2 MB, free: 8.945 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001237/0.3127, allocations: 0.8011 MB / 466 MB, free: 8.141 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00538/0.3181, allocations: 3.376 MB / 469.3 MB, free: 4.754 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.399e-06/0.3181, allocations: 0 / 469.3 MB, free: 4.754 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.3181, allocations: 0 / 469.3 MB, free: 4.754 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.012e-05/0.3182, allocations: 0 / 469.3 MB, free: 4.754 MB / 382.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.004814/0.323, allocations: 2.108 MB / 471.4 MB, free: 2.586 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.785e-05/0.323, allocations: 8.031 kB / 471.4 MB, free: 2.578 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002344/0.3233, allocations: 176.7 kB / 471.6 MB, free: 2.395 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004958/0.3238, allocations: 167.1 kB / 471.8 MB, free: 2.23 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001479/0.3253, allocations: 0.9571 MB / 472.7 MB, free: 1.23 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001986/0.3255, allocations: 234.5 kB / 473 MB, free: 0.9727 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001918/0.3257, allocations: 103.9 kB / 473.1 MB, free: 0.8711 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002823/0.3285, allocations: 1.787 MB / 474.9 MB, free: 15.03 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.771e-05/0.3286, allocations: 3.938 kB / 474.9 MB, free: 15.02 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000141/0.3287, allocations: 47.97 kB / 474.9 MB, free: 14.98 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001308/0.3288, allocations: 97.98 kB / 475 MB, free: 14.88 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002954/0.3318, allocations: 1.78 MB / 476.8 MB, free: 13.09 MB / 398.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.01119/0.343, allocations: 6.922 MB / 483.7 MB, free: 5.871 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002645/0.3457, allocations: 1.486 MB / 485.2 MB, free: 4.375 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001376/0.3471, allocations: 0.8783 MB / 486.1 MB, free: 3.496 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008609/0.3479, allocations: 0.6451 MB / 486.7 MB, free: 2.723 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.042e-05/0.348, allocations: 51.5 kB / 486.8 MB, free: 2.664 MB / 398.1 MB Notification: Performance of pre-optimization done (n=116): time 2.935e-06/0.348, allocations: 0 / 486.8 MB, free: 2.664 MB / 398.1 MB Notification: Performance of matching and sorting (n=128): time 0.01628/0.3643, allocations: 6.646 MB / 493.4 MB, free: 11.9 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001081/0.3644, allocations: 175.5 kB / 493.6 MB, free: 11.7 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001516/0.3659, allocations: 1.1 MB / 494.7 MB, free: 10.58 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001544/0.3661, allocations: 49.7 kB / 494.7 MB, free: 10.52 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004386/0.3666, allocations: 0.5052 MB / 495.2 MB, free: 10.01 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004154/0.367, allocations: 460.1 kB / 495.7 MB, free: 9.559 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005036/0.3675, allocations: 267.5 kB / 495.9 MB, free: 9.289 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001704/0.3677, allocations: 357.9 kB / 496.3 MB, free: 8.934 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001434/0.3691, allocations: 0.8519 MB / 497.1 MB, free: 8.078 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001643/0.3708, allocations: 1.072 MB / 498.2 MB, free: 6.926 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002924/0.3737, allocations: 1.808 MB / 0.4883 GB, free: 5.055 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.442e-06/0.3737, allocations: 4 kB / 0.4883 GB, free: 5.051 MB / 414.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.004861/0.3786, allocations: 2.632 MB / 0.4909 GB, free: 2.395 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.008e-05/0.3786, allocations: 4 kB / 0.4909 GB, free: 2.391 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.157e-05/0.3786, allocations: 4 kB / 0.4909 GB, free: 2.387 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003552/0.3822, allocations: 1.299 MB / 0.4922 GB, free: 1.074 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009545/0.3832, allocations: 223.6 kB / 0.4924 GB, free: 0.8555 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007186/0.3904, allocations: 6.72 MB / 0.4989 GB, free: 9.785 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001317/0.3917, allocations: 71.94 kB / 0.499 GB, free: 9.715 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001861/0.3919, allocations: 55.98 kB / 0.4991 GB, free: 9.66 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001901/0.3938, allocations: 1.109 MB / 0.5001 GB, free: 8.547 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001625/0.3955, allocations: 1.062 MB / 0.5012 GB, free: 7.402 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002835/0.3983, allocations: 1.767 MB / 0.5029 GB, free: 5.566 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.977e-06/0.3983, allocations: 4 kB / 0.5029 GB, free: 5.562 MB / 430.1 MB Notification: Performance of matching and sorting (n=170) (initialization_lambda0): time 0.004583/0.4029, allocations: 2.507 MB / 0.5054 GB, free: 3.031 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.535e-05/0.4029, allocations: 8 kB / 0.5054 GB, free: 3.023 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.628e-06/0.403, allocations: 4 kB / 0.5054 GB, free: 3.02 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002479/0.4054, allocations: 1.027 MB / 0.5064 GB, free: 1.977 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009609/0.4064, allocations: 231.6 kB / 0.5066 GB, free: 1.75 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006592/0.413, allocations: 6.474 MB / 0.5129 GB, free: 10.92 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001357/0.4144, allocations: 68.02 kB / 0.513 GB, free: 10.86 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001883/0.4146, allocations: 59.97 kB / 0.513 GB, free: 10.8 MB / 446.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.0004623/0.4151, allocations: 256.8 kB / 0.5133 GB, free: 10.54 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000333/0.4154, allocations: 151 kB / 0.5134 GB, free: 10.39 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005208/0.4206, allocations: 2.795 MB / 0.5162 GB, free: 7.57 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.265e-05/0.4207, allocations: 19.98 kB / 0.5162 GB, free: 7.551 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.193e-06/0.4207, allocations: 3.938 kB / 0.5162 GB, free: 7.547 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.498e-05/0.4207, allocations: 3.984 kB / 0.5162 GB, free: 7.543 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007524/0.4282, allocations: 4.53 MB / 0.5206 GB, free: 2.938 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.983e-06/0.4283, allocations: 0 / 0.5206 GB, free: 2.938 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007771/0.4291, allocations: 159.8 kB / 0.5208 GB, free: 2.781 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003241/0.4323, allocations: 1.286 MB / 0.522 GB, free: 1.48 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000176/0.4325, allocations: 39.97 kB / 0.5221 GB, free: 1.441 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007199/0.4397, allocations: 6.747 MB / 0.5286 GB, free: 10.34 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.4397, allocations: 0 / 0.5286 GB, free: 10.34 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006924/0.4467, allocations: 3.958 MB / 0.5325 GB, free: 6.348 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009328/0.4476, allocations: 443.9 kB / 0.5329 GB, free: 5.895 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002402/0.4479, allocations: 32.12 kB / 0.533 GB, free: 5.863 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000968/0.4489, allocations: 67.94 kB / 0.533 GB, free: 5.797 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003557/0.4492, allocations: 137.1 kB / 0.5332 GB, free: 5.664 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001356/0.4494, allocations: 51.97 kB / 0.5332 GB, free: 5.613 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001074/0.4505, allocations: 0.7493 MB / 0.5339 GB, free: 4.855 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4505, allocations: 4 kB / 0.5339 GB, free: 4.852 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00285/0.4533, allocations: 1.061 MB / 0.535 GB, free: 3.789 MB / 462.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.1842/0.6375, allocations: 5.15 MB / 0.54 GB, free: 130.6 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006788/0.6444, allocations: 3.843 MB / 0.5438 GB, free: 129.7 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.1e-06/0.6444, allocations: 0 / 0.5438 GB, free: 129.7 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002378/0.6468, allocations: 1.439 MB / 0.5452 GB, free: 129.1 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002506/0.6493, allocations: 0.631 MB / 0.5458 GB, free: 128.9 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01714/0.6665, allocations: 14.46 MB / 0.5599 GB, free: 118.5 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005112/0.667, allocations: 1.269 MB / 0.5611 GB, free: 117.2 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001401/0.6684, allocations: 0.5687 MB / 0.5617 GB, free: 116.7 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000543/0.669, allocations: 0.5071 MB / 0.5622 GB, free: 116.1 MB / 462.1 MB Notification: Performance of SimCode: time 8.11e-07/0.669, allocations: 3.938 kB / 0.5622 GB, free: 116.1 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08546/0.7544, allocations: 59.86 MB / 0.6207 GB, free: 56.61 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.05/15.8, allocations: 7.438 kB / 0.6207 GB, free: 56.6 MB / 462.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)