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.001318/0.001318, allocations: 106.7 kB / 17.33 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001492/0.001492, allocations: 205.8 kB / 18.27 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.363/1.363, allocations: 227.4 MB / 246.4 MB, free: 9.152 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002214/0.002214, allocations: 63.52 kB / 306.6 MB, free: 0.6406 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.1067, allocations: 50.53 MB / 357.1 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.1873/0.294, allocations: 31.32 MB / 388.4 MB, free: 3.555 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01468/0.3088, allocations: 10.51 MB / 398.9 MB, free: 12.12 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00208/0.3109, allocations: 46.94 kB / 399 MB, free: 12.1 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0013/0.3123, allocations: 422.1 kB / 399.4 MB, free: 11.87 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004975/0.3172, allocations: 1.748 MB / 401.1 MB, free: 10.89 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007803/0.3251, allocations: 2.51 MB / 403.6 MB, free: 9.273 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005549/0.3306, allocations: 3.703 MB / 407.3 MB, free: 7.188 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002019/0.3327, allocations: 1.157 MB / 408.5 MB, free: 6.438 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00325/0.3359, allocations: 1.519 MB / 410 MB, free: 5.578 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002298/0.3382, allocations: 1.48 MB / 411.5 MB, free: 4.711 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002491/0.3385, allocations: 155.6 kB / 411.6 MB, free: 4.711 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004445/0.343, allocations: 2.102 MB / 413.7 MB, free: 3.227 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006385/0.3436, allocations: 0.5805 MB / 414.3 MB, free: 2.645 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009975/0.3446, allocations: 0.8051 MB / 415.1 MB, free: 1.836 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005176/0.3498, allocations: 3.339 MB / 418.5 MB, free: 14.48 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.3498, allocations: 0 / 418.5 MB, free: 14.48 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.3498, allocations: 0 / 418.5 MB, free: 14.48 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.041e-05/0.3499, allocations: 0 / 418.5 MB, free: 14.48 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.005584/0.3555, allocations: 2.045 MB / 420.5 MB, free: 12.39 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.117e-05/0.3556, allocations: 12.03 kB / 420.5 MB, free: 12.38 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002332/0.3558, allocations: 164.7 kB / 420.7 MB, free: 12.2 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005344/0.3563, allocations: 170.1 kB / 420.9 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001399/0.3577, allocations: 0.9095 MB / 421.8 MB, free: 11.08 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001866/0.3579, allocations: 234.5 kB / 422 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001889/0.3581, allocations: 95.98 kB / 422.1 MB, free: 10.73 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002764/0.3609, allocations: 1.798 MB / 423.9 MB, free: 8.871 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.852e-05/0.361, allocations: 3.938 kB / 423.9 MB, free: 8.867 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001438/0.3611, allocations: 47.92 kB / 423.9 MB, free: 8.82 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001223/0.3612, allocations: 97.98 kB / 424 MB, free: 8.723 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002743/0.364, allocations: 1.78 MB / 425.8 MB, free: 6.934 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.01086/0.3749, allocations: 6.922 MB / 432.7 MB, free: 15.71 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002495/0.3774, allocations: 1.49 MB / 434.2 MB, free: 14.21 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001265/0.3787, allocations: 0.8803 MB / 435.1 MB, free: 13.33 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008328/0.3795, allocations: 0.6451 MB / 435.8 MB, free: 12.56 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.39e-05/0.3795, allocations: 47.56 kB / 435.8 MB, free: 12.5 MB / 350.1 MB Notification: Performance of pre-optimization done (n=116): time 2.645e-06/0.3796, allocations: 0 / 435.8 MB, free: 12.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=128): time 0.0165/0.3961, allocations: 6.629 MB / 442.4 MB, free: 5.754 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.508e-05/0.3962, allocations: 171.5 kB / 442.6 MB, free: 5.551 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001474/0.3977, allocations: 1.096 MB / 443.7 MB, free: 4.438 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001451/0.3978, allocations: 53.7 kB / 443.7 MB, free: 4.379 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003739/0.3982, allocations: 0.4888 MB / 444.2 MB, free: 3.883 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003765/0.3986, allocations: 441.7 kB / 444.7 MB, free: 3.445 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005064/0.3991, allocations: 271.5 kB / 444.9 MB, free: 3.176 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001171/0.3992, allocations: 353.9 kB / 445.3 MB, free: 2.824 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001338/0.4006, allocations: 0.8519 MB / 446.1 MB, free: 1.969 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001502/0.4021, allocations: 1.073 MB / 447.2 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002698/0.4048, allocations: 1.808 MB / 449 MB, free: 14.94 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.981e-06/0.4048, allocations: 7.938 kB / 449 MB, free: 14.93 MB / 366.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.004512/0.4093, allocations: 2.627 MB / 451.6 MB, free: 12.28 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.233e-05/0.4094, allocations: 4 kB / 451.6 MB, free: 12.28 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.603e-05/0.4094, allocations: 8 kB / 451.7 MB, free: 12.27 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003585/0.413, allocations: 1.307 MB / 453 MB, free: 10.95 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009873/0.414, allocations: 215.7 kB / 453.2 MB, free: 10.74 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006398/0.4204, allocations: 6.723 MB / 459.9 MB, free: 3.664 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001427/0.4218, allocations: 91.92 kB / 460 MB, free: 3.574 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002151/0.4221, allocations: 55.98 kB / 460 MB, free: 3.52 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001869/0.4239, allocations: 1.101 MB / 461.1 MB, free: 2.414 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001498/0.4254, allocations: 1.062 MB / 462.2 MB, free: 1.273 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002684/0.4281, allocations: 1.775 MB / 464 MB, free: 15.42 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.423e-06/0.4282, allocations: 4 kB / 464 MB, free: 15.42 MB / 382.1 MB Notification: Performance of matching and sorting (n=170) (initialization_lambda0): time 0.004355/0.4325, allocations: 2.502 MB / 466.5 MB, free: 12.89 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.429e-05/0.4325, allocations: 8 kB / 466.5 MB, free: 12.88 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.405e-06/0.4326, allocations: 4 kB / 466.5 MB, free: 12.88 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002422/0.435, allocations: 1.027 MB / 467.5 MB, free: 11.84 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009842/0.436, allocations: 227.7 kB / 467.7 MB, free: 11.61 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005925/0.4419, allocations: 6.457 MB / 474.2 MB, free: 4.805 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001386/0.4433, allocations: 91.84 kB / 474.3 MB, free: 4.715 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001972/0.4435, allocations: 59.97 kB / 474.4 MB, free: 4.656 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.000505/0.4441, allocations: 264.8 kB / 474.6 MB, free: 4.391 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003768/0.4444, allocations: 134.3 kB / 474.7 MB, free: 4.258 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005262/0.4497, allocations: 2.799 MB / 477.5 MB, free: 1.434 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.666e-05/0.4497, allocations: 12 kB / 477.6 MB, free: 1.422 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.198e-06/0.4497, allocations: 4 kB / 477.6 MB, free: 1.418 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.816e-05/0.4498, allocations: 12.09 kB / 477.6 MB, free: 1.406 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007382/0.4572, allocations: 4.534 MB / 482.1 MB, free: 12.8 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.943e-06/0.4572, allocations: 4 kB / 482.1 MB, free: 12.8 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007593/0.458, allocations: 155.8 kB / 482.3 MB, free: 12.64 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003065/0.461, allocations: 1.283 MB / 483.5 MB, free: 11.35 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001447/0.4612, allocations: 43.91 kB / 483.6 MB, free: 11.3 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006544/0.4677, allocations: 6.752 MB / 490.3 MB, free: 4.199 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.906e-06/0.4678, allocations: 3.984 kB / 490.3 MB, free: 4.195 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006666/0.4744, allocations: 3.948 MB / 494.3 MB, free: 220 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009152/0.4754, allocations: 431.1 kB / 494.7 MB, free: 15.77 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003628/0.4758, allocations: 28 kB / 494.7 MB, free: 15.75 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001268/0.477, allocations: 83.8 kB / 494.8 MB, free: 15.66 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003802/0.4774, allocations: 149 kB / 495 MB, free: 15.52 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001599/0.4776, allocations: 51.97 kB / 495 MB, free: 15.47 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001206/0.4788, allocations: 0.7493 MB / 495.8 MB, free: 14.71 MB / 414.1 MB Notification: Performance of sort global known variables: time 3e-07/0.4788, allocations: 0 / 495.8 MB, free: 14.71 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003631/0.4825, allocations: 1.058 MB / 496.8 MB, free: 13.65 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.008601/0.4911, allocations: 5.147 MB / 0.4902 GB, free: 8.469 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.008862/0.5, allocations: 4.391 MB / 0.4945 GB, free: 4.027 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.129e-06/0.5, allocations: 0 / 0.4945 GB, free: 4.027 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00288/0.5029, allocations: 1.446 MB / 0.4959 GB, free: 2.559 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002872/0.5058, allocations: 0.6241 MB / 0.4965 GB, free: 1.953 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02283/0.5286, allocations: 15.7 MB / 0.5118 GB, free: 1.773 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000755/0.5294, allocations: 1.268 MB / 0.5131 GB, free: 488 kB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001721/0.5311, allocations: 0.5764 MB / 0.5136 GB, free: 15.9 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006587/0.5318, allocations: 0.4993 MB / 0.5141 GB, free: 15.4 MB / 446.1 MB Notification: Performance of SimCode: time 4.5e-07/0.5318, allocations: 4 kB / 0.5141 GB, free: 15.39 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.32/1.852, allocations: 58.82 MB / 0.5716 GB, free: 126.3 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002604/1.852, allocations: 264.7 kB / 0.5718 GB, free: 126 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.28/6.132, allocations: 3.938 kB / 0.5718 GB, free: 126 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)