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.0009419/0.0009419, allocations: 89.8 kB / 16.3 MB, free: 6.133 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.0009239/0.0009239, allocations: 183.5 kB / 17.2 MB, free: 6.016 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.333/1.333, allocations: 223.2 MB / 241.1 MB, free: 14.65 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002696/0.0002696, allocations: 5.094 kB / 300.8 MB, free: 6.141 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.1037, allocations: 50.41 MB / 351.2 MB, free: 3.711 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.2338/0.3376, allocations: 21.19 MB / 372.4 MB, free: 9.574 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0141/0.3517, allocations: 9.942 MB / 382.4 MB, free: 9.328 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001377/0.3532, allocations: 42.94 kB / 382.4 MB, free: 9.305 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001269/0.3544, allocations: 414 kB / 382.8 MB, free: 9.219 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004901/0.3594, allocations: 1.499 MB / 384.3 MB, free: 9.113 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007286/0.3667, allocations: 2.129 MB / 386.4 MB, free: 8.527 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004399/0.3711, allocations: 2.07 MB / 388.5 MB, free: 7.914 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001925/0.373, allocations: 0.9664 MB / 389.5 MB, free: 7.645 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002519/0.3756, allocations: 1.142 MB / 390.6 MB, free: 7.254 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00161/0.3772, allocations: 0.9624 MB / 391.6 MB, free: 6.859 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002243/0.3774, allocations: 82.91 kB / 391.7 MB, free: 6.855 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004658/0.3821, allocations: 1.78 MB / 393.4 MB, free: 6.055 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005947/0.3827, allocations: 470.4 kB / 393.9 MB, free: 5.773 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005845/0.3833, allocations: 286 kB / 394.2 MB, free: 5.625 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003494/0.3868, allocations: 2.285 MB / 396.5 MB, free: 4.348 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.3868, allocations: 0 / 396.5 MB, free: 4.348 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.384e-06/0.3868, allocations: 3.938 kB / 396.5 MB, free: 4.344 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.65e-05/0.3869, allocations: 0 / 396.5 MB, free: 4.344 MB / 302.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.004662/0.3915, allocations: 1.766 MB / 398.2 MB, free: 3.09 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.416e-05/0.3916, allocations: 12.19 kB / 398.2 MB, free: 3.086 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003022/0.3919, allocations: 176.1 kB / 398.4 MB, free: 2.949 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005027/0.3924, allocations: 162.7 kB / 398.6 MB, free: 2.875 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001538/0.3939, allocations: 0.8697 MB / 399.4 MB, free: 2.23 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001646/0.3941, allocations: 243.7 kB / 399.7 MB, free: 2.023 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001929/0.3943, allocations: 96.62 kB / 399.8 MB, free: 1.996 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002479/0.3968, allocations: 1.776 MB / 401.6 MB, free: 0.9258 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.997e-05/0.3968, allocations: 10.44 kB / 401.6 MB, free: 0.918 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001389/0.397, allocations: 38.58 kB / 401.6 MB, free: 0.8945 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001188/0.3971, allocations: 102.1 kB / 401.7 MB, free: 0.8633 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00257/0.3997, allocations: 1.768 MB / 403.5 MB, free: 15.98 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.01269/0.4124, allocations: 6.964 MB / 410.4 MB, free: 9.488 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002529/0.415, allocations: 1.501 MB / 411.9 MB, free: 7.984 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008396/0.4158, allocations: 0.6568 MB / 412.6 MB, free: 7.199 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.835e-05/0.4159, allocations: 47.56 kB / 412.6 MB, free: 7.145 MB / 318.1 MB Notification: Performance of pre-optimization done (n=116): time 5.009e-06/0.4159, allocations: 0 / 412.6 MB, free: 7.145 MB / 318.1 MB Notification: Performance of matching and sorting (n=128): time 0.01663/0.4325, allocations: 6.651 MB / 419.3 MB, free: 392 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001053/0.4327, allocations: 167.5 kB / 419.5 MB, free: 184 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001577/0.4342, allocations: 1.095 MB / 420.6 MB, free: 15.07 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001395/0.4344, allocations: 53.7 kB / 420.6 MB, free: 15.01 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003812/0.4348, allocations: 0.4965 MB / 421.1 MB, free: 14.5 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003688/0.4352, allocations: 433.9 kB / 421.5 MB, free: 14.07 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.428e-05/0.4353, allocations: 24 kB / 421.5 MB, free: 14.05 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001466/0.4354, allocations: 361.9 kB / 421.9 MB, free: 13.69 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001272/0.4367, allocations: 0.8237 MB / 422.7 MB, free: 12.86 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001464/0.4382, allocations: 1.061 MB / 423.8 MB, free: 11.73 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001409/0.4396, allocations: 0.8847 MB / 424.7 MB, free: 10.84 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.909e-06/0.4396, allocations: 3.938 kB / 424.7 MB, free: 10.84 MB / 334.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.004835/0.4444, allocations: 2.596 MB / 427.3 MB, free: 8.215 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009469/0.4454, allocations: 1.84 MB / 429.1 MB, free: 6.242 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.001e-05/0.4455, allocations: 4.875 kB / 429.1 MB, free: 6.238 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003596/0.4491, allocations: 1.296 MB / 430.4 MB, free: 4.93 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001066/0.4501, allocations: 215.6 kB / 430.6 MB, free: 4.719 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006366/0.4565, allocations: 6.393 MB / 437 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002045/0.4586, allocations: 95.98 kB / 437.1 MB, free: 13.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002418/0.4589, allocations: 56.55 kB / 437.2 MB, free: 13.83 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.407e-05/0.4589, allocations: 4 kB / 437.2 MB, free: 13.83 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004272/0.4632, allocations: 2.334 MB / 439.5 MB, free: 11.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.278e-05/0.4632, allocations: 4 kB / 439.5 MB, free: 11.47 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002512/0.4657, allocations: 1.039 MB / 440.5 MB, free: 10.42 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001086/0.4668, allocations: 219.7 kB / 440.8 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005989/0.4728, allocations: 6.143 MB / 446.9 MB, free: 3.719 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001695/0.4746, allocations: 91.91 kB / 447 MB, free: 3.629 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000161/0.4747, allocations: 63.97 kB / 447.1 MB, free: 3.566 MB / 350.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 (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],$PRE.hysteresis.y,hysteresis.y) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 3 {2 3,4 11,4 11} Notification: Performance of prepare postOptimizeDAE: time 0.0008639/0.4756, allocations: 465.5 kB / 447.5 MB, free: 3.102 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002613/0.4759, allocations: 134.4 kB / 447.6 MB, free: 2.969 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004918/0.4808, allocations: 2.798 MB / 450.4 MB, free: 152 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.707e-05/0.4808, allocations: 19.94 kB / 450.5 MB, free: 132 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.574e-06/0.4808, allocations: 3.953 kB / 450.5 MB, free: 128 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.749e-05/0.4809, allocations: 11.97 kB / 450.5 MB, free: 116 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007461/0.4883, allocations: 4.534 MB / 455 MB, free: 11.51 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.474e-06/0.4884, allocations: 0 / 455 MB, free: 11.51 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007954/0.4892, allocations: 159.7 kB / 455.2 MB, free: 11.36 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003321/0.4925, allocations: 1.288 MB / 456.4 MB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001737/0.4927, allocations: 39.97 kB / 456.5 MB, free: 10.01 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006315/0.499, allocations: 6.433 MB / 462.9 MB, free: 3.227 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.764e-06/0.4991, allocations: 0 / 462.9 MB, free: 3.227 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006373/0.5054, allocations: 3.944 MB / 466.9 MB, free: 15.25 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001123/0.5066, allocations: 443.1 kB / 467.3 MB, free: 14.8 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002299/0.5068, allocations: 28 kB / 467.3 MB, free: 14.77 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001063/0.5079, allocations: 95.83 kB / 467.4 MB, free: 14.68 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003336/0.5082, allocations: 145.1 kB / 467.6 MB, free: 14.54 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001215/0.5084, allocations: 51.97 kB / 467.6 MB, free: 14.48 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0009504/0.5093, allocations: 0.7415 MB / 468.4 MB, free: 13.73 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.5093, allocations: 0 / 468.4 MB, free: 13.73 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002981/0.5123, allocations: 1.054 MB / 469.4 MB, free: 12.68 MB / 382.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 (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 3 {2 4,4 14,4 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.008094/0.5204, allocations: 5.115 MB / 474.5 MB, free: 7.527 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.007214/0.5277, allocations: 3.794 MB / 478.3 MB, free: 3.684 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.985e-06/0.5277, allocations: 4 kB / 478.3 MB, free: 3.68 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002873/0.5306, allocations: 1.426 MB / 479.7 MB, free: 2.227 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00297/0.5336, allocations: 0.5773 MB / 480.3 MB, free: 1.656 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009604/0.5432, allocations: 7.735 MB / 488.1 MB, free: 9.723 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000859/0.5441, allocations: 1.303 MB / 489.4 MB, free: 8.391 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001985/0.5461, allocations: 0.5645 MB / 489.9 MB, free: 7.824 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007011/0.5468, allocations: 0.507 MB / 490.4 MB, free: 7.316 MB / 398.1 MB Notification: Performance of SimCode: time 7.51e-07/0.5468, allocations: 0 / 490.4 MB, free: 7.316 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08614/0.633, allocations: 55 MB / 0.5327 GB, free: 0.7266 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000196/0.6332, allocations: 253.3 kB / 0.5329 GB, free: 400 kB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.553/4.186, allocations: 0 / 0.5329 GB, free: 400 kB / 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/linux/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) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow_res.mat does not exist to compare? outputFormat=mat