Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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: "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_Tanks_TanksWithOverflow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_Tanks_TanksWithOverflow",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008684/0.0008684, allocations: 95.36 kB / 17.3 MB, free: 6.344 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.0009695/0.0009696, allocations: 180.2 kB / 18.21 MB, free: 5.531 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.3/1.3, allocations: 205.4 MB / 224.4 MB, free: 13.07 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.0004372/0.0004372, allocations: 12 kB / 281.5 MB, free: 3.332 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09264/0.09308, allocations: 47.58 MB / 329.1 MB, free: 3.668 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.02953/0.1227, allocations: 30.74 MB / 359.8 MB, free: 4.82 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01624/0.1389, allocations: 10.64 MB / 370.4 MB, free: 10.15 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00151/0.1405, allocations: 43.62 kB / 370.5 MB, free: 10.11 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001197/0.1418, allocations: 425.7 kB / 370.9 MB, free: 9.688 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005077/0.1468, allocations: 1.735 MB / 372.6 MB, free: 7.945 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006675/0.1535, allocations: 2.311 MB / 374.9 MB, free: 5.629 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005766/0.1593, allocations: 5.187 MB / 380.1 MB, free: 440 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1885/0.3479, allocations: 1.01 MB / 381.1 MB, free: 11.8 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003335/0.3513, allocations: 1.296 MB / 382.4 MB, free: 11.8 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003043/0.3543, allocations: 1.395 MB / 383.8 MB, free: 11.8 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002951/0.3546, allocations: 80.38 kB / 383.9 MB, free: 11.8 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005478/0.3601, allocations: 1.983 MB / 385.9 MB, free: 11.8 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009862/0.3611, allocations: 0.5019 MB / 386.4 MB, free: 11.8 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001236/0.3624, allocations: 0.7518 MB / 387.1 MB, free: 11.58 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006765/0.3692, allocations: 3.216 MB / 390.4 MB, free: 11.36 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.3692, allocations: 3.281 kB / 390.4 MB, free: 11.36 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.006e-06/0.3692, allocations: 1.312 kB / 390.4 MB, free: 11.36 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.996e-05/0.3692, allocations: 4 kB / 390.4 MB, free: 11.36 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.00541/0.3746, allocations: 1.775 MB / 392.1 MB, free: 10.39 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.734e-05/0.3747, allocations: 12.25 kB / 392.2 MB, free: 10.39 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003333/0.3751, allocations: 169.5 kB / 392.3 MB, free: 10.35 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005464/0.3756, allocations: 162.6 kB / 392.5 MB, free: 10.28 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001519/0.3771, allocations: 0.8992 MB / 393.4 MB, free: 9.945 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001694/0.3773, allocations: 237.2 kB / 393.6 MB, free: 9.785 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002077/0.3775, allocations: 100 kB / 393.7 MB, free: 9.785 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0029/0.3804, allocations: 1.792 MB / 395.5 MB, free: 9.613 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.258e-05/0.3805, allocations: 1.375 kB / 395.5 MB, free: 9.613 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001519/0.3806, allocations: 47.81 kB / 395.5 MB, free: 9.605 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001252/0.3808, allocations: 101.8 kB / 395.6 MB, free: 9.602 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002932/0.3837, allocations: 1.776 MB / 397.4 MB, free: 9.586 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.01076/0.3945, allocations: 6.952 MB / 404.4 MB, free: 6.988 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002588/0.3971, allocations: 1.508 MB / 405.9 MB, free: 6.73 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001504/0.3986, allocations: 0.8808 MB / 406.8 MB, free: 6.594 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007646/0.3994, allocations: 0.6564 MB / 407.4 MB, free: 5.902 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.268e-05/0.3995, allocations: 47.89 kB / 407.5 MB, free: 5.863 MB / 318.1 MB Notification: Performance of pre-optimization done (n=116): time 4.108e-06/0.3995, allocations: 0 / 407.5 MB, free: 5.863 MB / 318.1 MB Notification: Performance of matching and sorting (n=128): time 0.01617/0.4157, allocations: 6.68 MB / 414.1 MB, free: 3.926 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.763e-05/0.4158, allocations: 173.4 kB / 414.3 MB, free: 3.734 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001343/0.4171, allocations: 1.095 MB / 415.4 MB, free: 3.23 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000124/0.4173, allocations: 48.55 kB / 415.5 MB, free: 3.184 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003348/0.4176, allocations: 0.4939 MB / 416 MB, free: 2.746 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003411/0.418, allocations: 438.3 kB / 416.4 MB, free: 2.379 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001843/0.4182, allocations: 118.7 kB / 416.5 MB, free: 2.301 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.682e-05/0.4183, allocations: 367.9 kB / 416.9 MB, free: 1.949 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001297/0.4196, allocations: 0.8367 MB / 417.7 MB, free: 1.512 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001262/0.4208, allocations: 1.073 MB / 418.8 MB, free: 0.8125 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002893/0.4237, allocations: 1.814 MB / 420.6 MB, free: 15.12 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.352e-06/0.4238, allocations: 0 / 420.6 MB, free: 15.12 MB / 334.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.004969/0.4287, allocations: 2.618 MB / 423.2 MB, free: 12.51 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002031/0.429, allocations: 235.2 kB / 423.4 MB, free: 12.22 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.294e-05/0.429, allocations: 4 kB / 423.4 MB, free: 12.21 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003882/0.4329, allocations: 1.31 MB / 424.7 MB, free: 10.91 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009903/0.4339, allocations: 214.2 kB / 425 MB, free: 10.71 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007251/0.4411, allocations: 6.355 MB / 431.3 MB, free: 4.051 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001931/0.4431, allocations: 95.84 kB / 431.4 MB, free: 3.957 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001495/0.4433, allocations: 63.91 kB / 431.5 MB, free: 3.895 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.936e-06/0.4433, allocations: 4 kB / 431.5 MB, free: 3.891 MB / 334.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004472/0.4478, allocations: 2.351 MB / 433.8 MB, free: 1.562 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.386e-05/0.4478, allocations: 8 kB / 433.8 MB, free: 1.555 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002627/0.4504, allocations: 1.03 MB / 434.9 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009394/0.4514, allocations: 228.6 kB / 435.1 MB, free: 312 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006457/0.4578, allocations: 6.099 MB / 441.2 MB, free: 9.902 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001847/0.4597, allocations: 95.84 kB / 441.3 MB, free: 9.809 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001649/0.4599, allocations: 55.97 kB / 441.3 MB, free: 9.754 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.0009392/0.4608, allocations: 462.7 kB / 441.8 MB, free: 9.305 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002619/0.4611, allocations: 134.6 kB / 441.9 MB, free: 9.172 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00515/0.4663, allocations: 2.798 MB / 444.7 MB, free: 6.371 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.091e-05/0.4663, allocations: 19.98 kB / 444.7 MB, free: 6.352 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.624e-06/0.4663, allocations: 4 kB / 444.7 MB, free: 6.348 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.58e-05/0.4663, allocations: 7.969 kB / 444.7 MB, free: 6.34 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007845/0.4742, allocations: 4.526 MB / 449.3 MB, free: 1.777 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.123e-06/0.4743, allocations: 0 / 449.3 MB, free: 1.777 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008692/0.4751, allocations: 162.7 kB / 449.4 MB, free: 1.633 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00343/0.4786, allocations: 1.302 MB / 450.7 MB, free: 328 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00014/0.4787, allocations: 39.91 kB / 450.8 MB, free: 288 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006776/0.4855, allocations: 6.384 MB / 457.1 MB, free: 9.586 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.4855, allocations: 4.375 kB / 457.2 MB, free: 9.582 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007272/0.4928, allocations: 3.949 MB / 461.1 MB, free: 5.617 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001089/0.494, allocations: 447 kB / 461.5 MB, free: 5.16 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002216/0.4942, allocations: 24.28 kB / 461.6 MB, free: 5.137 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001103/0.4953, allocations: 99.86 kB / 461.7 MB, free: 5.039 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003518/0.4957, allocations: 148.5 kB / 461.8 MB, free: 4.895 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001309/0.4958, allocations: 55.97 kB / 461.9 MB, free: 4.84 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001135/0.497, allocations: 0.7493 MB / 462.6 MB, free: 4.082 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.497, allocations: 0 / 462.6 MB, free: 4.082 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.003619/0.5006, allocations: 1.05 MB / 463.7 MB, free: 3.031 MB / 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.009315/0.51, allocations: 5.148 MB / 468.8 MB, free: 13.92 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.007919/0.5179, allocations: 3.8 MB / 472.6 MB, free: 10.11 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.075e-06/0.5179, allocations: 0 / 472.6 MB, free: 10.11 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003032/0.521, allocations: 1.424 MB / 474 MB, free: 8.684 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00348/0.5245, allocations: 0.5936 MB / 474.6 MB, free: 8.086 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02796/0.5525, allocations: 15.82 MB / 490.4 MB, free: 7.867 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009673/0.5535, allocations: 1.264 MB / 491.7 MB, free: 6.578 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.002138/0.5556, allocations: 0.578 MB / 492.3 MB, free: 6.004 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007419/0.5564, allocations: 0.5032 MB / 492.8 MB, free: 5.5 MB / 398.1 MB Notification: Performance of SimCode: time 7.61e-07/0.5564, allocations: 0 / 492.8 MB, free: 5.5 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.263/0.8194, allocations: 56.25 MB / 0.5362 GB, free: 168.5 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003006/0.8198, allocations: 267.8 kB / 0.5364 GB, free: 168.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.397/4.216, allocations: 3.234 kB / 0.5364 GB, free: 168.2 MB / 446.1 MB (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Fluid_Examples_Tanks_TanksWithOverflow_fmu --startTime=0 --stopTime=25000 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Fluid_Examples_Tanks_TanksWithOverflow.fmu > Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe 2>&1)