Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_OneTank",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.705/1.705, allocations: 171.2 MB / 186.8 MB, free: 1.125 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003658/0.000366, allocations: 8 kB / 233.3 MB, free: 2.922 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08661/0.08702, allocations: 38.76 MB / 272.1 MB, free: 12.07 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.21/1.297, allocations: 316.1 MB / 0.5744 GB, free: 99.12 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003616/1.298, allocations: 97.5 kB / 0.5745 GB, free: 99.12 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4953/1.793, allocations: 141.9 MB / 0.7131 GB, free: 316 kB / 362.7 MB Notification: Performance of FrontEnd: time 2.454e-06/1.793, allocations: 4 kB / 0.7131 GB, free: 312 kB / 362.7 MB Notification: Performance of Transformations before backend: time 7.142e-05/1.793, allocations: 16 kB / 0.7131 GB, free: 296 kB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 124 * Number of variables: 124 Notification: Performance of Generate backend data structure: time 0.2446/2.038, allocations: 1.161 MB / 0.7142 GB, free: 72.04 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.411e-05/2.038, allocations: 9.5 kB / 0.7142 GB, free: 72.04 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004328/2.038, allocations: 96.5 kB / 0.7143 GB, free: 72 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005899/2.039, allocations: 98.34 kB / 0.7144 GB, free: 71.96 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002399/2.041, allocations: 0.6416 MB / 0.715 GB, free: 71.71 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001284/2.041, allocations: 96.3 kB / 0.7151 GB, free: 71.64 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000144/2.041, allocations: 48.5 kB / 0.7152 GB, free: 71.64 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002392/2.044, allocations: 0.7927 MB / 0.716 GB, free: 71.49 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.572e-05/2.044, allocations: 4.375 kB / 0.716 GB, free: 71.49 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001318/2.044, allocations: 21.75 kB / 0.716 GB, free: 71.49 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001137/2.044, allocations: 39.64 kB / 0.716 GB, free: 71.49 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001889/2.046, allocations: 0.6703 MB / 0.7167 GB, free: 71.48 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007014/2.053, allocations: 3.405 MB / 0.72 GB, free: 69.56 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009854/2.054, allocations: 403.8 kB / 0.7204 GB, free: 69.53 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002479/2.057, allocations: 1.289 MB / 0.7216 GB, free: 68.68 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006948/2.057, allocations: 302.8 kB / 0.7219 GB, free: 68.59 MB / 362.7 MB Notification: Performance of pre-optimization done (n=33): time 3.406e-06/2.057, allocations: 0 / 0.7219 GB, free: 68.59 MB / 362.7 MB Notification: Performance of matching and sorting (n=38): time 0.006263/2.064, allocations: 1.852 MB / 0.7237 GB, free: 67.92 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.746e-05/2.064, allocations: 162.8 kB / 0.7239 GB, free: 67.73 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001142/2.065, allocations: 0.6116 MB / 0.7245 GB, free: 67.61 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001122/2.065, allocations: 37.91 kB / 0.7245 GB, free: 67.58 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003194/2.065, allocations: 435.2 kB / 0.7249 GB, free: 67.33 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001676/2.066, allocations: 135 kB / 0.7251 GB, free: 67.27 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.623e-05/2.066, allocations: 16.62 kB / 0.7251 GB, free: 67.27 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.575e-05/2.066, allocations: 337.2 kB / 0.7254 GB, free: 66.96 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006576/2.066, allocations: 246.4 kB / 0.7256 GB, free: 66.96 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008512/2.067, allocations: 0.5236 MB / 0.7262 GB, free: 66.61 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008701/2.068, allocations: 350.7 kB / 0.7265 GB, free: 66.57 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.035e-06/2.068, allocations: 6.969 kB / 0.7265 GB, free: 66.57 MB / 362.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002835/2.071, allocations: 0.9377 MB / 0.7274 GB, free: 66.47 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008175/2.072, allocations: 3.52 MB / 0.7308 GB, free: 62.81 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.781e-05/2.072, allocations: 8.25 kB / 0.7309 GB, free: 62.81 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009711/2.073, allocations: 129.9 kB / 0.731 GB, free: 62.8 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001055/2.074, allocations: 148 kB / 0.7311 GB, free: 62.8 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008598/2.075, allocations: 0.6721 MB / 0.7318 GB, free: 62.29 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001142/2.076, allocations: 48.78 kB / 0.7318 GB, free: 62.29 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001265/2.076, allocations: 41.77 kB / 0.7319 GB, free: 62.29 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.715e-05/2.076, allocations: 14.2 kB / 0.7319 GB, free: 62.28 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003/2.079, allocations: 0.9146 MB / 0.7328 GB, free: 62.23 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.381e-05/2.079, allocations: 8.031 kB / 0.7328 GB, free: 62.23 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006312/2.08, allocations: 116.8 kB / 0.7329 GB, free: 62.23 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009651/2.081, allocations: 149.7 kB / 0.733 GB, free: 62.23 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006871/2.082, allocations: 0.6447 MB / 0.7337 GB, free: 61.71 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007736/2.083, allocations: 48.58 kB / 0.7337 GB, free: 61.7 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001055/2.083, allocations: 42.59 kB / 0.7337 GB, free: 61.7 MB / 362.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 = 293.15 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: 40 * Number of states: 0 () * Number of discrete variables: 10 ($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) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 82 * 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.0008887/2.084, allocations: 388.9 kB / 0.7341 GB, free: 61.48 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002305/2.084, allocations: 71.78 kB / 0.7342 GB, free: 61.45 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002167/2.086, allocations: 0.692 MB / 0.7349 GB, free: 61.36 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.708e-06/2.086, allocations: 7.062 kB / 0.7349 GB, free: 61.36 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.018e-05/2.086, allocations: 4.453 kB / 0.7349 GB, free: 61.35 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.988e-06/2.086, allocations: 5.172 kB / 0.7349 GB, free: 61.35 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003451/2.09, allocations: 1.372 MB / 0.7362 GB, free: 61 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.494e-06/2.09, allocations: 5.5 kB / 0.7362 GB, free: 61 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005309/2.09, allocations: 56.7 kB / 0.7363 GB, free: 61 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007944/2.091, allocations: 125.9 kB / 0.7364 GB, free: 60.99 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.651e-05/2.091, allocations: 18.64 kB / 0.7364 GB, free: 60.99 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007489/2.092, allocations: 0.6596 MB / 0.7371 GB, free: 60.47 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/2.092, allocations: 3.562 kB / 0.7371 GB, free: 60.47 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002554/2.094, allocations: 1.04 MB / 0.7381 GB, free: 60.22 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003678/2.095, allocations: 143.4 kB / 0.7382 GB, free: 60.09 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002277/2.095, allocations: 17.31 kB / 0.7382 GB, free: 60.09 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006873/2.096, allocations: 27.72 kB / 0.7383 GB, free: 60.09 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001379/2.096, allocations: 33.73 kB / 0.7383 GB, free: 60.09 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.667e-05/2.096, allocations: 25.2 kB / 0.7383 GB, free: 60.09 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0009628/2.097, allocations: 474.6 kB / 0.7388 GB, free: 60 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.81e-07/2.097, allocations: 2.875 kB / 0.7388 GB, free: 60 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002699/2.1, allocations: 0.5643 MB / 0.7393 GB, free: 60 MB / 362.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: 7 ($whenCondition1,tank.ports_m_flow_out[1],tank.aboveLevel[1],timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent) * Number of discrete states: 7 (tank.aboveLevel[1],tank.ports_m_flow_out[1],timeTable.last,timeTable.nextEvent,timeTable.b,timeTable.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 30 * 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.004423/2.104, allocations: 2.035 MB / 0.7413 GB, free: 59.15 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003615/2.108, allocations: 1.099 MB / 0.7424 GB, free: 59.02 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 9.307e-06/2.108, allocations: 0 / 0.7424 GB, free: 59.02 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001032/2.109, allocations: 323 kB / 0.7427 GB, free: 58.95 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002213/2.111, allocations: 244.9 kB / 0.7429 GB, free: 58.95 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007023/2.118, allocations: 8.457 MB / 0.7512 GB, free: 51.83 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005177/2.119, allocations: 0.9753 MB / 0.7521 GB, free: 51.13 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000601/2.119, allocations: 261.9 kB / 0.7524 GB, free: 51.12 MB / 362.7 MB Notification: Performance of SimCode: time 1.293e-06/2.119, allocations: 0 / 0.7524 GB, free: 51.12 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.337/5.456, allocations: 19.5 MB / 0.7714 GB, free: 50.25 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank_res.mat does not exist to compare? outputFormat=mat