Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_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_Modelica_Fluid_Examples_AST_BatchPlant_Test_OneTank",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.642/1.642, allocations: 171.1 MB / 186.1 MB, free: 1.137 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003703/0.0003702, allocations: 8 kB / 233.4 MB, free: 2.266 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0949/0.09531, allocations: 38.76 MB / 272.1 MB, free: 11.43 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.135/1.231, allocations: 316.1 MB / 0.5745 GB, free: 98.91 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003662/1.231, allocations: 94.92 kB / 0.5746 GB, free: 98.91 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7498/1.981, allocations: 141.8 MB / 0.7131 GB, free: 71.86 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.505e-06/1.981, allocations: 0 / 0.7131 GB, free: 71.86 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.814e-05/1.981, allocations: 19.19 kB / 0.7131 GB, free: 71.86 MB / 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.003673/1.985, allocations: 1.167 MB / 0.7142 GB, free: 71.35 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.297e-05/1.985, allocations: 8.25 kB / 0.7142 GB, free: 71.35 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000275/1.985, allocations: 98.14 kB / 0.7143 GB, free: 71.31 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006114/1.986, allocations: 96.55 kB / 0.7144 GB, free: 71.27 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002348/1.988, allocations: 0.6398 MB / 0.7151 GB, free: 71.02 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001241/1.988, allocations: 97.47 kB / 0.7151 GB, free: 70.95 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001481/1.989, allocations: 47.08 kB / 0.7152 GB, free: 70.95 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002099/1.991, allocations: 0.8034 MB / 0.716 GB, free: 70.8 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.125e-05/1.991, allocations: 1.281 kB / 0.716 GB, free: 70.8 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001238/1.991, allocations: 23.77 kB / 0.716 GB, free: 70.8 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001156/1.991, allocations: 36.44 kB / 0.716 GB, free: 70.8 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001876/1.993, allocations: 0.6673 MB / 0.7167 GB, free: 70.79 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006751/2, allocations: 3.412 MB / 0.72 GB, free: 68.86 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001034/2.001, allocations: 398.7 kB / 0.7204 GB, free: 68.84 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002472/2.003, allocations: 1.291 MB / 0.7217 GB, free: 67.98 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006465/2.004, allocations: 294.8 kB / 0.7219 GB, free: 67.9 MB / 362.7 MB Notification: Performance of pre-optimization done (n=33): time 3.456e-06/2.004, allocations: 3.688 kB / 0.7219 GB, free: 67.9 MB / 362.7 MB Notification: Performance of matching and sorting (n=38): time 0.005933/2.01, allocations: 1.852 MB / 0.7238 GB, free: 67.23 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.493e-05/2.01, allocations: 164.1 kB / 0.7239 GB, free: 67.04 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001183/2.011, allocations: 0.6096 MB / 0.7245 GB, free: 66.91 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.546e-05/2.011, allocations: 38.33 kB / 0.7245 GB, free: 66.88 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003438/2.012, allocations: 419.9 kB / 0.7249 GB, free: 66.71 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001384/2.012, allocations: 132 kB / 0.7251 GB, free: 66.64 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.639e-05/2.012, allocations: 16.47 kB / 0.7251 GB, free: 66.64 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001272/2.012, allocations: 383 kB / 0.7254 GB, free: 66.33 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006169/2.013, allocations: 247.8 kB / 0.7257 GB, free: 66.33 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008478/2.013, allocations: 0.5225 MB / 0.7262 GB, free: 65.98 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008673/2.014, allocations: 353.7 kB / 0.7265 GB, free: 65.95 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.809e-06/2.014, allocations: 3.594 kB / 0.7265 GB, free: 65.95 MB / 362.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.003265/2.018, allocations: 0.9825 MB / 0.7275 GB, free: 65.82 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001018/2.019, allocations: 3.519 MB / 0.7309 GB, free: 62.16 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.795e-05/2.019, allocations: 8.812 kB / 0.7309 GB, free: 62.16 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001172/2.02, allocations: 130.7 kB / 0.7311 GB, free: 62.16 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001206/2.021, allocations: 149.1 kB / 0.7312 GB, free: 62.16 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009807/2.022, allocations: 0.6694 MB / 0.7319 GB, free: 61.64 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001343/2.024, allocations: 53.31 kB / 0.7319 GB, free: 61.64 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001437/2.024, allocations: 40.3 kB / 0.7319 GB, free: 61.64 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.919e-05/2.024, allocations: 10.05 kB / 0.732 GB, free: 61.63 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003634/2.027, allocations: 0.9212 MB / 0.7329 GB, free: 61.58 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.876e-05/2.028, allocations: 9.156 kB / 0.7329 GB, free: 61.58 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008125/2.028, allocations: 111.8 kB / 0.733 GB, free: 61.57 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009622/2.029, allocations: 147.2 kB / 0.7331 GB, free: 61.57 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007305/2.03, allocations: 0.6669 MB / 0.7338 GB, free: 61.05 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009913/2.031, allocations: 48 kB / 0.7338 GB, free: 61.05 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001041/2.031, allocations: 42.88 kB / 0.7339 GB, free: 61.05 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.0007789/2.032, allocations: 386.1 kB / 0.7342 GB, free: 60.83 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001579/2.032, allocations: 73.12 kB / 0.7343 GB, free: 60.8 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002249/2.034, allocations: 0.6942 MB / 0.735 GB, free: 60.7 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.448e-06/2.034, allocations: 3.844 kB / 0.735 GB, free: 60.7 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.247e-05/2.034, allocations: 5.172 kB / 0.735 GB, free: 60.7 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.707e-06/2.034, allocations: 3.172 kB / 0.735 GB, free: 60.7 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0034/2.038, allocations: 1.382 MB / 0.7363 GB, free: 60.34 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.434e-06/2.038, allocations: 1.828 kB / 0.7363 GB, free: 60.34 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005378/2.038, allocations: 58 kB / 0.7364 GB, free: 60.34 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007936/2.039, allocations: 128.4 kB / 0.7365 GB, free: 60.33 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.838e-05/2.039, allocations: 16.62 kB / 0.7365 GB, free: 60.33 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000706/2.04, allocations: 0.6636 MB / 0.7372 GB, free: 59.81 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/2.04, allocations: 1.438 kB / 0.7372 GB, free: 59.81 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002366/2.042, allocations: 1.037 MB / 0.7382 GB, free: 59.56 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003345/2.043, allocations: 143.9 kB / 0.7383 GB, free: 59.43 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001829/2.043, allocations: 11.06 kB / 0.7383 GB, free: 59.43 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000694/2.044, allocations: 33.2 kB / 0.7384 GB, free: 59.43 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001487/2.044, allocations: 33.62 kB / 0.7384 GB, free: 59.43 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.87e-05/2.044, allocations: 18.75 kB / 0.7384 GB, free: 59.43 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0009562/2.045, allocations: 480.8 kB / 0.7389 GB, free: 59.34 MB / 362.7 MB Notification: Performance of sort global known variables: time 6.11e-07/2.045, allocations: 0 / 0.7389 GB, free: 59.34 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002732/2.048, allocations: 0.5579 MB / 0.7394 GB, free: 59.27 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.004399/2.052, allocations: 2.047 MB / 0.7414 GB, free: 58.33 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003499/2.056, allocations: 1.125 MB / 0.7425 GB, free: 58.2 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 8.285e-06/2.056, allocations: 3.312 kB / 0.7425 GB, free: 58.2 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009392/2.057, allocations: 322.1 kB / 0.7428 GB, free: 58.14 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00216/2.059, allocations: 245.1 kB / 0.7431 GB, free: 58.13 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006977/2.066, allocations: 8.417 MB / 0.7513 GB, free: 50.97 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005424/2.067, allocations: 0.9775 MB / 0.7522 GB, free: 50.27 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001494/2.068, allocations: 237.2 kB / 0.7525 GB, free: 50.26 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004783/2.069, allocations: 256.9 kB / 0.7527 GB, free: 50.25 MB / 362.7 MB Notification: Performance of SimCode: time 1.203e-06/2.069, allocations: 0 / 0.7527 GB, free: 50.25 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07129/2.14, allocations: 22.56 MB / 0.7747 GB, free: 49.18 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001841/2.14, allocations: 256.4 kB / 0.775 GB, free: 48.84 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.353/5.493, allocations: 3.938 kB / 0.775 GB, free: 48.84 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank_res.mat does not exist to compare? outputFormat=mat