Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Fluid_Examples_Tanks_TanksWithOverflow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,fileNamePrefix="Modelica_4_0_0_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.0008865/0.0008867, allocations: 96.67 kB / 16.65 MB, free: 6.191 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.0009634/0.0009635, allocations: 181.8 kB / 17.57 MB, free: 5.805 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.309/1.309, allocations: 223.3 MB / 241.6 MB, free: 264 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002712/0.0002712, allocations: 6 kB / 301.5 MB, free: 6.07 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09233/0.09262, allocations: 50.41 MB / 351.9 MB, free: 3.641 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.1972/0.2899, allocations: 30.73 MB / 382.7 MB, free: 8.398 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01548/0.3054, allocations: 10.66 MB / 393.3 MB, free: 4.836 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001904/0.3074, allocations: 43.78 kB / 393.4 MB, free: 4.812 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001467/0.3089, allocations: 419.7 kB / 393.8 MB, free: 4.582 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005188/0.3141, allocations: 1.729 MB / 395.5 MB, free: 3.664 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006691/0.3208, allocations: 2.319 MB / 397.8 MB, free: 2.551 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005179/0.326, allocations: 5.201 MB / 403 MB, free: 15.8 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001801/0.3278, allocations: 1.015 MB / 404 MB, free: 15.17 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002792/0.3306, allocations: 1.302 MB / 405.3 MB, free: 14.48 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002397/0.333, allocations: 1.384 MB / 406.7 MB, free: 13.71 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003942/0.3334, allocations: 81.75 kB / 406.8 MB, free: 13.71 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004092/0.3375, allocations: 1.983 MB / 408.8 MB, free: 12.63 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006954/0.3382, allocations: 0.5076 MB / 409.3 MB, free: 12.29 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001302/0.3395, allocations: 0.7552 MB / 410.1 MB, free: 11.55 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004918/0.3444, allocations: 3.222 MB / 413.3 MB, free: 8.324 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.02e-06/0.3445, allocations: 0 / 413.3 MB, free: 8.324 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.348e-06/0.3445, allocations: 0 / 413.3 MB, free: 8.324 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.493e-05/0.3446, allocations: 7.938 kB / 413.3 MB, free: 8.316 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.00501/0.3496, allocations: 1.769 MB / 415.1 MB, free: 6.496 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.025e-05/0.3496, allocations: 12.02 kB / 415.1 MB, free: 6.484 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004377/0.3501, allocations: 172.7 kB / 415.2 MB, free: 6.305 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000658/0.3507, allocations: 166.2 kB / 415.4 MB, free: 6.141 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001639/0.3524, allocations: 0.9018 MB / 416.3 MB, free: 5.195 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002141/0.3526, allocations: 234.4 kB / 416.5 MB, free: 4.934 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002767/0.3529, allocations: 104 kB / 416.6 MB, free: 4.832 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00314/0.3561, allocations: 1.79 MB / 418.4 MB, free: 2.984 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.186e-05/0.3561, allocations: 3.938 kB / 418.4 MB, free: 2.98 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001686/0.3563, allocations: 43.98 kB / 418.5 MB, free: 2.938 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001501/0.3564, allocations: 106 kB / 418.6 MB, free: 2.832 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003096/0.3595, allocations: 1.772 MB / 420.3 MB, free: 1.051 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.01134/0.3709, allocations: 6.971 MB / 427.3 MB, free: 9.773 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002602/0.3735, allocations: 1.501 MB / 428.8 MB, free: 8.266 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00134/0.3749, allocations: 0.8822 MB / 429.7 MB, free: 7.383 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009251/0.3758, allocations: 0.6607 MB / 430.4 MB, free: 6.59 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.356e-05/0.3759, allocations: 47.56 kB / 430.4 MB, free: 6.535 MB / 334.1 MB Notification: Performance of pre-optimization done (n=116): time 3.326e-06/0.3759, allocations: 4 kB / 430.4 MB, free: 6.531 MB / 334.1 MB Notification: Performance of matching and sorting (n=128): time 0.01613/0.392, allocations: 6.679 MB / 437.1 MB, free: 15.73 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.868e-05/0.3921, allocations: 167.5 kB / 437.3 MB, free: 15.53 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001474/0.3936, allocations: 1.103 MB / 438.4 MB, free: 14.41 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001271/0.3937, allocations: 53.69 kB / 438.4 MB, free: 14.35 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003716/0.3941, allocations: 0.4965 MB / 438.9 MB, free: 13.85 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003603/0.3945, allocations: 437.8 kB / 439.3 MB, free: 13.41 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001934/0.3947, allocations: 113.7 kB / 439.4 MB, free: 13.3 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001442/0.3948, allocations: 357.9 kB / 439.8 MB, free: 12.94 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001346/0.3962, allocations: 0.8432 MB / 440.6 MB, free: 12.1 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001495/0.3977, allocations: 1.072 MB / 441.7 MB, free: 10.95 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002652/0.4004, allocations: 1.812 MB / 443.5 MB, free: 9.074 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.681e-06/0.4004, allocations: 4 kB / 443.5 MB, free: 9.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.004429/0.4048, allocations: 2.612 MB / 446.1 MB, free: 6.434 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001436/0.405, allocations: 238.1 kB / 446.4 MB, free: 6.137 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.202e-05/0.405, allocations: 4 kB / 446.4 MB, free: 6.133 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003451/0.4084, allocations: 1.3 MB / 447.7 MB, free: 4.816 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008809/0.4093, allocations: 215.6 kB / 447.9 MB, free: 4.605 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006123/0.4155, allocations: 6.371 MB / 454.3 MB, free: 13.9 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001281/0.4168, allocations: 95.84 kB / 454.3 MB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001771/0.417, allocations: 59.97 kB / 454.4 MB, free: 13.75 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.374e-06/0.417, allocations: 7.938 kB / 454.4 MB, free: 13.74 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00407/0.421, allocations: 2.342 MB / 456.8 MB, free: 11.38 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.461e-05/0.4211, allocations: 8.031 kB / 456.8 MB, free: 11.37 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002356/0.4234, allocations: 1.027 MB / 457.8 MB, free: 10.33 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009336/0.4244, allocations: 227.6 kB / 458 MB, free: 10.11 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005884/0.4303, allocations: 6.107 MB / 464.1 MB, free: 3.648 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001546/0.4319, allocations: 99.84 kB / 464.2 MB, free: 3.551 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000316/0.4322, allocations: 59.97 kB / 464.3 MB, free: 3.492 MB / 366.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.001064/0.4333, allocations: 451.5 kB / 464.7 MB, free: 3.043 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003787/0.4337, allocations: 142.3 kB / 464.9 MB, free: 2.902 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005259/0.4389, allocations: 2.792 MB / 467.6 MB, free: 88 kB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.269e-05/0.439, allocations: 20.19 kB / 467.7 MB, free: 68 kB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.404e-05/0.439, allocations: 0 / 467.7 MB, free: 68 kB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.954e-05/0.439, allocations: 12.02 kB / 467.7 MB, free: 56 kB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007381/0.4464, allocations: 4.534 MB / 472.2 MB, free: 11.45 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.144e-06/0.4465, allocations: 0 / 472.2 MB, free: 11.45 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007681/0.4473, allocations: 151.8 kB / 472.4 MB, free: 11.3 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003238/0.4505, allocations: 1.304 MB / 473.7 MB, free: 9.98 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001417/0.4507, allocations: 35.97 kB / 473.7 MB, free: 9.945 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006225/0.4569, allocations: 6.387 MB / 480.1 MB, free: 3.215 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.4569, allocations: 4 kB / 480.1 MB, free: 3.211 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006456/0.4634, allocations: 3.955 MB / 484 MB, free: 15.22 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008424/0.4643, allocations: 447 kB / 484.5 MB, free: 14.77 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003023/0.4646, allocations: 28 kB / 484.5 MB, free: 14.74 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001184/0.4658, allocations: 91.88 kB / 484.6 MB, free: 14.65 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003362/0.4661, allocations: 145.1 kB / 484.7 MB, free: 14.51 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001439/0.4663, allocations: 55.91 kB / 484.8 MB, free: 14.45 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001088/0.4674, allocations: 0.7493 MB / 485.5 MB, free: 13.7 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4674, allocations: 0 / 485.5 MB, free: 13.7 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002923/0.4703, allocations: 1.05 MB / 486.6 MB, free: 12.64 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.008384/0.4787, allocations: 5.143 MB / 491.7 MB, free: 7.465 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.007306/0.486, allocations: 3.81 MB / 495.5 MB, free: 3.602 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.851e-06/0.4861, allocations: 0 / 495.5 MB, free: 3.602 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002869/0.489, allocations: 1.422 MB / 497 MB, free: 2.156 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003165/0.4921, allocations: 0.5812 MB / 497.6 MB, free: 1.578 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02499/0.5172, allocations: 15.8 MB / 0.5013 GB, free: 1.305 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009804/0.5182, allocations: 1.268 MB / 0.5026 GB, free: 8 kB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001908/0.5201, allocations: 0.5766 MB / 0.5031 GB, free: 15.43 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00073/0.5208, allocations: 0.507 MB / 0.5036 GB, free: 14.92 MB / 430.1 MB Notification: Performance of SimCode: time 5.91e-07/0.5209, allocations: 3.938 kB / 0.5036 GB, free: 14.92 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.065/1.586, allocations: 56.25 MB / 0.5586 GB, free: 146.7 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002305/1.586, allocations: 281.1 kB / 0.5588 GB, free: 146.3 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.945/5.532, allocations: 3.938 kB / 0.5588 GB, free: 146.3 MB / 446.1 MB (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Fluid_Examples_Tanks_TanksWithOverflow_fmu --startTime=0 --stopTime=25000 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Fluid_Examples_Tanks_TanksWithOverflow.fmu > Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe 2>&1)