Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.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.AST_BatchPlant.Test.TwoTanks,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,fileNamePrefix="Modelica_4_0_0_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008889/0.0008888, allocations: 92.53 kB / 16.3 MB, free: 5.523 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.0008982/0.0008982, allocations: 184.9 kB / 17.2 MB, free: 5.457 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.351/1.351, allocations: 223.2 MB / 241.1 MB, free: 364 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002658/0.0002659, allocations: 4 kB / 300.8 MB, free: 6.344 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09486/0.09515, allocations: 50.41 MB / 351.2 MB, free: 3.926 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks): time 0.0145/0.1097, allocations: 15.28 MB / 366.5 MB, free: 4.59 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1937/0.3034, allocations: 5.487 MB / 372 MB, free: 9.512 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008161/0.3043, allocations: 32 kB / 372 MB, free: 9.512 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009032/0.3052, allocations: 293.9 kB / 372.3 MB, free: 9.508 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0026/0.3078, allocations: 0.8457 MB / 373.2 MB, free: 9.5 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003883/0.3117, allocations: 1.25 MB / 374.4 MB, free: 9.488 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002469/0.3142, allocations: 1.08 MB / 375.5 MB, free: 9.484 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006797/0.3148, allocations: 397.3 kB / 375.9 MB, free: 9.441 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00105/0.3159, allocations: 0.5523 MB / 376.4 MB, free: 9.438 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007837/0.3167, allocations: 464.5 kB / 376.9 MB, free: 9.438 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.098e-05/0.3168, allocations: 33 kB / 376.9 MB, free: 9.438 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002512/0.3193, allocations: 1.019 MB / 377.9 MB, free: 9.434 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003163/0.3196, allocations: 207.5 kB / 378.1 MB, free: 9.434 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001981/0.3199, allocations: 165 kB / 378.3 MB, free: 9.402 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001915/0.3218, allocations: 1.205 MB / 379.5 MB, free: 9.312 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.855e-06/0.3218, allocations: 0 / 379.5 MB, free: 9.312 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3218, allocations: 0 / 379.5 MB, free: 9.312 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.144e-05/0.3218, allocations: 0 / 379.5 MB, free: 9.312 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.002516/0.3243, allocations: 1.038 MB / 380.5 MB, free: 8.645 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.799e-05/0.3244, allocations: 6.719 kB / 380.5 MB, free: 8.645 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001472/0.3245, allocations: 95.98 kB / 380.6 MB, free: 8.605 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003144/0.3249, allocations: 90.36 kB / 380.7 MB, free: 8.562 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000917/0.3258, allocations: 0.5298 MB / 381.3 MB, free: 8.309 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.607e-05/0.3259, allocations: 40.86 kB / 381.3 MB, free: 8.309 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.282e-05/0.326, allocations: 53.36 kB / 381.3 MB, free: 8.305 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00126/0.3272, allocations: 0.7298 MB / 382.1 MB, free: 8.203 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.044e-05/0.3273, allocations: 1.094 kB / 382.1 MB, free: 8.203 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.014e-05/0.3273, allocations: 25 kB / 382.1 MB, free: 8.203 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.802e-05/0.3274, allocations: 47.64 kB / 382.1 MB, free: 8.203 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001145/0.3286, allocations: 0.6886 MB / 382.8 MB, free: 8.199 MB / 302.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.004295/0.3329, allocations: 3.048 MB / 385.9 MB, free: 6.621 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007335/0.3336, allocations: 491.6 kB / 386.4 MB, free: 6.582 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002053/0.3338, allocations: 340.2 kB / 386.7 MB, free: 6.207 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.862e-05/0.3339, allocations: 49.25 kB / 386.7 MB, free: 6.168 MB / 302.1 MB Notification: Performance of pre-optimization done (n=48): time 2.585e-06/0.3339, allocations: 0 / 386.7 MB, free: 6.168 MB / 302.1 MB Notification: Performance of matching and sorting (n=58): time 0.005476/0.3394, allocations: 2.322 MB / 389.1 MB, free: 5.395 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.745e-05/0.3394, allocations: 84.05 kB / 389.2 MB, free: 5.301 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000932/0.3404, allocations: 0.611 MB / 389.8 MB, free: 5.082 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.984e-05/0.3405, allocations: 43.83 kB / 389.8 MB, free: 5.051 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002609/0.3407, allocations: 327.7 kB / 390.1 MB, free: 4.867 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001614/0.3409, allocations: 201.6 kB / 390.3 MB, free: 4.727 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.803e-05/0.341, allocations: 13.41 kB / 390.3 MB, free: 4.727 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001091/0.3411, allocations: 386.8 kB / 390.7 MB, free: 4.387 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004998/0.3416, allocations: 304.2 kB / 391 MB, free: 4.336 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005976/0.3422, allocations: 467.1 kB / 391.5 MB, free: 4.102 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005691/0.3428, allocations: 350.8 kB / 391.8 MB, free: 4.062 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.54e-06/0.3428, allocations: 2 kB / 391.8 MB, free: 4.062 MB / 302.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001516/0.3443, allocations: 0.9482 MB / 392.8 MB, free: 3.867 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003654/0.3447, allocations: 1.839 MB / 394.6 MB, free: 1.934 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.356e-05/0.3447, allocations: 5.859 kB / 394.6 MB, free: 1.934 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002567/0.3473, allocations: 424.9 kB / 395 MB, free: 1.785 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007241/0.348, allocations: 152.5 kB / 395.2 MB, free: 1.766 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008616/0.3489, allocations: 0.8219 MB / 396 MB, free: 1.188 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007367/0.3496, allocations: 50.77 kB / 396 MB, free: 1.176 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.675e-05/0.3497, allocations: 34.02 kB / 396.1 MB, free: 1.172 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.205e-05/0.3497, allocations: 3.312 kB / 396.1 MB, free: 1.172 MB / 302.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001402/0.3511, allocations: 0.815 MB / 396.9 MB, free: 1.047 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.003e-05/0.3512, allocations: 8.109 kB / 396.9 MB, free: 1.043 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001948/0.3531, allocations: 291.2 kB / 397.2 MB, free: 0.9297 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005907/0.3537, allocations: 159.6 kB / 397.3 MB, free: 0.9062 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005294/0.3543, allocations: 0.7098 MB / 398 MB, free: 356 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006915/0.355, allocations: 46.31 kB / 398.1 MB, free: 344 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.099e-05/0.355, allocations: 33.39 kB / 398.1 MB, free: 340 kB / 302.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: 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.0005406/0.3556, allocations: 328.2 kB / 398.4 MB, free: 124 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001238/0.3557, allocations: 70.72 kB / 398.5 MB, free: 88 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001504/0.3572, allocations: 0.8561 MB / 399.4 MB, free: 15.89 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.287e-06/0.3573, allocations: 8.312 kB / 399.4 MB, free: 15.89 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.661e-06/0.3573, allocations: 0 / 399.4 MB, free: 15.89 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.049e-05/0.3573, allocations: 3.984 kB / 399.4 MB, free: 15.89 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002688/0.36, allocations: 1.717 MB / 401.1 MB, free: 15.09 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.342e-06/0.36, allocations: 8.016 kB / 401.1 MB, free: 15.09 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005069/0.3605, allocations: 108.4 kB / 401.2 MB, free: 15.07 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001526/0.362, allocations: 358.7 kB / 401.6 MB, free: 14.93 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.761e-05/0.3621, allocations: 17.08 kB / 401.6 MB, free: 14.91 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007165/0.3628, allocations: 0.8027 MB / 402.4 MB, free: 14.24 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.925e-06/0.3628, allocations: 3.125 kB / 402.4 MB, free: 14.24 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001893/0.3647, allocations: 1.304 MB / 403.7 MB, free: 13.47 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003578/0.3651, allocations: 165.2 kB / 403.9 MB, free: 13.31 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001214/0.3653, allocations: 28.83 kB / 403.9 MB, free: 13.29 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004906/0.3657, allocations: 37.88 kB / 403.9 MB, free: 13.27 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001365/0.3659, allocations: 52.48 kB / 404 MB, free: 13.21 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.052e-05/0.366, allocations: 23.98 kB / 404 MB, free: 13.19 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006577/0.3666, allocations: 443 kB / 404.4 MB, free: 12.77 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3666, allocations: 4 kB / 404.4 MB, free: 12.76 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.002229/0.3689, allocations: 0.5271 MB / 405 MB, free: 12.23 MB / 318.1 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.003373/0.3723, allocations: 2.323 MB / 407.3 MB, free: 9.898 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002196/0.3745, allocations: 1.155 MB / 408.4 MB, free: 8.75 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.813e-06/0.3745, allocations: 3.859 kB / 408.4 MB, free: 8.746 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006865/0.3752, allocations: 395.6 kB / 408.8 MB, free: 8.363 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001576/0.3768, allocations: 332.9 kB / 409.1 MB, free: 8.039 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005068/0.3818, allocations: 5.539 MB / 414.7 MB, free: 2.367 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005375/0.3824, allocations: 0.9832 MB / 415.7 MB, free: 1.359 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0009921/0.3834, allocations: 276.9 kB / 415.9 MB, free: 1.086 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003524/0.3838, allocations: 255.3 kB / 416.2 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of SimCode: time 7.11e-07/0.3838, allocations: 2.297 kB / 416.2 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04237/0.4262, allocations: 25.45 MB / 441.6 MB, free: 7.75 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000156/0.4263, allocations: 213.1 kB / 441.8 MB, free: 7.512 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.333/2.76, allocations: 3.938 kB / 441.9 MB, free: 7.508 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_TwoTanks_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_TwoTanks.fmu > Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks_res.mat does not exist to compare? outputFormat=mat