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.0009824/0.0009823, allocations: 97.3 kB / 16.3 MB, free: 5.656 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.001092/0.001092, allocations: 185.3 kB / 17.19 MB, free: 5.59 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.435/1.435, allocations: 223.2 MB / 241.1 MB, free: 14.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002743/0.0002745, allocations: 4 kB / 300.8 MB, free: 6.109 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1105/0.1107, allocations: 50.41 MB / 351.2 MB, free: 3.691 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.2204/0.3312, allocations: 25.14 MB / 376.4 MB, free: 9.348 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02082/0.3521, allocations: 13.38 MB / 389.7 MB, free: 5.957 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002494/0.3546, allocations: 62.25 kB / 389.8 MB, free: 5.922 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002251/0.3569, allocations: 0.5275 MB / 390.3 MB, free: 5.688 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007506/0.3645, allocations: 1.884 MB / 392.2 MB, free: 4.828 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01019/0.3747, allocations: 2.917 MB / 395.1 MB, free: 3.504 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006055/0.3807, allocations: 2.308 MB / 397.4 MB, free: 2.082 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001879/0.3827, allocations: 0.9788 MB / 398.4 MB, free: 1.441 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002927/0.3856, allocations: 1.216 MB / 399.6 MB, free: 0.7852 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002341/0.388, allocations: 1.087 MB / 400.7 MB, free: 152 kB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004791/0.3885, allocations: 92.38 kB / 400.8 MB, free: 148 kB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007285/0.3958, allocations: 2.213 MB / 403 MB, free: 15.07 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001336/0.3971, allocations: 0.4912 MB / 403.5 MB, free: 14.75 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008922/0.398, allocations: 308.7 kB / 403.8 MB, free: 14.6 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005836/0.4039, allocations: 2.626 MB / 406.4 MB, free: 13.04 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.4039, allocations: 4 kB / 406.4 MB, free: 13.04 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.4039, allocations: 0 / 406.4 MB, free: 13.04 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.002e-05/0.404, allocations: 0 / 406.4 MB, free: 13.04 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.004882/0.4089, allocations: 1.903 MB / 408.3 MB, free: 11.65 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.908e-05/0.4089, allocations: 9.219 kB / 408.4 MB, free: 11.65 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002943/0.4092, allocations: 167.3 kB / 408.5 MB, free: 11.52 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004868/0.4097, allocations: 178 kB / 408.7 MB, free: 11.44 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001792/0.4115, allocations: 0.9733 MB / 409.7 MB, free: 10.58 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001664/0.4117, allocations: 171.1 kB / 409.8 MB, free: 10.39 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001924/0.4119, allocations: 99.95 kB / 409.9 MB, free: 10.3 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002888/0.4148, allocations: 1.741 MB / 411.7 MB, free: 8.504 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.156e-05/0.4148, allocations: 0 / 411.7 MB, free: 8.504 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001448/0.415, allocations: 47.95 kB / 411.7 MB, free: 8.457 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001588/0.4152, allocations: 113.9 kB / 411.8 MB, free: 8.344 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003001/0.4182, allocations: 1.776 MB / 413.6 MB, free: 6.559 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.01276/0.4309, allocations: 6.81 MB / 420.4 MB, free: 15.41 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001936/0.4329, allocations: 1.235 MB / 421.7 MB, free: 14.17 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006298/0.4392, allocations: 4.318 MB / 426 MB, free: 9.438 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.44e-05/0.4393, allocations: 47.55 kB / 426 MB, free: 9.383 MB / 334.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008694/0.4402, allocations: 214.6 kB / 426.2 MB, free: 9.172 MB / 334.1 MB Notification: Performance of pre-optimization done (n=97): time 3.466e-06/0.4402, allocations: 0 / 426.2 MB, free: 9.172 MB / 334.1 MB Notification: Performance of matching and sorting (n=112): time 0.0188/0.459, allocations: 5.708 MB / 431.9 MB, free: 3.398 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.157e-05/0.4591, allocations: 145.5 kB / 432.1 MB, free: 3.227 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001869/0.461, allocations: 1.246 MB / 433.3 MB, free: 1.973 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002209/0.4613, allocations: 45.7 kB / 433.4 MB, free: 1.922 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004828/0.4617, allocations: 0.613 MB / 434 MB, free: 1.301 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003729/0.4621, allocations: 394.4 kB / 434.4 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.671e-05/0.4622, allocations: 28 kB / 434.4 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001698/0.4624, allocations: 369.8 kB / 434.8 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001144/0.4636, allocations: 0.6949 MB / 435.4 MB, free: 15.82 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001385/0.4649, allocations: 1.044 MB / 436.5 MB, free: 14.63 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001268/0.4662, allocations: 0.8105 MB / 437.3 MB, free: 13.82 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.919e-06/0.4662, allocations: 4 kB / 437.3 MB, free: 13.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.003891/0.4701, allocations: 2.238 MB / 439.5 MB, free: 11.57 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001368/0.4715, allocations: 3.771 MB / 443.3 MB, free: 7.523 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.034e-05/0.4716, allocations: 12 kB / 443.3 MB, free: 7.512 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006732/0.4783, allocations: 1.265 MB / 444.6 MB, free: 6.242 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001456/0.4798, allocations: 299.5 kB / 444.9 MB, free: 5.949 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002482/0.4823, allocations: 1.614 MB / 446.5 MB, free: 4.305 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001556/0.4839, allocations: 87.8 kB / 446.6 MB, free: 4.219 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001746/0.4841, allocations: 67.92 kB / 446.7 MB, free: 4.152 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.479e-05/0.4841, allocations: 7.938 kB / 446.7 MB, free: 4.145 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003378/0.4875, allocations: 2.027 MB / 448.7 MB, free: 2.113 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.847e-05/0.4875, allocations: 12 kB / 448.7 MB, free: 2.102 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006005/0.4935, allocations: 1.11 MB / 449.8 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001347/0.4949, allocations: 311.5 kB / 450.1 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002107/0.497, allocations: 1.45 MB / 451.6 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001576/0.4986, allocations: 83.8 kB / 451.6 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001673/0.4988, allocations: 71.92 kB / 451.7 MB, free: 15.06 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.0009445/0.4997, allocations: 461.5 kB / 452.2 MB, free: 14.6 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003305/0.5001, allocations: 146.2 kB / 452.3 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004013/0.5041, allocations: 2.09 MB / 454.4 MB, free: 12.36 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.052e-05/0.5041, allocations: 16 kB / 454.4 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.947e-06/0.5041, allocations: 3.953 kB / 454.4 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.656e-05/0.5042, allocations: 7.969 kB / 454.4 MB, free: 12.33 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006058/0.5102, allocations: 3.592 MB / 458 MB, free: 8.684 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.13e-06/0.5103, allocations: 0 / 458 MB, free: 8.684 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009047/0.5112, allocations: 195.7 kB / 458.2 MB, free: 8.492 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003786/0.515, allocations: 0.9883 MB / 459.2 MB, free: 7.5 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000271/0.5153, allocations: 39.97 kB / 459.2 MB, free: 7.461 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002597/0.5179, allocations: 1.596 MB / 460.8 MB, free: 5.84 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.5179, allocations: 0 / 460.8 MB, free: 5.84 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00487/0.5228, allocations: 2.911 MB / 463.7 MB, free: 2.906 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001088/0.5239, allocations: 427 kB / 464.2 MB, free: 2.469 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002294/0.5241, allocations: 24 kB / 464.2 MB, free: 2.445 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001023/0.5252, allocations: 83.78 kB / 464.3 MB, free: 2.363 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002404/0.5254, allocations: 97.16 kB / 464.4 MB, free: 2.27 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001159/0.5256, allocations: 51.97 kB / 464.4 MB, free: 2.219 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001151/0.5267, allocations: 0.8362 MB / 465.2 MB, free: 1.379 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5267, allocations: 4 kB / 465.2 MB, free: 1.375 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00307/0.5298, allocations: 1.156 MB / 466.4 MB, free: 224 kB / 366.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.006663/0.5365, allocations: 4.187 MB / 470.6 MB, free: 12 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006118/0.5426, allocations: 2.773 MB / 473.4 MB, free: 9.23 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.703e-06/0.5427, allocations: 0 / 473.4 MB, free: 9.23 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001791/0.5445, allocations: 0.8673 MB / 474.2 MB, free: 8.367 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003193/0.5477, allocations: 0.5984 MB / 474.8 MB, free: 7.777 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01048/0.5582, allocations: 11.22 MB / 486.1 MB, free: 12.29 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009/0.5591, allocations: 1.323 MB / 487.4 MB, free: 10.94 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.002233/0.5614, allocations: 0.5862 MB / 488 MB, free: 10.34 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007515/0.5621, allocations: 0.5422 MB / 488.5 MB, free: 9.801 MB / 398.1 MB Notification: Performance of SimCode: time 1.032e-06/0.5622, allocations: 0 / 488.5 MB, free: 9.801 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08698/0.6491, allocations: 53.45 MB / 0.5292 GB, free: 4.742 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001945/0.6494, allocations: 200.4 kB / 0.5294 GB, free: 4.5 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.275/3.925, allocations: 0 / 0.5294 GB, free: 4.5 MB / 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