Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.001172/0.001171, allocations: 181.2 kB / 17.01 MB, free: 5.121 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.584/1.584, allocations: 205.4 MB / 223.1 MB, free: 9.129 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.0009302/0.00093, allocations: 94.59 kB / 271.5 MB, free: 8.383 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002861/0.0002861, allocations: 8 kB / 328.3 MB, free: 15.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2976/0.2979, allocations: 47.57 MB / 375.9 MB, free: 45.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7762/1.074, allocations: 326.3 MB / 0.6857 GB, free: 105.2 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002944/1.075, allocations: 93.64 kB / 0.6858 GB, free: 105.2 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5411/1.616, allocations: 143.5 MB / 0.826 GB, free: 100.9 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.825e-06/1.616, allocations: 1.406 kB / 0.826 GB, free: 100.9 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001143/1.616, allocations: 19.7 kB / 0.826 GB, free: 100.9 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.003727/1.619, allocations: 1.186 MB / 0.8272 GB, free: 100.3 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.72e-05/1.62, allocations: 7.719 kB / 0.8272 GB, free: 100.3 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001598/1.62, allocations: 102 kB / 0.8273 GB, free: 100.2 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003392/1.62, allocations: 98.52 kB / 0.8274 GB, free: 100.2 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001153/1.621, allocations: 0.6121 MB / 0.828 GB, free: 99.96 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.683e-05/1.621, allocations: 92.64 kB / 0.8281 GB, free: 99.89 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.424e-05/1.621, allocations: 57.41 kB / 0.8281 GB, free: 99.89 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001105/1.623, allocations: 0.8181 MB / 0.8289 GB, free: 99.73 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.176e-05/1.623, allocations: 2.531 kB / 0.8289 GB, free: 99.73 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.222e-05/1.623, allocations: 21.62 kB / 0.829 GB, free: 99.73 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.062e-05/1.623, allocations: 50.8 kB / 0.829 GB, free: 99.72 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009209/1.624, allocations: 0.6777 MB / 0.8297 GB, free: 99.72 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004264/1.628, allocations: 3.409 MB / 0.833 GB, free: 97.86 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006645/1.629, allocations: 421.3 kB / 0.8334 GB, free: 97.83 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001815/1.63, allocations: 1.38 MB / 0.8347 GB, free: 96.98 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005246/1.631, allocations: 362.9 kB / 0.8351 GB, free: 96.86 MB / 426.7 MB Notification: Performance of pre-optimization done (n=35): time 2.165e-06/1.631, allocations: 0 / 0.8351 GB, free: 96.86 MB / 426.7 MB Notification: Performance of matching and sorting (n=40): time 0.003728/1.635, allocations: 1.974 MB / 0.837 GB, free: 96.18 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.818e-05/1.635, allocations: 268.5 kB / 0.8373 GB, free: 95.87 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007596/1.636, allocations: 0.6792 MB / 0.8379 GB, free: 95.74 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 5.272e-05/1.636, allocations: 35.61 kB / 0.838 GB, free: 95.71 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002541/1.636, allocations: 400.3 kB / 0.8384 GB, free: 95.52 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000103/1.636, allocations: 140 kB / 0.8385 GB, free: 95.44 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.463e-05/1.636, allocations: 11.34 kB / 0.8385 GB, free: 95.44 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001164/1.636, allocations: 395.4 kB / 0.8389 GB, free: 95.13 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003539/1.637, allocations: 257.2 kB / 0.8391 GB, free: 95.13 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004797/1.637, allocations: 0.507 MB / 0.8396 GB, free: 94.85 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004308/1.637, allocations: 351.1 kB / 0.84 GB, free: 94.81 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.611e-06/1.637, allocations: 3.969 kB / 0.84 GB, free: 94.81 MB / 426.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001474/1.639, allocations: 0.9864 MB / 0.8409 GB, free: 94.69 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005308/1.64, allocations: 2.475 MB / 0.8433 GB, free: 92.12 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.307e-05/1.64, allocations: 8.906 kB / 0.8433 GB, free: 92.12 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006032/1.64, allocations: 131.6 kB / 0.8435 GB, free: 92.11 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004715/1.641, allocations: 135 kB / 0.8436 GB, free: 92.11 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005068/1.641, allocations: 0.6849 MB / 0.8443 GB, free: 91.59 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006721/1.642, allocations: 55.61 kB / 0.8443 GB, free: 91.58 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.54e-05/1.642, allocations: 36.91 kB / 0.8444 GB, free: 91.58 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.047e-05/1.642, allocations: 7.906 kB / 0.8444 GB, free: 91.58 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001542/1.643, allocations: 0.9172 MB / 0.8453 GB, free: 91.53 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.334e-06/1.643, allocations: 5.844 kB / 0.8453 GB, free: 91.53 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003918/1.644, allocations: 120 kB / 0.8454 GB, free: 91.52 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004255/1.644, allocations: 131.9 kB / 0.8455 GB, free: 91.52 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004076/1.645, allocations: 0.665 MB / 0.8462 GB, free: 91 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005904/1.645, allocations: 49.36 kB / 0.8462 GB, free: 91 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.872e-05/1.645, allocations: 41.97 kB / 0.8462 GB, free: 91 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.0005829/1.646, allocations: 390.3 kB / 0.8466 GB, free: 90.78 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001105/1.646, allocations: 81.78 kB / 0.8467 GB, free: 90.74 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001312/1.647, allocations: 0.7404 MB / 0.8474 GB, free: 90.64 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.042e-06/1.647, allocations: 6.844 kB / 0.8474 GB, free: 90.64 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/1.647, allocations: 0 / 0.8474 GB, free: 90.64 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.346e-06/1.647, allocations: 7.797 kB / 0.8474 GB, free: 90.64 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002169/1.65, allocations: 1.476 MB / 0.8489 GB, free: 90.28 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/1.65, allocations: 0 / 0.8489 GB, free: 90.28 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003011/1.65, allocations: 61.8 kB / 0.8489 GB, free: 90.28 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005101/1.651, allocations: 123.8 kB / 0.8491 GB, free: 90.27 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.981e-05/1.651, allocations: 26.7 kB / 0.8491 GB, free: 90.27 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004442/1.651, allocations: 0.665 MB / 0.8497 GB, free: 89.75 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/1.651, allocations: 0 / 0.8497 GB, free: 89.75 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001392/1.652, allocations: 1.1 MB / 0.8508 GB, free: 89.5 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002072/1.653, allocations: 160 kB / 0.851 GB, free: 89.36 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001147/1.653, allocations: 19.02 kB / 0.851 GB, free: 89.36 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004891/1.653, allocations: 36.75 kB / 0.851 GB, free: 89.36 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001127/1.653, allocations: 37.7 kB / 0.851 GB, free: 89.36 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.848e-05/1.653, allocations: 18.38 kB / 0.8511 GB, free: 89.36 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.000595/1.654, allocations: 0.5374 MB / 0.8516 GB, free: 89.27 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.6e-07/1.654, allocations: 0 / 0.8516 GB, free: 89.27 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001915/1.656, allocations: 0.5869 MB / 0.8522 GB, free: 89.18 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.002726/1.659, allocations: 2.144 MB / 0.8543 GB, free: 88.23 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002127/1.661, allocations: 1.171 MB / 0.8554 GB, free: 88.1 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.789e-06/1.661, allocations: 3.391 kB / 0.8554 GB, free: 88.1 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005351/1.661, allocations: 345 kB / 0.8557 GB, free: 88.04 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001401/1.663, allocations: 306.2 kB / 0.856 GB, free: 88.04 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004308/1.667, allocations: 6.586 MB / 0.8625 GB, free: 82.71 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003744/1.668, allocations: 0.981 MB / 0.8634 GB, free: 82.01 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0009112/1.668, allocations: 241.4 kB / 0.8636 GB, free: 82 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003258/1.669, allocations: 262.1 kB / 0.8639 GB, free: 81.99 MB / 426.7 MB Notification: Performance of SimCode: time 1.904e-06/1.669, allocations: 0 / 0.8639 GB, free: 81.99 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04437/1.713, allocations: 25.92 MB / 0.8892 GB, free: 80.07 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001987/1.713, allocations: 244.7 kB / 0.8894 GB, free: 79.73 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.773/4.486, allocations: 0 / 0.8894 GB, free: 79.73 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Fluid_Examples_AST_BatchPlant_Test_OneTank_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Fluid_Examples_AST_BatchPlant_Test_OneTank.fmu > Modelica_3.2.3_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_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank_res.mat does not exist to compare? outputFormat=mat