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.0008849/0.000885, allocations: 91.73 kB / 17.35 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001052/0.001052, allocations: 199 kB / 18.28 MB, free: 5.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.208/1.208, allocations: 227.7 MB / 246.8 MB, free: 9.68 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001926/0.0001927, allocations: 8 kB / 307.8 MB, free: 0.5039 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07763/0.07784, allocations: 51.52 MB / 359.4 MB, free: 12.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.1624/0.2403, allocations: 30.88 MB / 390.2 MB, free: 3.605 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01249/0.2528, allocations: 10.69 MB / 400.9 MB, free: 12.4 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009279/0.2538, allocations: 44.25 kB / 401 MB, free: 12.38 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009476/0.2547, allocations: 413.4 kB / 401.4 MB, free: 12.15 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003515/0.2583, allocations: 1.744 MB / 403.1 MB, free: 11.17 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005368/0.2636, allocations: 2.311 MB / 405.4 MB, free: 9.574 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004877/0.2685, allocations: 5.223 MB / 410.6 MB, free: 6.773 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001243/0.2698, allocations: 1.006 MB / 411.7 MB, free: 6.141 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001924/0.2717, allocations: 1.297 MB / 412.9 MB, free: 5.457 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00163/0.2734, allocations: 1.394 MB / 414.3 MB, free: 4.551 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001765/0.2736, allocations: 80 kB / 414.4 MB, free: 4.473 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003649/0.2772, allocations: 2.02 MB / 416.4 MB, free: 2.449 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004981/0.2777, allocations: 0.4946 MB / 416.9 MB, free: 1.953 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008075/0.2785, allocations: 0.7597 MB / 417.7 MB, free: 1.184 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003732/0.2823, allocations: 3.237 MB / 420.9 MB, free: 13.93 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.845e-06/0.2823, allocations: 0 / 420.9 MB, free: 13.93 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.2823, allocations: 0 / 420.9 MB, free: 13.93 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.725e-05/0.2823, allocations: 4 kB / 420.9 MB, free: 13.93 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.003918/0.2863, allocations: 1.776 MB / 422.7 MB, free: 12.1 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.704e-05/0.2863, allocations: 12.03 kB / 422.7 MB, free: 12.09 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002225/0.2865, allocations: 176.7 kB / 422.9 MB, free: 11.91 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003991/0.2869, allocations: 162.3 kB / 423.1 MB, free: 11.75 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001194/0.2881, allocations: 0.8979 MB / 424 MB, free: 10.8 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001592/0.2883, allocations: 234.5 kB / 424.2 MB, free: 10.54 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001915/0.2885, allocations: 99.97 kB / 424.3 MB, free: 10.45 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002504/0.291, allocations: 1.802 MB / 426.1 MB, free: 8.586 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.549e-05/0.2911, allocations: 3.938 kB / 426.1 MB, free: 8.582 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001363/0.2912, allocations: 51.97 kB / 426.1 MB, free: 8.531 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000118/0.2913, allocations: 102 kB / 426.2 MB, free: 8.43 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002599/0.2939, allocations: 1.772 MB / 428 MB, free: 6.648 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.009807/0.3037, allocations: 6.964 MB / 435 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002349/0.3061, allocations: 1.498 MB / 436.5 MB, free: 13.88 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001226/0.3073, allocations: 0.8822 MB / 437.4 MB, free: 12.99 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000754/0.3081, allocations: 0.6568 MB / 438 MB, free: 12.21 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.099e-05/0.3082, allocations: 47.5 kB / 438.1 MB, free: 12.16 MB / 350.1 MB Notification: Performance of pre-optimization done (n=116): time 2.905e-06/0.3082, allocations: 0 / 438.1 MB, free: 12.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=128): time 0.01452/0.3227, allocations: 6.676 MB / 444.7 MB, free: 5.359 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.63e-05/0.3228, allocations: 171.5 kB / 444.9 MB, free: 5.156 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001208/0.324, allocations: 1.099 MB / 446 MB, free: 4.039 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001071/0.3241, allocations: 45.7 kB / 446 MB, free: 3.988 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003462/0.3245, allocations: 0.5004 MB / 446.5 MB, free: 3.48 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003207/0.3248, allocations: 437.8 kB / 447 MB, free: 3.047 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001778/0.325, allocations: 121.6 kB / 447.1 MB, free: 2.922 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001161/0.3251, allocations: 357.9 kB / 447.4 MB, free: 2.566 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001254/0.3264, allocations: 0.8393 MB / 448.3 MB, free: 1.727 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001379/0.3278, allocations: 1.073 MB / 449.4 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002468/0.3302, allocations: 1.808 MB / 451.2 MB, free: 14.7 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.3302, allocations: 0 / 451.2 MB, free: 14.7 MB / 366.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.00406/0.3343, allocations: 2.619 MB / 453.8 MB, free: 12.05 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001197/0.3344, allocations: 234.7 kB / 454 MB, free: 11.76 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.578e-06/0.3345, allocations: 4 kB / 454 MB, free: 11.76 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003246/0.3377, allocations: 1.306 MB / 455.3 MB, free: 10.44 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008717/0.3386, allocations: 211.7 kB / 455.5 MB, free: 10.23 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005693/0.3443, allocations: 6.36 MB / 461.9 MB, free: 3.527 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001078/0.3454, allocations: 96.03 kB / 462 MB, free: 3.434 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001228/0.3455, allocations: 67.91 kB / 462 MB, free: 3.367 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.192e-06/0.3455, allocations: 4 kB / 462.1 MB, free: 3.363 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003694/0.3492, allocations: 2.346 MB / 464.4 MB, free: 1 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/0.3492, allocations: 4 kB / 464.4 MB, free: 0.9961 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002211/0.3515, allocations: 1.027 MB / 465.4 MB, free: 15.95 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008813/0.3524, allocations: 227.7 kB / 465.6 MB, free: 15.73 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005226/0.3576, allocations: 6.103 MB / 471.8 MB, free: 9.281 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009995/0.3586, allocations: 99.78 kB / 471.8 MB, free: 9.184 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001162/0.3587, allocations: 59.97 kB / 471.9 MB, free: 9.125 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.0006048/0.3593, allocations: 461.2 kB / 472.4 MB, free: 8.664 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002076/0.3596, allocations: 138.3 kB / 472.5 MB, free: 8.527 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004472/0.364, allocations: 2.807 MB / 475.3 MB, free: 5.699 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.446e-05/0.3641, allocations: 16 kB / 475.3 MB, free: 5.684 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.3641, allocations: 0 / 475.3 MB, free: 5.684 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.402e-05/0.3641, allocations: 7.969 kB / 475.3 MB, free: 5.676 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006392/0.3705, allocations: 4.534 MB / 479.9 MB, free: 1.07 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.911e-06/0.3705, allocations: 0 / 479.9 MB, free: 1.07 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00073/0.3713, allocations: 155.7 kB / 480 MB, free: 0.918 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003037/0.3743, allocations: 1.292 MB / 481.3 MB, free: 15.61 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00012/0.3744, allocations: 35.92 kB / 481.3 MB, free: 15.57 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005888/0.3803, allocations: 6.398 MB / 487.7 MB, free: 8.836 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.3803, allocations: 4.062 kB / 487.7 MB, free: 8.832 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006021/0.3864, allocations: 3.955 MB / 491.7 MB, free: 4.844 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007867/0.3872, allocations: 443 kB / 492.1 MB, free: 4.391 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001868/0.3874, allocations: 24 kB / 492.2 MB, free: 4.367 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001008/0.3884, allocations: 91.86 kB / 492.2 MB, free: 4.277 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003051/0.3887, allocations: 145.1 kB / 492.4 MB, free: 4.133 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001145/0.3888, allocations: 55.97 kB / 492.4 MB, free: 4.078 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0009152/0.3898, allocations: 0.7493 MB / 493.2 MB, free: 3.32 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3898, allocations: 0 / 493.2 MB, free: 3.32 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002518/0.3923, allocations: 1.058 MB / 494.2 MB, free: 2.262 MB / 398.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.007724/0.4, allocations: 5.134 MB / 499.4 MB, free: 13.09 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006832/0.4069, allocations: 3.801 MB / 0.4914 GB, free: 9.238 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.649e-06/0.4069, allocations: 1.125 kB / 0.4914 GB, free: 9.238 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002628/0.4095, allocations: 1.433 MB / 0.4928 GB, free: 7.777 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002698/0.4122, allocations: 0.6035 MB / 0.4934 GB, free: 7.184 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02146/0.4337, allocations: 15.8 MB / 0.5088 GB, free: 6.898 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007425/0.4345, allocations: 1.264 MB / 0.51 GB, free: 5.609 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001753/0.4362, allocations: 0.5726 MB / 0.5106 GB, free: 5.035 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006614/0.4369, allocations: 0.5032 MB / 0.5111 GB, free: 4.531 MB / 430.1 MB Notification: Performance of SimCode: time 8.22e-07/0.4369, allocations: 0 / 0.5111 GB, free: 4.531 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.212/0.6489, allocations: 56.3 MB / 0.5661 GB, free: 130.3 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001524/0.6491, allocations: 278.6 kB / 0.5663 GB, free: 130 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.179/3.828, allocations: 3.234 kB / 0.5663 GB, free: 130 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)