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.001488/0.001488, allocations: 186 kB / 16.4 MB, free: 5.75 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.052/2.052, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.00119/0.00119, allocations: 94.14 kB / 270.9 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004075/0.0004073, allocations: 8 kB / 327.1 MB, free: 104 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3482/0.3486, allocations: 47.57 MB / 374.6 MB, free: 45.29 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.095/1.444, allocations: 326.3 MB / 0.6845 GB, free: 105.3 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003111/1.444, allocations: 91.73 kB / 0.6846 GB, free: 105.3 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7905/2.235, allocations: 143.6 MB / 0.8248 GB, free: 101 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.944e-06/2.235, allocations: 0 / 0.8248 GB, free: 101 MB / 426.7 MB Notification: Performance of Transformations before backend: time 8.082e-05/2.235, allocations: 18.16 kB / 0.8248 GB, free: 101 MB / 426.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.003501/2.238, allocations: 1.181 MB / 0.826 GB, free: 100.4 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.875e-05/2.238, allocations: 11.34 kB / 0.826 GB, free: 100.4 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003051/2.239, allocations: 95.03 kB / 0.8261 GB, free: 100.4 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005517/2.239, allocations: 96.03 kB / 0.8262 GB, free: 100.3 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00186/2.241, allocations: 0.6129 MB / 0.8268 GB, free: 100.1 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001102/2.241, allocations: 100.8 kB / 0.8268 GB, free: 100 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001371/2.241, allocations: 51.89 kB / 0.8269 GB, free: 100 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001888/2.243, allocations: 0.8107 MB / 0.8277 GB, free: 99.86 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.096e-05/2.243, allocations: 6.828 kB / 0.8277 GB, free: 99.86 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001128/2.243, allocations: 28.8 kB / 0.8277 GB, free: 99.86 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.527e-05/2.244, allocations: 32.98 kB / 0.8278 GB, free: 99.86 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001659/2.245, allocations: 0.6845 MB / 0.8284 GB, free: 99.86 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006726/2.252, allocations: 3.409 MB / 0.8318 GB, free: 97.99 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001061/2.253, allocations: 431.6 kB / 0.8322 GB, free: 97.96 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002562/2.256, allocations: 1.375 MB / 0.8335 GB, free: 97.11 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007598/2.257, allocations: 360.2 kB / 0.8338 GB, free: 96.99 MB / 426.7 MB Notification: Performance of pre-optimization done (n=35): time 2.705e-06/2.257, allocations: 0 / 0.8338 GB, free: 96.99 MB / 426.7 MB Notification: Performance of matching and sorting (n=40): time 0.006477/2.263, allocations: 1.975 MB / 0.8358 GB, free: 96.32 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.094e-05/2.263, allocations: 268 kB / 0.836 GB, free: 96 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00123/2.264, allocations: 0.6841 MB / 0.8367 GB, free: 95.87 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 9.033e-05/2.264, allocations: 36.7 kB / 0.8367 GB, free: 95.84 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002875/2.265, allocations: 426.3 kB / 0.8371 GB, free: 95.59 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001487/2.265, allocations: 132.1 kB / 0.8373 GB, free: 95.5 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.994e-05/2.265, allocations: 14.66 kB / 0.8373 GB, free: 95.5 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 8.299e-05/2.265, allocations: 335.8 kB / 0.8376 GB, free: 95.19 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006637/2.266, allocations: 260.4 kB / 0.8379 GB, free: 95.19 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008373/2.267, allocations: 0.5047 MB / 0.8383 GB, free: 94.91 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008104/2.267, allocations: 358.9 kB / 0.8387 GB, free: 94.87 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.332e-06/2.268, allocations: 0 / 0.8387 GB, free: 94.87 MB / 426.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.002606/2.27, allocations: 0.9355 MB / 0.8396 GB, free: 94.78 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005599/2.271, allocations: 2.474 MB / 0.842 GB, free: 92.21 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.579e-05/2.271, allocations: 7.75 kB / 0.842 GB, free: 92.21 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009323/2.272, allocations: 133.6 kB / 0.8422 GB, free: 92.2 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009792/2.273, allocations: 135.3 kB / 0.8423 GB, free: 92.2 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008189/2.274, allocations: 0.6815 MB / 0.8429 GB, free: 91.68 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001234/2.275, allocations: 57.78 kB / 0.843 GB, free: 91.68 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001083/2.275, allocations: 30.62 kB / 0.843 GB, free: 91.68 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.316e-05/2.275, allocations: 3.562 kB / 0.843 GB, free: 91.68 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002745/2.278, allocations: 0.9232 MB / 0.8439 GB, free: 91.62 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.463e-05/2.278, allocations: 7.812 kB / 0.8439 GB, free: 91.62 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000614/2.278, allocations: 114.5 kB / 0.8441 GB, free: 91.62 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008927/2.279, allocations: 141.8 kB / 0.8442 GB, free: 91.62 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006555/2.28, allocations: 0.649 MB / 0.8448 GB, free: 91.1 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008694/2.281, allocations: 51.38 kB / 0.8449 GB, free: 91.1 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.419e-05/2.281, allocations: 39.41 kB / 0.8449 GB, free: 91.1 MB / 426.7 MB Warning: Assuming fixed start value for the following 2 variables: tank.level:VARIABLE(start = tank.level_start unit = "m" fixed = true stateSelect=StateSelect.prefer ) "Fluid level in the tank" type: Real 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 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * 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 (78): * Single equations (assignments): 76 * 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.0008124/2.282, allocations: 389.1 kB / 0.8453 GB, free: 90.87 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002492/2.282, allocations: 84.38 kB / 0.8454 GB, free: 90.83 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0023/2.284, allocations: 0.7432 MB / 0.8461 GB, free: 90.73 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.022e-05/2.284, allocations: 3.406 kB / 0.8461 GB, free: 90.73 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.737e-06/2.284, allocations: 3.031 kB / 0.8461 GB, free: 90.73 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.063e-05/2.284, allocations: 3.953 kB / 0.8461 GB, free: 90.73 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003831/2.288, allocations: 1.468 MB / 0.8475 GB, free: 90.38 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.183e-06/2.288, allocations: 0 / 0.8475 GB, free: 90.38 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005394/2.289, allocations: 65.89 kB / 0.8476 GB, free: 90.38 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007956/2.29, allocations: 126.4 kB / 0.8477 GB, free: 90.37 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.532e-05/2.29, allocations: 20.73 kB / 0.8477 GB, free: 90.36 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007371/2.291, allocations: 0.6655 MB / 0.8484 GB, free: 89.84 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.098e-06/2.291, allocations: 0.8438 kB / 0.8484 GB, free: 89.84 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002658/2.293, allocations: 1.106 MB / 0.8495 GB, free: 89.59 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004141/2.294, allocations: 159 kB / 0.8496 GB, free: 89.46 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002446/2.294, allocations: 20.22 kB / 0.8496 GB, free: 89.46 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009009/2.295, allocations: 42.75 kB / 0.8497 GB, free: 89.45 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001726/2.295, allocations: 34.58 kB / 0.8497 GB, free: 89.45 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.315e-05/2.295, allocations: 22.62 kB / 0.8497 GB, free: 89.45 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001035/2.296, allocations: 0.5345 MB / 0.8502 GB, free: 89.36 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.6e-07/2.296, allocations: 0 / 0.8502 GB, free: 89.36 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002566/2.299, allocations: 0.5875 MB / 0.8508 GB, free: 89.27 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (tank.medium.T,tank.level) * 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.004502/2.303, allocations: 2.132 MB / 0.8529 GB, free: 88.33 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003482/2.307, allocations: 1.142 MB / 0.854 GB, free: 88.2 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.149e-05/2.307, allocations: 7.188 kB / 0.854 GB, free: 88.2 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001027/2.308, allocations: 344.7 kB / 0.8544 GB, free: 88.13 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002657/2.311, allocations: 307.1 kB / 0.8546 GB, free: 88.13 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006488/2.317, allocations: 6.627 MB / 0.8611 GB, free: 82.77 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005229/2.318, allocations: 0.9778 MB / 0.8621 GB, free: 82.07 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006319/2.318, allocations: 270.5 kB / 0.8623 GB, free: 82.06 MB / 426.7 MB Notification: Performance of SimCode: time 9.21e-07/2.318, allocations: 0 / 0.8623 GB, free: 82.06 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.15/5.469, allocations: 21.09 MB / 0.8829 GB, free: 80.78 MB / 426.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