Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001561/0.001565, allocations: 188.3 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.165/2.165, allocations: 205.4 MB / 222.5 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001135/0.001135, allocations: 94.86 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003898/0.0003902, allocations: 12 kB / 327.1 MB, free: 15.01 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.1059, allocations: 47.58 MB / 374.6 MB, free: 15.35 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks): time 0.02449/0.1305, allocations: 15.29 MB / 389.9 MB, free: 4 kB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.2757/0.4063, allocations: 5.438 MB / 395.4 MB, free: 9.078 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001219/0.4075, allocations: 34.25 kB / 395.4 MB, free: 9.074 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00131/0.4089, allocations: 296 kB / 395.7 MB, free: 9.074 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003784/0.4127, allocations: 0.8383 MB / 396.5 MB, free: 9.047 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005851/0.4186, allocations: 1.252 MB / 397.8 MB, free: 8.988 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.003021/0.4216, allocations: 1.081 MB / 398.9 MB, free: 8.945 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001002/0.4226, allocations: 397.2 kB / 399.2 MB, free: 8.898 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001853/0.4245, allocations: 0.5506 MB / 399.8 MB, free: 8.812 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001267/0.4258, allocations: 464.4 kB / 400.2 MB, free: 8.734 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001839/0.426, allocations: 34.88 kB / 400.3 MB, free: 8.734 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003522/0.4295, allocations: 1.014 MB / 401.3 MB, free: 8.723 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006961/0.4303, allocations: 210.8 kB / 401.5 MB, free: 8.699 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004667/0.4308, allocations: 163.1 kB / 401.7 MB, free: 8.645 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003304/0.4341, allocations: 1.206 MB / 402.9 MB, free: 8.551 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.4341, allocations: 0 / 402.9 MB, free: 8.551 MB / 282.7 MB Notification: Performance of FrontEnd: time 4.269e-06/0.4341, allocations: 1.281 kB / 402.9 MB, free: 8.551 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.347e-05/0.4341, allocations: 3.938 kB / 402.9 MB, free: 8.547 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.003131/0.4373, allocations: 1.036 MB / 403.9 MB, free: 7.875 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.606e-05/0.4373, allocations: 9.375 kB / 403.9 MB, free: 7.875 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002018/0.4376, allocations: 95.48 kB / 404 MB, free: 7.832 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003915/0.438, allocations: 86.95 kB / 404.1 MB, free: 7.793 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001197/0.4392, allocations: 0.5266 MB / 404.6 MB, free: 7.527 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.564e-05/0.4392, allocations: 44.48 kB / 404.7 MB, free: 7.527 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001306/0.4394, allocations: 45.52 kB / 404.7 MB, free: 7.527 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001889/0.4413, allocations: 0.7309 MB / 405.4 MB, free: 7.422 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.065e-05/0.4413, allocations: 4.938 kB / 405.4 MB, free: 7.418 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001003/0.4414, allocations: 24.23 kB / 405.5 MB, free: 7.414 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001112/0.4416, allocations: 43.38 kB / 405.5 MB, free: 7.414 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001849/0.4434, allocations: 0.6982 MB / 406.2 MB, free: 7.164 MB / 282.7 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.006606/0.4501, allocations: 3.052 MB / 409.3 MB, free: 4.59 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001226/0.4513, allocations: 495 kB / 409.7 MB, free: 4.332 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003284/0.4516, allocations: 343.3 kB / 410.1 MB, free: 3.945 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.19e-05/0.4517, allocations: 38.78 kB / 410.1 MB, free: 3.902 MB / 282.7 MB Notification: Performance of pre-optimization done (n=48): time 2.885e-06/0.4517, allocations: 0 / 410.1 MB, free: 3.902 MB / 282.7 MB Notification: Performance of matching and sorting (n=58): time 0.01272/0.4644, allocations: 2.32 MB / 412.4 MB, free: 2.535 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.025e-05/0.4645, allocations: 87.16 kB / 412.5 MB, free: 2.438 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001683/0.4662, allocations: 0.6141 MB / 413.1 MB, free: 2.074 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002522/0.4665, allocations: 39.98 kB / 413.2 MB, free: 2.035 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003541/0.4669, allocations: 357 kB / 413.5 MB, free: 1.711 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003475/0.4673, allocations: 208.4 kB / 413.7 MB, free: 1.535 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.79e-05/0.4674, allocations: 14 kB / 413.7 MB, free: 1.523 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001569/0.4676, allocations: 339.5 kB / 414.1 MB, free: 1.191 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001228/0.4688, allocations: 303 kB / 414.4 MB, free: 1.039 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001406/0.4702, allocations: 471.4 kB / 414.8 MB, free: 0.6758 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001437/0.4717, allocations: 345.5 kB / 415.2 MB, free: 0.5039 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.327e-05/0.4718, allocations: 1.312 kB / 415.2 MB, free: 0.5039 MB / 282.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.003699/0.4755, allocations: 0.9159 MB / 416.1 MB, free: 28 kB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001242/0.4768, allocations: 1.833 MB / 417.9 MB, free: 14.07 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.655e-05/0.4769, allocations: 4.656 kB / 417.9 MB, free: 14.07 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006776/0.4836, allocations: 424.5 kB / 418.3 MB, free: 13.88 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00167/0.4854, allocations: 154.7 kB / 418.5 MB, free: 13.84 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002046/0.4875, allocations: 0.8221 MB / 419.3 MB, free: 13.15 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001699/0.4892, allocations: 53.22 kB / 419.4 MB, free: 13.12 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002022/0.4895, allocations: 32.03 kB / 419.4 MB, free: 13.12 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.988e-05/0.4895, allocations: 2.906 kB / 419.4 MB, free: 13.12 MB / 298.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003623/0.4932, allocations: 0.81 MB / 420.2 MB, free: 12.71 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.643e-05/0.4932, allocations: 9.031 kB / 420.2 MB, free: 12.7 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005551/0.4988, allocations: 284.4 kB / 420.5 MB, free: 12.57 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002496/0.5014, allocations: 155.7 kB / 420.6 MB, free: 12.54 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001604/0.503, allocations: 0.7058 MB / 421.4 MB, free: 11.9 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00215/0.5052, allocations: 43.94 kB / 421.4 MB, free: 11.88 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002116/0.5055, allocations: 34.94 kB / 421.4 MB, free: 11.87 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 83 * 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 {2 7} Notification: Performance of prepare postOptimizeDAE: time 0.001218/0.5068, allocations: 328.4 kB / 421.7 MB, free: 11.59 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004214/0.5072, allocations: 68.75 kB / 421.8 MB, free: 11.56 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005754/0.513, allocations: 0.8718 MB / 422.7 MB, free: 11.05 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.913e-05/0.5131, allocations: 7.344 kB / 422.7 MB, free: 11.05 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.092e-05/0.5131, allocations: 0 / 422.7 MB, free: 11.05 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.73e-05/0.5131, allocations: 3.984 kB / 422.7 MB, free: 11.04 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009127/0.5223, allocations: 1.718 MB / 424.4 MB, free: 9.426 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-05/0.5224, allocations: 8.797 kB / 424.4 MB, free: 9.418 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002049/0.5244, allocations: 108 kB / 424.5 MB, free: 9.312 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004646/0.5291, allocations: 352.5 kB / 424.9 MB, free: 8.965 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002192/0.5294, allocations: 19.98 kB / 424.9 MB, free: 8.945 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002563/0.532, allocations: 0.8099 MB / 425.7 MB, free: 8.109 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.021e-06/0.5321, allocations: 4.562 kB / 425.7 MB, free: 8.105 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006745/0.5388, allocations: 1.306 MB / 427 MB, free: 6.762 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006257/0.5395, allocations: 152.2 kB / 427.2 MB, free: 6.594 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003798/0.5399, allocations: 20 kB / 427.2 MB, free: 6.574 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002009/0.5419, allocations: 40.03 kB / 427.2 MB, free: 6.535 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003139/0.5423, allocations: 52.48 kB / 427.3 MB, free: 6.484 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001727/0.5425, allocations: 23.98 kB / 427.3 MB, free: 6.461 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.001363/0.5439, allocations: 447 kB / 427.7 MB, free: 6.031 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.52e-07/0.5439, allocations: 4 kB / 427.7 MB, free: 6.027 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.005753/0.5497, allocations: 0.5271 MB / 428.3 MB, free: 5.5 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank2.aboveLevel[1]) * Number of discrete states: 2 (tank2.aboveLevel[1],tank1.aboveLevel[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 53 * 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 {2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.005637/0.5554, allocations: 2.323 MB / 430.6 MB, free: 3.156 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.003946/0.5593, allocations: 1.158 MB / 431.7 MB, free: 2 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.035e-05/0.5594, allocations: 4 kB / 431.7 MB, free: 1.996 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001252/0.5607, allocations: 391.5 kB / 432.1 MB, free: 1.613 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002938/0.5636, allocations: 330.7 kB / 432.5 MB, free: 1.285 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007611/0.5713, allocations: 5.563 MB / 438 MB, free: 11.58 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008243/0.5722, allocations: 0.9832 MB / 439 MB, free: 10.57 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007725/0.573, allocations: 259.3 kB / 439.3 MB, free: 10.32 MB / 314.7 MB Notification: Performance of SimCode: time 1.212e-06/0.573, allocations: 0 / 439.3 MB, free: 10.32 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.242/3.815, allocations: 20.25 MB / 459.5 MB, free: 6.062 MB / 330.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TwoTanks_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TwoTanks.fmu > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks_res.mat does not exist to compare? outputFormat=mat