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.OneTank.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.OneTank,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_OneTank",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_OneTank",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.001556/0.001562, allocations: 189.2 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.256/2.256, 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.00118/0.00118, allocations: 102.8 kB / 270.9 MB, free: 13.37 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003933/0.0003934, allocations: 11.98 kB / 327.1 MB, free: 15 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09938/0.09981, allocations: 47.58 MB / 374.6 MB, free: 15.34 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank): time 0.02597/0.1258, allocations: 15.04 MB / 389.7 MB, free: 244 kB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.2706/0.3965, allocations: 5.848 MB / 395.5 MB, free: 9.086 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00122/0.3978, allocations: 26.31 kB / 395.6 MB, free: 9.086 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001537/0.3993, allocations: 336.5 kB / 395.9 MB, free: 9.086 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003872/0.4032, allocations: 0.8203 MB / 396.7 MB, free: 9.074 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007614/0.4109, allocations: 1.453 MB / 398.2 MB, free: 9.008 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.00333/0.4142, allocations: 1.092 MB / 399.3 MB, free: 8.969 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001282/0.4156, allocations: 429.9 kB / 399.7 MB, free: 8.918 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002327/0.4179, allocations: 0.6134 MB / 400.3 MB, free: 8.828 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001747/0.4197, allocations: 490.3 kB / 400.8 MB, free: 8.754 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002995/0.4201, allocations: 32.56 kB / 400.8 MB, free: 8.754 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003947/0.424, allocations: 0.998 MB / 401.8 MB, free: 8.738 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007353/0.4248, allocations: 221.8 kB / 402 MB, free: 8.711 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005113/0.4254, allocations: 172.2 kB / 402.2 MB, free: 8.656 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003505/0.4289, allocations: 1.219 MB / 403.4 MB, free: 8.559 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.4289, allocations: 0 / 403.4 MB, free: 8.559 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.416e-06/0.429, allocations: 0 / 403.4 MB, free: 8.559 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.802e-05/0.429, allocations: 1.312 kB / 403.4 MB, free: 8.559 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: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.003487/0.4325, allocations: 1.1 MB / 404.5 MB, free: 7.824 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.104e-05/0.4326, allocations: 9.5 kB / 404.5 MB, free: 7.824 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003001/0.4329, allocations: 102 kB / 404.6 MB, free: 7.781 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005722/0.4335, allocations: 99.88 kB / 404.7 MB, free: 7.738 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001491/0.435, allocations: 0.5357 MB / 405.2 MB, free: 7.461 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001351/0.4351, allocations: 97.98 kB / 405.3 MB, free: 7.395 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001492/0.4353, allocations: 47.23 kB / 405.4 MB, free: 7.395 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00212/0.4374, allocations: 0.7994 MB / 406.2 MB, free: 7.156 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.405e-05/0.4375, allocations: 1.219 kB / 406.2 MB, free: 7.156 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001172/0.4376, allocations: 25.22 kB / 406.2 MB, free: 7.141 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000109/0.4378, allocations: 41.25 kB / 406.2 MB, free: 7.129 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001898/0.4397, allocations: 0.6816 MB / 406.9 MB, free: 6.797 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.007395/0.4471, allocations: 3.487 MB / 410.4 MB, free: 3.777 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001147/0.4483, allocations: 424.1 kB / 410.8 MB, free: 3.555 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002684/0.451, allocations: 1.341 MB / 412.2 MB, free: 2.305 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007686/0.4518, allocations: 356.6 kB / 412.5 MB, free: 2.047 MB / 282.7 MB Notification: Performance of pre-optimization done (n=35): time 2.575e-06/0.4518, allocations: 0 / 412.5 MB, free: 2.047 MB / 282.7 MB Notification: Performance of matching and sorting (n=40): time 0.006152/0.458, allocations: 1.87 MB / 414.4 MB, free: 0.8164 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.076e-05/0.4581, allocations: 271.1 kB / 414.7 MB, free: 0.4961 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001479/0.4596, allocations: 0.7648 MB / 415.4 MB, free: 68 kB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001635/0.4598, allocations: 42.95 kB / 415.5 MB, free: 24 kB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004513/0.4603, allocations: 412.6 kB / 415.9 MB, free: 15.64 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002158/0.4605, allocations: 140 kB / 416 MB, free: 15.53 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.511e-05/0.4606, allocations: 14.78 kB / 416 MB, free: 15.52 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001727/0.4608, allocations: 342.3 kB / 416.4 MB, free: 15.18 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007519/0.4616, allocations: 248.6 kB / 416.6 MB, free: 15.07 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009787/0.4625, allocations: 0.4944 MB / 417.1 MB, free: 14.63 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000881/0.4634, allocations: 340.9 kB / 417.4 MB, free: 14.44 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.504e-06/0.4635, allocations: 2.781 kB / 417.4 MB, free: 14.44 MB / 298.7 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.002721/0.4662, allocations: 0.8951 MB / 418.3 MB, free: 13.98 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001231/0.4675, allocations: 2.564 MB / 420.9 MB, free: 11.23 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.095e-05/0.4675, allocations: 6.531 kB / 420.9 MB, free: 11.23 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000961/0.4685, allocations: 135.6 kB / 421 MB, free: 11.18 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001049/0.4696, allocations: 132.4 kB / 421.2 MB, free: 11.15 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001002/0.4706, allocations: 0.6895 MB / 421.8 MB, free: 10.52 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001329/0.472, allocations: 44.81 kB / 421.9 MB, free: 10.5 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001044/0.4721, allocations: 34.53 kB / 421.9 MB, free: 10.5 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.473e-05/0.4721, allocations: 3 kB / 421.9 MB, free: 10.5 MB / 298.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002499/0.4746, allocations: 0.8559 MB / 422.8 MB, free: 10.08 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.685e-05/0.4747, allocations: 10.66 kB / 422.8 MB, free: 10.07 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006019/0.4753, allocations: 112.3 kB / 422.9 MB, free: 10.02 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009702/0.4763, allocations: 143.4 kB / 423 MB, free: 9.988 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008803/0.4772, allocations: 0.6536 MB / 423.7 MB, free: 9.383 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008728/0.4781, allocations: 49.28 kB / 423.7 MB, free: 9.359 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.461e-05/0.4782, allocations: 32.92 kB / 423.8 MB, free: 9.352 MB / 298.7 MB Warning: Assuming fixed start value for the following 2 variables: tank.medium.T:VARIABLE(min = max(1.0, max(1.0, 1.0)) max = min(10000.0, min(10000.0, 10000.0)) start = tank.T_start unit = "K" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real tank.level:VARIABLE(start = tank.level_start unit = "m" fixed = true stateSelect=StateSelect.prefer ) "Fluid level in the tank" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.tank.ports_m_flow_out[1],tank.ports_m_flow_out[1],$PRE.tank.aboveLevel[1],tank.aboveLevel[1],timeTable.a,timeTable.b,timeTable.last,$PRE.timeTable.nextEvent,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (79): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 1 * 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 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0008685/0.4791, allocations: 391.5 kB / 424.2 MB, free: 9.027 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002635/0.4794, allocations: 79 kB / 424.2 MB, free: 8.988 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002057/0.4814, allocations: 0.7046 MB / 424.9 MB, free: 8.59 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.236e-05/0.4815, allocations: 6.391 kB / 424.9 MB, free: 8.586 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.605e-06/0.4815, allocations: 0 / 424.9 MB, free: 8.586 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.265e-05/0.4815, allocations: 5.578 kB / 424.9 MB, free: 8.582 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003751/0.4853, allocations: 1.4 MB / 426.3 MB, free: 7.215 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.188e-06/0.4853, allocations: 3.953 kB / 426.4 MB, free: 7.211 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005922/0.4859, allocations: 62.66 kB / 426.4 MB, free: 7.152 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008089/0.4868, allocations: 124.8 kB / 426.5 MB, free: 7.027 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.168e-05/0.4869, allocations: 15.92 kB / 426.5 MB, free: 7.012 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008887/0.4878, allocations: 0.6577 MB / 427.2 MB, free: 6.328 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/0.4878, allocations: 0 / 427.2 MB, free: 6.328 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002696/0.4905, allocations: 1.031 MB / 428.2 MB, free: 5.262 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004524/0.491, allocations: 160.1 kB / 428.4 MB, free: 5.086 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002373/0.4912, allocations: 23.97 kB / 428.4 MB, free: 5.062 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008657/0.4921, allocations: 27.98 kB / 428.4 MB, free: 5.035 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001487/0.4923, allocations: 40 kB / 428.5 MB, free: 4.996 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.103e-05/0.4924, allocations: 23.94 kB / 428.5 MB, free: 4.973 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.00116/0.4936, allocations: 0.5302 MB / 429 MB, free: 4.449 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.4936, allocations: 0 / 429 MB, free: 4.449 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.002599/0.4962, allocations: 0.5349 MB / 429.6 MB, free: 3.914 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (tank.level,tank.medium.T) * Number of discrete variables: 8 ($whenCondition1,tank.ports_m_flow_out[1],tank.aboveLevel[1],timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 8 (tank.aboveLevel[1],tank.ports_m_flow_out[1],timeTable.nextEvent,timeTable.last,timeTable.nextEventScaled,timeTable.b,timeTable.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 1 * 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 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.004689/0.5009, allocations: 1.967 MB / 431.5 MB, free: 1.93 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.003721/0.5047, allocations: 1.171 MB / 432.7 MB, free: 0.7383 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 7.384e-06/0.5047, allocations: 3.938 kB / 432.7 MB, free: 0.7344 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001164/0.5059, allocations: 351.1 kB / 433.1 MB, free: 388 kB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002847/0.5088, allocations: 308 kB / 433.4 MB, free: 80 kB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008279/0.5171, allocations: 6.749 MB / 440.1 MB, free: 9.156 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008109/0.518, allocations: 0.9746 MB / 441.1 MB, free: 8.156 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006954/0.5187, allocations: 267.3 kB / 441.3 MB, free: 7.895 MB / 314.7 MB Notification: Performance of SimCode: time 1.443e-06/0.5187, allocations: 0 / 441.3 MB, free: 7.895 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.231/3.75, allocations: 20.54 MB / 461.9 MB, free: 3.352 MB / 330.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_OneTank_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_OneTank.fmu > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.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.OneTank_res.mat does not exist to compare? outputFormat=mat