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.001197/0.001197, allocations: 102.8 kB / 16.92 MB, free: 5.801 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.001107/0.001107, allocations: 191.3 kB / 17.85 MB, free: 5.188 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.306/1.306, allocations: 222.9 MB / 241.6 MB, free: 15.25 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001061/0.001061, allocations: 56.02 kB / 300.7 MB, free: 5.812 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09135/0.09243, allocations: 49.43 MB / 350.2 MB, free: 4.363 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.1866/0.2791, allocations: 30.15 MB / 380.3 MB, free: 9.02 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01406/0.2932, allocations: 10.28 MB / 390.6 MB, free: 4.797 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001171/0.2944, allocations: 32.41 kB / 390.6 MB, free: 4.785 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001115/0.2955, allocations: 479 kB / 391.1 MB, free: 4.508 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003902/0.2994, allocations: 1.872 MB / 393 MB, free: 3.48 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006215/0.3057, allocations: 2.751 MB / 395.7 MB, free: 2.184 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004512/0.3102, allocations: 3.673 MB / 399.4 MB, free: 124 kB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001781/0.312, allocations: 1.157 MB / 400.5 MB, free: 15.37 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002846/0.3148, allocations: 1.501 MB / 402 MB, free: 14.52 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002129/0.317, allocations: 1.419 MB / 403.5 MB, free: 13.68 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003211/0.3173, allocations: 154.9 kB / 403.6 MB, free: 13.68 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004435/0.3218, allocations: 2.071 MB / 405.7 MB, free: 12.6 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000592/0.3224, allocations: 0.5797 MB / 406.3 MB, free: 12.19 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001101/0.3235, allocations: 0.8042 MB / 407.1 MB, free: 11.65 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005804/0.3293, allocations: 3.318 MB / 410.4 MB, free: 8.848 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.3293, allocations: 3.938 kB / 410.4 MB, free: 8.844 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.203e-06/0.3293, allocations: 0 / 410.4 MB, free: 8.844 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.254e-05/0.3294, allocations: 0 / 410.4 MB, free: 8.844 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.005571/0.335, allocations: 2.048 MB / 412.4 MB, free: 6.746 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.762e-05/0.335, allocations: 12.03 kB / 412.4 MB, free: 6.734 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002337/0.3353, allocations: 172.7 kB / 412.6 MB, free: 6.555 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005563/0.3358, allocations: 166.2 kB / 412.8 MB, free: 6.391 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001358/0.3372, allocations: 0.8979 MB / 413.7 MB, free: 5.449 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001719/0.3374, allocations: 238.5 kB / 413.9 MB, free: 5.184 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001777/0.3376, allocations: 95.98 kB / 414 MB, free: 5.09 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002722/0.3403, allocations: 1.794 MB / 415.8 MB, free: 3.238 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.776e-05/0.3403, allocations: 4 kB / 415.8 MB, free: 3.234 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001415/0.3405, allocations: 43.91 kB / 415.8 MB, free: 3.191 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001283/0.3406, allocations: 109.9 kB / 416 MB, free: 3.082 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002756/0.3434, allocations: 1.772 MB / 417.7 MB, free: 1.301 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.01151/0.3549, allocations: 6.944 MB / 424.7 MB, free: 10.05 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002591/0.3575, allocations: 1.486 MB / 426.2 MB, free: 8.555 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001279/0.3588, allocations: 0.8899 MB / 427 MB, free: 7.664 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008072/0.3596, allocations: 0.6412 MB / 427.7 MB, free: 6.895 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.052e-05/0.3597, allocations: 51.56 kB / 427.7 MB, free: 6.832 MB / 334.1 MB Notification: Performance of pre-optimization done (n=116): time 3.497e-06/0.3597, allocations: 0 / 427.7 MB, free: 6.832 MB / 334.1 MB Notification: Performance of matching and sorting (n=128): time 0.01588/0.3756, allocations: 6.612 MB / 434.3 MB, free: 104 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.294e-05/0.3757, allocations: 171.5 kB / 434.5 MB, free: 15.9 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001314/0.377, allocations: 1.107 MB / 435.6 MB, free: 14.77 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001169/0.3771, allocations: 45.7 kB / 435.7 MB, free: 14.72 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003552/0.3775, allocations: 0.4966 MB / 436.2 MB, free: 14.22 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003314/0.3778, allocations: 441.7 kB / 436.6 MB, free: 13.78 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004593/0.3783, allocations: 263.4 kB / 436.9 MB, free: 13.52 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001355/0.3785, allocations: 361.9 kB / 437.2 MB, free: 13.16 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001318/0.3798, allocations: 0.8479 MB / 438.1 MB, free: 12.31 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001502/0.3813, allocations: 1.084 MB / 439.1 MB, free: 11.14 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002601/0.3839, allocations: 1.8 MB / 440.9 MB, free: 9.281 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.3839, allocations: 0 / 440.9 MB, free: 9.281 MB / 350.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.004395/0.3883, allocations: 2.619 MB / 443.6 MB, free: 6.637 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.299e-05/0.3884, allocations: 8 kB / 443.6 MB, free: 6.629 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.389e-05/0.3884, allocations: 4 kB / 443.6 MB, free: 6.625 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003483/0.3919, allocations: 1.32 MB / 444.9 MB, free: 5.293 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009357/0.3928, allocations: 215.7 kB / 445.1 MB, free: 5.082 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006133/0.399, allocations: 6.721 MB / 451.8 MB, free: 14.01 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001365/0.4004, allocations: 64.02 kB / 451.9 MB, free: 13.95 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001545/0.4005, allocations: 63.95 kB / 451.9 MB, free: 13.88 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001752/0.4023, allocations: 1.105 MB / 453.1 MB, free: 12.77 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001482/0.4038, allocations: 1.062 MB / 454.1 MB, free: 11.63 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002604/0.4064, allocations: 1.767 MB / 455.9 MB, free: 9.793 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.487e-06/0.4064, allocations: 3.938 kB / 455.9 MB, free: 9.789 MB / 366.1 MB Notification: Performance of matching and sorting (n=170) (initialization_lambda0): time 0.004281/0.4107, allocations: 2.495 MB / 458.4 MB, free: 7.27 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.361e-05/0.4107, allocations: 8 kB / 458.4 MB, free: 7.262 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.035e-05/0.4107, allocations: 4 kB / 458.4 MB, free: 7.258 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002412/0.4131, allocations: 1.031 MB / 459.4 MB, free: 6.211 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000946/0.4141, allocations: 223.7 kB / 459.6 MB, free: 5.992 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005758/0.4199, allocations: 6.473 MB / 466.1 MB, free: 15.16 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001141/0.421, allocations: 68.12 kB / 466.2 MB, free: 15.1 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001475/0.4212, allocations: 63.97 kB / 466.2 MB, free: 15.04 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.0004066/0.4216, allocations: 265.4 kB / 466.5 MB, free: 14.77 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003291/0.4219, allocations: 138.2 kB / 466.6 MB, free: 14.63 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005199/0.4271, allocations: 2.792 MB / 469.4 MB, free: 11.81 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.932e-05/0.4272, allocations: 12 kB / 469.4 MB, free: 11.8 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.526e-06/0.4272, allocations: 15.81 kB / 469.5 MB, free: 11.79 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.808e-05/0.4272, allocations: 15.91 kB / 469.5 MB, free: 11.77 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007299/0.4345, allocations: 4.526 MB / 474 MB, free: 7.172 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.314e-06/0.4345, allocations: 0 / 474 MB, free: 7.172 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000794/0.4353, allocations: 163.7 kB / 474.2 MB, free: 7.012 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003177/0.4385, allocations: 1.276 MB / 475.4 MB, free: 5.723 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001299/0.4387, allocations: 43.91 kB / 475.5 MB, free: 5.68 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006335/0.445, allocations: 6.75 MB / 482.2 MB, free: 14.57 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.445, allocations: 0 / 482.2 MB, free: 14.57 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006319/0.4514, allocations: 3.952 MB / 486.2 MB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007411/0.4521, allocations: 435.1 kB / 486.6 MB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002884/0.4524, allocations: 24 kB / 486.6 MB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001105/0.4535, allocations: 71.88 kB / 486.7 MB, free: 10.05 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003343/0.4539, allocations: 137.1 kB / 486.8 MB, free: 9.914 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001444/0.454, allocations: 51.97 kB / 486.9 MB, free: 9.863 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001082/0.4551, allocations: 0.7532 MB / 487.6 MB, free: 9.102 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4551, allocations: 0 / 487.6 MB, free: 9.102 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002735/0.4579, allocations: 1.05 MB / 488.7 MB, free: 8.051 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.008057/0.4659, allocations: 5.132 MB / 493.8 MB, free: 2.887 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.008595/0.4745, allocations: 4.396 MB / 498.2 MB, free: 14.44 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.438e-06/0.4746, allocations: 0 / 498.2 MB, free: 14.44 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002803/0.4774, allocations: 1.446 MB / 499.7 MB, free: 12.97 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002825/0.4802, allocations: 0.6282 MB / 0.4886 GB, free: 12.36 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02527/0.5055, allocations: 15.27 MB / 0.5035 GB, free: 12.61 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001083/0.5066, allocations: 1.264 MB / 0.5047 GB, free: 11.32 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001962/0.5086, allocations: 0.5799 MB / 0.5053 GB, free: 10.73 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007009/0.5093, allocations: 0.5032 MB / 0.5058 GB, free: 10.23 MB / 430.1 MB Notification: Performance of SimCode: time 5.61e-07/0.5093, allocations: 0 / 0.5058 GB, free: 10.23 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4954/1.005, allocations: 59.23 MB / 0.5636 GB, free: 141.3 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.4/14.4, allocations: 10.03 kB / 0.5636 GB, free: 141.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)