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.001191/0.001191, allocations: 109.2 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001233/0.001233, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.189/1.189, allocations: 227.4 MB / 246.3 MB, free: 9.023 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001101/0.001101, allocations: 64.28 kB / 306.4 MB, free: 0.6992 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07477/0.07588, allocations: 50.53 MB / 356.9 MB, free: 14.16 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.1568/0.2327, allocations: 31.64 MB / 388.5 MB, free: 3.375 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01246/0.2452, allocations: 10.85 MB / 399.4 MB, free: 11.82 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001081/0.2463, allocations: 47.56 kB / 399.4 MB, free: 11.79 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001039/0.2474, allocations: 414.7 kB / 399.8 MB, free: 11.57 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003523/0.251, allocations: 1.751 MB / 401.6 MB, free: 10.56 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005157/0.2561, allocations: 2.307 MB / 403.9 MB, free: 8.973 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004419/0.2606, allocations: 5.221 MB / 409.1 MB, free: 6.172 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001366/0.2619, allocations: 1.031 MB / 410.1 MB, free: 5.52 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002299/0.2642, allocations: 1.324 MB / 411.5 MB, free: 4.816 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00177/0.266, allocations: 1.418 MB / 412.9 MB, free: 3.945 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002395/0.2663, allocations: 88 kB / 413 MB, free: 3.859 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00341/0.2697, allocations: 2.012 MB / 415 MB, free: 1.844 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004601/0.2702, allocations: 0.5141 MB / 415.5 MB, free: 1.328 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007704/0.2709, allocations: 0.7425 MB / 416.2 MB, free: 0.582 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003438/0.2744, allocations: 3.269 MB / 419.5 MB, free: 13.3 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.905e-06/0.2744, allocations: 3.938 kB / 419.5 MB, free: 13.3 MB / 334.1 MB Notification: Performance of FrontEnd: time 7.72e-07/0.2744, allocations: 0 / 419.5 MB, free: 13.3 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.681e-05/0.2744, allocations: 0 / 419.5 MB, free: 13.3 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.004386/0.2788, allocations: 2.044 MB / 421.6 MB, free: 11.2 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.887e-05/0.2789, allocations: 16.03 kB / 421.6 MB, free: 11.19 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002072/0.2791, allocations: 172.7 kB / 421.7 MB, free: 11.01 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004603/0.2796, allocations: 166.2 kB / 421.9 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00118/0.2807, allocations: 0.9017 MB / 422.8 MB, free: 9.898 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001607/0.2809, allocations: 238.5 kB / 423 MB, free: 9.633 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001738/0.2811, allocations: 95.98 kB / 423.1 MB, free: 9.539 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002565/0.2837, allocations: 1.794 MB / 424.9 MB, free: 7.688 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.267e-05/0.2837, allocations: 0 / 424.9 MB, free: 7.688 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001385/0.2838, allocations: 51.91 kB / 425 MB, free: 7.637 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001193/0.284, allocations: 102 kB / 425.1 MB, free: 7.535 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002717/0.2867, allocations: 1.776 MB / 426.8 MB, free: 5.75 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.01037/0.2971, allocations: 6.925 MB / 433.8 MB, free: 14.53 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002547/0.2996, allocations: 1.482 MB / 435.3 MB, free: 13.04 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001415/0.3011, allocations: 0.879 MB / 436.1 MB, free: 12.16 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000762/0.3018, allocations: 0.6451 MB / 436.8 MB, free: 11.38 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.768e-05/0.3019, allocations: 55.53 kB / 436.8 MB, free: 11.32 MB / 350.1 MB Notification: Performance of pre-optimization done (n=116): time 4.218e-06/0.3019, allocations: 0 / 436.8 MB, free: 11.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=128): time 0.01552/0.3174, allocations: 6.621 MB / 443.5 MB, free: 4.578 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.438e-05/0.3176, allocations: 167.5 kB / 443.6 MB, free: 4.375 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001412/0.319, allocations: 1.107 MB / 444.7 MB, free: 3.25 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001116/0.3191, allocations: 49.7 kB / 444.8 MB, free: 3.195 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003787/0.3195, allocations: 0.4965 MB / 445.3 MB, free: 2.691 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003546/0.3198, allocations: 437.8 kB / 445.7 MB, free: 2.258 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004578/0.3203, allocations: 267.5 kB / 446 MB, free: 1.992 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001244/0.3204, allocations: 357.9 kB / 446.3 MB, free: 1.637 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001514/0.322, allocations: 0.8518 MB / 447.2 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001582/0.3236, allocations: 1.077 MB / 448.2 MB, free: 15.63 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002812/0.3264, allocations: 1.8 MB / 450 MB, free: 13.77 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.05e-06/0.3264, allocations: 4 kB / 450 MB, free: 13.76 MB / 366.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.00458/0.331, allocations: 2.619 MB / 452.7 MB, free: 11.12 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.009e-05/0.331, allocations: 7.938 kB / 452.7 MB, free: 11.11 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.247e-05/0.331, allocations: 8 kB / 452.7 MB, free: 11.1 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003414/0.3344, allocations: 1.309 MB / 454 MB, free: 9.781 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00102/0.3355, allocations: 215.7 kB / 454.2 MB, free: 9.57 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006384/0.3419, allocations: 6.346 MB / 460.5 MB, free: 2.875 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001195/0.3431, allocations: 87.84 kB / 460.6 MB, free: 2.789 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002129/0.3433, allocations: 55.97 kB / 460.7 MB, free: 2.734 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001695/0.345, allocations: 1.101 MB / 461.8 MB, free: 1.629 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001551/0.3466, allocations: 1.066 MB / 462.9 MB, free: 496 kB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002709/0.3493, allocations: 1.771 MB / 464.6 MB, free: 14.64 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.943e-06/0.3493, allocations: 7.938 kB / 464.6 MB, free: 14.64 MB / 382.1 MB Notification: Performance of matching and sorting (n=170) (initialization_lambda0): time 0.004221/0.3535, allocations: 2.49 MB / 467.1 MB, free: 12.12 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.231e-05/0.3536, allocations: 8 kB / 467.1 MB, free: 12.11 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.423e-06/0.3536, allocations: 4 kB / 467.1 MB, free: 12.11 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002396/0.356, allocations: 1.031 MB / 468.2 MB, free: 11.06 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000958/0.3569, allocations: 227.6 kB / 468.4 MB, free: 10.84 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00574/0.3627, allocations: 6.099 MB / 474.5 MB, free: 4.391 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001144/0.3639, allocations: 83.98 kB / 474.6 MB, free: 4.309 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001373/0.364, allocations: 55.98 kB / 474.6 MB, free: 4.254 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.000398/0.3644, allocations: 272.4 kB / 474.9 MB, free: 3.98 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000314/0.3647, allocations: 134.3 kB / 475 MB, free: 3.848 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004938/0.3697, allocations: 2.811 MB / 477.8 MB, free: 1.016 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.022e-05/0.3697, allocations: 19.98 kB / 477.8 MB, free: 0.9961 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.705e-06/0.3697, allocations: 3.938 kB / 477.9 MB, free: 0.9922 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.591e-05/0.3697, allocations: 7.969 kB / 477.9 MB, free: 0.9844 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007085/0.3768, allocations: 4.534 MB / 482.4 MB, free: 12.38 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.371e-06/0.3768, allocations: 0 / 482.4 MB, free: 12.38 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007917/0.3776, allocations: 159.8 kB / 482.5 MB, free: 12.22 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003206/0.3809, allocations: 1.298 MB / 483.8 MB, free: 10.91 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001332/0.381, allocations: 35.98 kB / 483.9 MB, free: 10.88 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006171/0.3872, allocations: 6.385 MB / 490.3 MB, free: 4.152 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.3872, allocations: 3.938 kB / 490.3 MB, free: 4.148 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006369/0.3936, allocations: 3.948 MB / 494.2 MB, free: 168 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007356/0.3943, allocations: 431.4 kB / 494.6 MB, free: 15.72 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000265/0.3946, allocations: 24.19 kB / 494.7 MB, free: 15.7 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001058/0.3957, allocations: 91.78 kB / 494.8 MB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003126/0.396, allocations: 141.1 kB / 494.9 MB, free: 15.47 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001294/0.3961, allocations: 56.17 kB / 494.9 MB, free: 15.41 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001085/0.3972, allocations: 0.7454 MB / 495.7 MB, free: 14.66 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.3972, allocations: 0 / 495.7 MB, free: 14.66 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002772/0.4, allocations: 1.066 MB / 496.8 MB, free: 13.59 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.008108/0.4081, allocations: 5.138 MB / 0.4901 GB, free: 8.41 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.007224/0.4154, allocations: 3.806 MB / 0.4938 GB, free: 4.559 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/0.4154, allocations: 4 kB / 0.4939 GB, free: 4.555 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002897/0.4183, allocations: 1.418 MB / 0.4952 GB, free: 3.113 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002559/0.4209, allocations: 0.5943 MB / 0.4958 GB, free: 2.535 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02527/0.4461, allocations: 15.7 MB / 0.5111 GB, free: 2.359 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009085/0.4471, allocations: 1.268 MB / 0.5124 GB, free: 1.059 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001886/0.449, allocations: 0.5723 MB / 0.5129 GB, free: 496 kB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007064/0.4497, allocations: 0.5071 MB / 0.5134 GB, free: 15.97 MB / 446.1 MB Notification: Performance of SimCode: time 8.41e-07/0.4497, allocations: 0 / 0.5134 GB, free: 15.97 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.681/3.131, allocations: 56.89 MB / 0.569 GB, free: 127.5 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001937/3.131, allocations: 264.5 kB / 0.5692 GB, free: 127.1 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.548/6.679, allocations: 4 kB / 0.5693 GB, free: 127.1 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)