Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.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.ThreeTanks,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_Tanks_ThreeTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.ThreeTanks,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_Tanks_ThreeTanks",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.0007435/0.0007434, allocations: 89.39 kB / 16.32 MB, free: 6.449 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.0009262/0.0009266, allocations: 180.2 kB / 17.21 MB, free: 6.32 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.307/1.307, allocations: 223.3 MB / 241.2 MB, free: 276 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002604/0.0002606, allocations: 4 kB / 300.9 MB, free: 6.348 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1172/0.1175, allocations: 50.41 MB / 351.3 MB, free: 3.926 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.2381/0.3557, allocations: 27.86 MB / 379.2 MB, free: 9.473 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01731/0.373, allocations: 14.31 MB / 393.5 MB, free: 4.301 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003067/0.3761, allocations: 62.28 kB / 393.6 MB, free: 4.266 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002774/0.3789, allocations: 0.4963 MB / 394.1 MB, free: 4.004 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00719/0.3862, allocations: 2.157 MB / 396.2 MB, free: 2.836 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009255/0.3954, allocations: 2.925 MB / 399.1 MB, free: 1.191 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007146/0.4026, allocations: 5.037 MB / 404.2 MB, free: 14.21 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001861/0.4045, allocations: 0.9807 MB / 405.2 MB, free: 13.56 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003045/0.4075, allocations: 1.41 MB / 406.6 MB, free: 12.87 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0027/0.4102, allocations: 1.599 MB / 408.2 MB, free: 11.98 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002265/0.4105, allocations: 89.16 kB / 408.3 MB, free: 11.98 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005094/0.4156, allocations: 2.089 MB / 410.3 MB, free: 10.78 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007168/0.4163, allocations: 0.5374 MB / 410.9 MB, free: 10.24 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000604/0.4169, allocations: 309 kB / 411.2 MB, free: 9.93 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004712/0.4216, allocations: 2.607 MB / 413.8 MB, free: 7.32 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.975e-06/0.4217, allocations: 4 kB / 413.8 MB, free: 7.316 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.4217, allocations: 0 / 413.8 MB, free: 7.316 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.711e-05/0.4217, allocations: 0 / 413.8 MB, free: 7.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: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.004362/0.4261, allocations: 1.9 MB / 415.7 MB, free: 5.363 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.022e-05/0.4261, allocations: 8.031 kB / 415.7 MB, free: 5.355 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00025/0.4264, allocations: 164.5 kB / 415.9 MB, free: 5.188 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004491/0.4268, allocations: 178.1 kB / 416 MB, free: 5.012 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001513/0.4283, allocations: 0.9723 MB / 417 MB, free: 3.996 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001558/0.4285, allocations: 175.1 kB / 417.2 MB, free: 3.805 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001752/0.4287, allocations: 103.9 kB / 417.3 MB, free: 3.703 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002708/0.4314, allocations: 1.752 MB / 419 MB, free: 1.902 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.84e-05/0.4314, allocations: 0 / 419 MB, free: 1.902 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001291/0.4316, allocations: 47.91 kB / 419.1 MB, free: 1.855 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001657/0.4318, allocations: 113.9 kB / 419.2 MB, free: 1.742 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002766/0.4345, allocations: 1.776 MB / 421 MB, free: 15.96 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.01084/0.4454, allocations: 6.735 MB / 427.7 MB, free: 8.887 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001837/0.4472, allocations: 1.227 MB / 428.9 MB, free: 7.652 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001158/0.4484, allocations: 0.7728 MB / 429.7 MB, free: 6.879 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006024/0.4544, allocations: 4.287 MB / 434 MB, free: 2.176 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.309e-05/0.4545, allocations: 47.55 kB / 434 MB, free: 2.121 MB / 334.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007699/0.4553, allocations: 210.6 kB / 434.2 MB, free: 1.914 MB / 334.1 MB Notification: Performance of pre-optimization done (n=97): time 3.928e-06/0.4553, allocations: 0 / 434.2 MB, free: 1.914 MB / 334.1 MB Notification: Performance of matching and sorting (n=112): time 0.01719/0.4725, allocations: 5.711 MB / 440 MB, free: 12.14 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.238e-05/0.4726, allocations: 149.5 kB / 440.1 MB, free: 11.96 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001746/0.4744, allocations: 1.249 MB / 441.3 MB, free: 10.7 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001226/0.4745, allocations: 49.7 kB / 441.4 MB, free: 10.65 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004928/0.475, allocations: 0.6091 MB / 442 MB, free: 10.03 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003568/0.4754, allocations: 386.4 kB / 442.4 MB, free: 9.648 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.817e-05/0.4755, allocations: 28 kB / 442.4 MB, free: 9.621 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001849/0.4757, allocations: 361.9 kB / 442.8 MB, free: 9.262 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0011/0.4768, allocations: 0.6949 MB / 443.5 MB, free: 8.566 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001368/0.4782, allocations: 1.048 MB / 444.5 MB, free: 7.375 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00126/0.4794, allocations: 0.8066 MB / 445.3 MB, free: 6.57 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.482e-06/0.4795, allocations: 7.938 kB / 445.3 MB, free: 6.562 MB / 350.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.003924/0.4834, allocations: 2.242 MB / 447.6 MB, free: 4.309 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003275/0.4837, allocations: 383.1 kB / 447.9 MB, free: 3.797 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.737e-05/0.4838, allocations: 8 kB / 447.9 MB, free: 3.789 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006366/0.4901, allocations: 1.265 MB / 449.2 MB, free: 2.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001342/0.4915, allocations: 303.5 kB / 449.5 MB, free: 2.223 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002418/0.4939, allocations: 1.606 MB / 451.1 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001585/0.4955, allocations: 91.73 kB / 451.2 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000176/0.4957, allocations: 72.59 kB / 451.3 MB, free: 436 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.033e-05/0.4958, allocations: 4 kB / 451.3 MB, free: 432 kB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003473/0.4992, allocations: 2.026 MB / 453.3 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.889e-05/0.4993, allocations: 8 kB / 453.3 MB, free: 14.38 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005576/0.5049, allocations: 1.122 MB / 454.4 MB, free: 13.26 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001315/0.5062, allocations: 307.5 kB / 454.7 MB, free: 12.96 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002119/0.5083, allocations: 1.448 MB / 456.2 MB, free: 11.48 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001459/0.5098, allocations: 83.81 kB / 456.3 MB, free: 11.4 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002784/0.5101, allocations: 75.95 kB / 456.3 MB, free: 11.33 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (156): * Single equations (assignments): 155 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {8 18} Notification: Performance of prepare postOptimizeDAE: time 0.00107/0.5112, allocations: 465.4 kB / 456.8 MB, free: 10.86 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004667/0.5116, allocations: 150.2 kB / 456.9 MB, free: 10.71 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004521/0.5162, allocations: 2.078 MB / 459 MB, free: 8.629 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.572e-05/0.5162, allocations: 12 kB / 459 MB, free: 8.617 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.468e-06/0.5162, allocations: 4 kB / 459 MB, free: 8.613 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.567e-05/0.5162, allocations: 7.969 kB / 459 MB, free: 8.605 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006365/0.5226, allocations: 3.578 MB / 462.6 MB, free: 4.973 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.872e-06/0.5227, allocations: 4 kB / 462.6 MB, free: 4.969 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009297/0.5236, allocations: 195.7 kB / 462.8 MB, free: 4.777 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003577/0.5272, allocations: 1 MB / 463.8 MB, free: 3.773 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001324/0.5273, allocations: 35.98 kB / 463.8 MB, free: 3.738 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002253/0.5296, allocations: 1.596 MB / 465.4 MB, free: 2.117 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.167e-06/0.5296, allocations: 11.89 kB / 465.5 MB, free: 2.105 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004663/0.5343, allocations: 2.899 MB / 468.4 MB, free: 15.18 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009603/0.5353, allocations: 399.1 kB / 468.7 MB, free: 14.77 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004057/0.5357, allocations: 28 kB / 468.8 MB, free: 14.74 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00124/0.5369, allocations: 87.73 kB / 468.9 MB, free: 14.66 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002273/0.5372, allocations: 97.16 kB / 468.9 MB, free: 14.56 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001578/0.5373, allocations: 55.97 kB / 469 MB, free: 14.51 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001565/0.5389, allocations: 0.8324 MB / 469.8 MB, free: 13.67 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.5389, allocations: 0 / 469.8 MB, free: 13.67 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003975/0.5429, allocations: 1.16 MB / 471 MB, free: 12.51 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T,tank3.level,tank3.medium.T) * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 95 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {9 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.007198/0.5501, allocations: 4.191 MB / 475.2 MB, free: 8.289 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006288/0.5564, allocations: 2.777 MB / 478 MB, free: 5.52 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.003e-06/0.5564, allocations: 0 / 478 MB, free: 5.52 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001853/0.5583, allocations: 0.8717 MB / 478.8 MB, free: 4.652 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003747/0.5621, allocations: 0.6175 MB / 479.5 MB, free: 4.043 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0216/0.5837, allocations: 10.7 MB / 490.2 MB, free: 8.887 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001028/0.5848, allocations: 1.292 MB / 491.5 MB, free: 7.562 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.002477/0.5873, allocations: 0.5977 MB / 492 MB, free: 6.961 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009121/0.5882, allocations: 0.5344 MB / 492.6 MB, free: 6.426 MB / 398.1 MB Notification: Performance of SimCode: time 1.152e-06/0.5882, allocations: 0 / 492.6 MB, free: 6.426 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08899/0.6772, allocations: 54.34 MB / 0.5341 GB, free: 480 kB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001801/0.6774, allocations: 205.3 kB / 0.5343 GB, free: 232 kB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.401/4.079, allocations: 0 / 0.5343 GB, free: 232 kB / 446.1 MB (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Fluid_Examples_Tanks_ThreeTanks_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Fluid_Examples_Tanks_ThreeTanks.fmu > Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks_res.mat does not exist to compare? outputFormat=mat