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.TanksWithEmptyingPipe1.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.TanksWithEmptyingPipe1,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe1",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.00155/0.001556, allocations: 182.1 kB / 16.4 MB, free: 5.754 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: 9.109 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.001172/0.001172, allocations: 89.3 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003885/0.0003887, allocations: 12 kB / 327.1 MB, free: 96 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3674/0.3678, allocations: 47.57 MB / 374.6 MB, free: 45.4 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1): time 0.03755/0.4054, allocations: 26.89 MB / 401.5 MB, free: 21.89 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02243/0.4279, allocations: 12.69 MB / 414.2 MB, free: 9.176 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002057/0.43, allocations: 55.5 kB / 414.3 MB, free: 9.121 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002387/0.4324, allocations: 0.5091 MB / 414.8 MB, free: 8.609 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006898/0.4394, allocations: 1.757 MB / 416.5 MB, free: 6.848 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01036/0.4498, allocations: 2.872 MB / 419.4 MB, free: 3.984 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004464/0.4542, allocations: 2.195 MB / 421.6 MB, free: 1.789 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00173/0.456, allocations: 0.8203 MB / 422.4 MB, free: 0.9531 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003294/0.4594, allocations: 1.176 MB / 423.6 MB, free: 15.77 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002764/0.4622, allocations: 0.9772 MB / 424.6 MB, free: 14.79 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005187/0.4628, allocations: 76 kB / 424.7 MB, free: 14.72 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006902/0.4697, allocations: 2.118 MB / 426.8 MB, free: 12.6 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001171/0.4709, allocations: 450.7 kB / 427.2 MB, free: 12.16 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007189/0.4716, allocations: 305 kB / 427.5 MB, free: 11.85 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006793/0.4785, allocations: 2.592 MB / 430.1 MB, free: 9.254 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.4785, allocations: 0 / 430.1 MB, free: 9.254 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.736e-06/0.4785, allocations: 0 / 430.1 MB, free: 9.254 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.093e-05/0.4786, allocations: 0 / 430.1 MB, free: 9.254 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.006654/0.4853, allocations: 1.838 MB / 431.9 MB, free: 7.363 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.236e-05/0.4853, allocations: 8.031 kB / 431.9 MB, free: 7.355 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006004/0.4859, allocations: 160.3 kB / 432.1 MB, free: 7.191 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008577/0.4868, allocations: 170.2 kB / 432.3 MB, free: 7.023 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002784/0.4896, allocations: 0.9178 MB / 433.2 MB, free: 6.062 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001272/0.4898, allocations: 73.98 kB / 433.3 MB, free: 5.988 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000308/0.4901, allocations: 95.97 kB / 433.4 MB, free: 5.895 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00483/0.495, allocations: 1.617 MB / 435 MB, free: 4.195 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.704e-05/0.4951, allocations: 4 kB / 435 MB, free: 4.191 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002368/0.4953, allocations: 39.98 kB / 435 MB, free: 4.152 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002504/0.4956, allocations: 105.9 kB / 435.1 MB, free: 4.051 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005292/0.5009, allocations: 1.643 MB / 436.8 MB, free: 2.406 MB / 314.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.01825/0.5192, allocations: 6.746 MB / 443.5 MB, free: 11.26 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002902/0.5221, allocations: 0.9188 MB / 444.4 MB, free: 10.34 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007031/0.5292, allocations: 2.847 MB / 447.3 MB, free: 7.234 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.875e-05/0.5293, allocations: 47.22 kB / 447.3 MB, free: 7.18 MB / 330.7 MB Notification: Performance of pre-optimization done (n=80): time 4.078e-06/0.5293, allocations: 0 / 447.3 MB, free: 7.18 MB / 330.7 MB Notification: Performance of matching and sorting (n=90): time 0.01586/0.5452, allocations: 3.721 MB / 451 MB, free: 3.348 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001369/0.5454, allocations: 188.9 kB / 451.2 MB, free: 3.121 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002863/0.5483, allocations: 1.298 MB / 452.5 MB, free: 1.805 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003019/0.5486, allocations: 49.69 kB / 452.6 MB, free: 1.75 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007375/0.5494, allocations: 0.6257 MB / 453.2 MB, free: 1.117 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005327/0.5499, allocations: 319.5 kB / 453.5 MB, free: 0.8008 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001505/0.5501, allocations: 28 kB / 453.5 MB, free: 0.7734 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002163/0.5503, allocations: 370.8 kB / 453.9 MB, free: 412 kB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001805/0.5521, allocations: 0.5544 MB / 454.5 MB, free: 15.85 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002294/0.5545, allocations: 0.981 MB / 455.4 MB, free: 14.69 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00217/0.5567, allocations: 0.6744 MB / 456.1 MB, free: 14.02 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.138e-05/0.5567, allocations: 4 kB / 456.1 MB, free: 14.01 MB / 346.7 MB Notification: Performance of matching and sorting (n=180) (initialization): time 0.005794/0.5625, allocations: 1.792 MB / 457.9 MB, free: 12.2 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00225/0.5648, allocations: 4.618 MB / 462.5 MB, free: 7.223 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.853e-05/0.5649, allocations: 16 kB / 462.5 MB, free: 7.207 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009414/0.5743, allocations: 0.7905 MB / 463.3 MB, free: 6.406 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002241/0.5766, allocations: 275.6 kB / 463.6 MB, free: 6.137 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003316/0.58, allocations: 2.16 MB / 465.8 MB, free: 3.898 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00229/0.5823, allocations: 100 kB / 465.9 MB, free: 3.801 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000305/0.5827, allocations: 63.98 kB / 465.9 MB, free: 3.738 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.684e-05/0.5827, allocations: 8.094 kB / 465.9 MB, free: 3.73 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005396/0.5881, allocations: 1.662 MB / 467.6 MB, free: 2.062 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.343e-05/0.5882, allocations: 12 kB / 467.6 MB, free: 2.051 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008037/0.5963, allocations: 0.6154 MB / 468.2 MB, free: 1.426 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002349/0.5987, allocations: 287.5 kB / 468.5 MB, free: 1.145 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002833/0.6015, allocations: 1.993 MB / 470.5 MB, free: 15.07 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001725/0.6033, allocations: 95.89 kB / 470.6 MB, free: 14.98 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002825/0.6037, allocations: 67.98 kB / 470.6 MB, free: 14.91 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],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 (166): * Single equations (assignments): 163 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 3,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.001286/0.605, allocations: 477 kB / 471.1 MB, free: 14.44 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005096/0.6055, allocations: 146.2 kB / 471.3 MB, free: 14.29 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005391/0.6109, allocations: 1.522 MB / 472.8 MB, free: 12.75 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.95e-05/0.611, allocations: 8 kB / 472.8 MB, free: 12.74 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.19e-05/0.611, allocations: 3.984 kB / 472.8 MB, free: 12.74 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-05/0.611, allocations: 11.97 kB / 472.8 MB, free: 12.73 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008716/0.6197, allocations: 2.826 MB / 475.6 MB, free: 9.816 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.498e-05/0.6198, allocations: 4 kB / 475.6 MB, free: 9.812 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001457/0.6213, allocations: 155.7 kB / 475.8 MB, free: 9.66 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005294/0.6266, allocations: 0.6387 MB / 476.4 MB, free: 9.012 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002479/0.6269, allocations: 27.98 kB / 476.4 MB, free: 8.984 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002927/0.6298, allocations: 2.106 MB / 478.6 MB, free: 6.801 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.789e-06/0.6299, allocations: 0 / 478.6 MB, free: 6.801 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006049/0.636, allocations: 2.144 MB / 480.7 MB, free: 4.586 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007332/0.6367, allocations: 259.1 kB / 481 MB, free: 4.312 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004417/0.6372, allocations: 23.98 kB / 481 MB, free: 4.289 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001612/0.6388, allocations: 67.95 kB / 481 MB, free: 4.223 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003477/0.6392, allocations: 96.81 kB / 481.1 MB, free: 4.125 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001656/0.6394, allocations: 47.97 kB / 481.2 MB, free: 4.078 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.002138/0.6415, allocations: 0.8966 MB / 482.1 MB, free: 3.18 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.51e-07/0.6416, allocations: 0 / 482.1 MB, free: 3.18 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.004691/0.6463, allocations: 1.113 MB / 483.2 MB, free: 2.066 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T) * Number of discrete variables: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Number of discrete states: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 81 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 12,1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.009543/0.6559, allocations: 3.677 MB / 486.9 MB, free: 14.33 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.007912/0.6638, allocations: 2.217 MB / 489.1 MB, free: 12.12 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.375e-05/0.6639, allocations: 4 kB / 489.1 MB, free: 12.11 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002648/0.6666, allocations: 0.6817 MB / 489.8 MB, free: 11.43 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00507/0.6717, allocations: 0.5886 MB / 490.4 MB, free: 10.84 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.28/0.9517, allocations: 12.4 MB / 0.491 GB, free: 109.5 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008785/0.9527, allocations: 1.277 MB / 0.4922 GB, free: 108.8 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001306/0.954, allocations: 0.5321 MB / 0.4928 GB, free: 108.8 MB / 378.7 MB Notification: Performance of SimCode: time 1.252e-06/0.954, allocations: 0 / 0.4928 GB, free: 108.8 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.767/4.721, allocations: 49.76 MB / 0.5413 GB, free: 68.71 MB / 378.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe1_fmu --startTime=0 --stopTime=120 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe1.fmu > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.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.TanksWithEmptyingPipe1_res.mat does not exist to compare? outputFormat=mat