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.TankWithEmptyingPipe2.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.TankWithEmptyingPipe2,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe2",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.001583/0.001588, allocations: 187.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.094/2.094, allocations: 205.4 MB / 222.5 MB, free: 13.76 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.001171/0.001171, allocations: 98.86 kB / 270.9 MB, free: 13.28 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003869/0.0003873, allocations: 8 kB / 327.1 MB, free: 14.98 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1016/0.102, allocations: 47.58 MB / 374.6 MB, free: 15.33 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2): time 0.3015/0.4035, allocations: 18.8 MB / 393.4 MB, free: 9.172 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.01643/0.42, allocations: 8.822 MB / 402.3 MB, free: 7.559 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001382/0.4215, allocations: 35.75 kB / 402.3 MB, free: 7.539 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001519/0.423, allocations: 346.5 kB / 402.6 MB, free: 7.395 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005118/0.4281, allocations: 1.159 MB / 403.8 MB, free: 7.027 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009024/0.4372, allocations: 2.03 MB / 405.8 MB, free: 6.383 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.003588/0.4408, allocations: 1.434 MB / 407.3 MB, free: 5.77 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001182/0.442, allocations: 0.5452 MB / 407.8 MB, free: 5.582 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002371/0.4444, allocations: 0.7699 MB / 408.6 MB, free: 5.281 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001723/0.4462, allocations: 0.634 MB / 409.2 MB, free: 5.059 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002483/0.4465, allocations: 46.47 kB / 409.3 MB, free: 5.059 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005169/0.4517, allocations: 1.562 MB / 410.8 MB, free: 4.422 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007405/0.4525, allocations: 287 kB / 411.1 MB, free: 4.242 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005239/0.453, allocations: 212.1 kB / 411.3 MB, free: 4.125 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00463/0.4576, allocations: 1.76 MB / 413.1 MB, free: 3.066 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.4577, allocations: 1.031 kB / 413.1 MB, free: 3.066 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.905e-06/0.4577, allocations: 0 / 413.1 MB, free: 3.066 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.814e-05/0.4577, allocations: 0 / 413.1 MB, free: 3.066 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: 164 * Number of variables: 164 Notification: Performance of Generate backend data structure: time 0.004022/0.4618, allocations: 1.314 MB / 414.4 MB, free: 2.055 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.741e-05/0.4618, allocations: 9.625 kB / 414.4 MB, free: 2.055 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002596/0.4621, allocations: 111.2 kB / 414.5 MB, free: 1.961 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005212/0.4626, allocations: 121.9 kB / 414.6 MB, free: 1.898 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001558/0.4642, allocations: 0.6606 MB / 415.3 MB, free: 1.359 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.493e-05/0.4643, allocations: 48.8 kB / 415.3 MB, free: 1.336 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001643/0.4645, allocations: 67.73 kB / 415.4 MB, free: 1.312 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002486/0.467, allocations: 1.045 MB / 416.4 MB, free: 0.6367 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.367e-05/0.467, allocations: 5.281 kB / 416.4 MB, free: 0.6328 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001325/0.4672, allocations: 27.52 kB / 416.5 MB, free: 0.6133 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001549/0.4673, allocations: 67.58 kB / 416.5 MB, free: 0.5938 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002577/0.4699, allocations: 1.034 MB / 417.6 MB, free: 72 kB / 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.0112/0.4812, allocations: 4.531 MB / 422.1 MB, free: 12.23 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001627/0.4828, allocations: 0.5649 MB / 422.7 MB, free: 11.93 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004156/0.487, allocations: 2.001 MB / 424.7 MB, free: 10.05 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.195e-05/0.4871, allocations: 45.31 kB / 424.7 MB, free: 10 MB / 298.7 MB Notification: Performance of pre-optimization done (n=40): time 3.306e-06/0.4871, allocations: 0 / 424.7 MB, free: 10 MB / 298.7 MB Notification: Performance of matching and sorting (n=45): time 0.007748/0.4949, allocations: 1.949 MB / 426.7 MB, free: 8.305 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001106/0.495, allocations: 162.2 kB / 426.8 MB, free: 8.109 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001926/0.497, allocations: 0.9235 MB / 427.7 MB, free: 7.16 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001651/0.4972, allocations: 41.69 kB / 427.8 MB, free: 7.113 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005228/0.4977, allocations: 493.3 kB / 428.3 MB, free: 6.629 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002532/0.498, allocations: 165.7 kB / 428.4 MB, free: 6.465 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.129e-05/0.4981, allocations: 16 kB / 428.4 MB, free: 6.449 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001811/0.4982, allocations: 342.8 kB / 428.8 MB, free: 6.105 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009847/0.4992, allocations: 317.8 kB / 429.1 MB, free: 5.797 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001227/0.5005, allocations: 0.6094 MB / 429.7 MB, free: 5.059 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001114/0.5016, allocations: 397.9 kB / 430.1 MB, free: 4.668 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.043e-06/0.5016, allocations: 8 kB / 430.1 MB, free: 4.66 MB / 298.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.003096/0.5047, allocations: 1.035 MB / 431.1 MB, free: 3.609 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001664/0.5065, allocations: 3.491 MB / 434.6 MB, free: 15.85 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.844e-05/0.5065, allocations: 12 kB / 434.6 MB, free: 15.84 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004656/0.5112, allocations: 381.2 kB / 435 MB, free: 15.46 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001385/0.5126, allocations: 187.7 kB / 435.2 MB, free: 15.27 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001813/0.5144, allocations: 1.327 MB / 436.5 MB, free: 13.89 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001571/0.5161, allocations: 60.05 kB / 436.6 MB, free: 13.84 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001583/0.5162, allocations: 47.98 kB / 436.6 MB, free: 13.79 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.503e-05/0.5163, allocations: 4 kB / 436.6 MB, free: 13.79 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002845/0.5191, allocations: 0.9714 MB / 437.6 MB, free: 12.81 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.023e-05/0.5192, allocations: 12 kB / 437.6 MB, free: 12.8 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00415/0.5233, allocations: 337.6 kB / 437.9 MB, free: 12.46 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0014/0.5248, allocations: 187.7 kB / 438.1 MB, free: 12.28 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00173/0.5265, allocations: 1.304 MB / 439.4 MB, free: 10.92 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001135/0.5277, allocations: 60.05 kB / 439.5 MB, free: 10.86 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001333/0.5279, allocations: 39.98 kB / 439.5 MB, free: 10.82 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],tank1.ports_m_flow_out[2],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 (104): * Single equations (assignments): 102 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 3,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0008039/0.5287, allocations: 364.7 kB / 439.9 MB, free: 10.46 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003041/0.529, allocations: 90.88 kB / 440 MB, free: 10.37 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002833/0.5319, allocations: 0.7958 MB / 440.8 MB, free: 9.559 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.646e-05/0.5319, allocations: 15.92 kB / 440.8 MB, free: 9.543 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.594e-06/0.5319, allocations: 4 kB / 440.8 MB, free: 9.539 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.698e-06/0.532, allocations: 0 / 440.8 MB, free: 9.539 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004545/0.5365, allocations: 1.606 MB / 442.4 MB, free: 7.863 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.873e-06/0.5366, allocations: 0 / 442.4 MB, free: 7.863 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007228/0.5373, allocations: 79.89 kB / 442.5 MB, free: 7.785 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002575/0.5399, allocations: 297.5 kB / 442.8 MB, free: 7.488 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001294/0.5401, allocations: 16 kB / 442.8 MB, free: 7.473 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001601/0.5417, allocations: 1.304 MB / 444.1 MB, free: 6.117 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/0.5417, allocations: 0 / 444.1 MB, free: 6.117 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003017/0.5447, allocations: 1.099 MB / 445.2 MB, free: 4.973 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005835/0.5454, allocations: 191.9 kB / 445.4 MB, free: 4.766 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002586/0.5456, allocations: 19.98 kB / 445.4 MB, free: 4.746 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001088/0.5467, allocations: 31.97 kB / 445.4 MB, free: 4.715 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000217/0.547, allocations: 56.39 kB / 445.5 MB, free: 4.66 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001011/0.5471, allocations: 19.98 kB / 445.5 MB, free: 4.641 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001442/0.5486, allocations: 0.6442 MB / 446.1 MB, free: 3.984 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.5486, allocations: 0 / 446.1 MB, free: 3.984 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.003533/0.5521, allocations: 0.7574 MB / 446.9 MB, free: 3.227 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (tank1.level,tank1.medium.T) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Number of discrete states: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.005639/0.5578, allocations: 2.291 MB / 449.2 MB, free: 0.8945 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.004445/0.5623, allocations: 1.221 MB / 450.4 MB, free: 15.68 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 9.448e-06/0.5624, allocations: 4.062 kB / 450.4 MB, free: 15.68 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001073/0.5635, allocations: 310.2 kB / 450.7 MB, free: 15.37 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003392/0.5669, allocations: 375.2 kB / 451.1 MB, free: 15 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009875/0.5768, allocations: 8.881 MB / 460 MB, free: 5.883 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009007/0.5777, allocations: 1.053 MB / 461 MB, free: 4.801 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009114/0.5787, allocations: 335.3 kB / 461.3 MB, free: 4.473 MB / 330.7 MB Notification: Performance of SimCode: time 9.82e-07/0.5787, allocations: 0 / 461.3 MB, free: 4.473 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.447/4.026, allocations: 29.74 MB / 491.1 MB, free: 6.688 MB / 362.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe2_fmu --startTime=0 --stopTime=120 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe2.fmu > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.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.TankWithEmptyingPipe2_res.mat does not exist to compare? outputFormat=mat