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.Tanks.EmptyTanks.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.Tanks.EmptyTanks,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Fluid_Examples_Tanks_EmptyTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.794/1.794, allocations: 171.2 MB / 186.7 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005228/0.000523, allocations: 15.98 kB / 233.3 MB, free: 2.941 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09742/0.09798, allocations: 38.76 MB / 272.1 MB, free: 12.11 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9543/1.052, allocations: 311.2 MB / 0.5696 GB, free: 2.309 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000318/1.053, allocations: 75.84 kB / 0.5697 GB, free: 2.27 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7102/1.763, allocations: 130.7 MB / 0.6973 GB, free: 25.34 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.395e-06/1.763, allocations: 0 / 0.6973 GB, free: 25.34 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.63e-05/1.763, allocations: 28.14 kB / 0.6974 GB, free: 25.31 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.003919/1.767, allocations: 1.177 MB / 0.6985 GB, free: 24.08 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.2e-05/1.767, allocations: 8.031 kB / 0.6985 GB, free: 24.07 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003437/1.768, allocations: 102.5 kB / 0.6986 GB, free: 23.96 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004627/1.768, allocations: 107 kB / 0.6987 GB, free: 23.86 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001937/1.77, allocations: 0.648 MB / 0.6993 GB, free: 23.17 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001251/1.77, allocations: 108.7 kB / 0.6994 GB, free: 23.05 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001466/1.77, allocations: 59.89 kB / 0.6995 GB, free: 22.99 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002171/1.772, allocations: 0.8931 MB / 0.7004 GB, free: 22.07 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.183e-05/1.772, allocations: 0 / 0.7004 GB, free: 22.07 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001214/1.773, allocations: 23.98 kB / 0.7004 GB, free: 22.04 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001281/1.773, allocations: 53.28 kB / 0.7005 GB, free: 21.99 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002132/1.775, allocations: 0.8365 MB / 0.7013 GB, free: 21.16 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008417/1.783, allocations: 3.313 MB / 0.7045 GB, free: 17.69 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001546/1.785, allocations: 0.6492 MB / 0.7051 GB, free: 17.03 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004191/1.789, allocations: 2.055 MB / 0.7071 GB, free: 14.78 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.993e-05/1.789, allocations: 39.12 kB / 0.7072 GB, free: 14.73 MB / 362.7 MB Notification: Performance of pre-optimization done (n=56): time 3.857e-06/1.789, allocations: 7.938 kB / 0.7072 GB, free: 14.73 MB / 362.7 MB Notification: Performance of matching and sorting (n=66): time 0.01109/1.8, allocations: 2.833 MB / 0.71 GB, free: 11.82 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.065e-05/1.8, allocations: 85.67 kB / 0.71 GB, free: 11.72 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001093/1.802, allocations: 0.6048 MB / 0.7106 GB, free: 11.11 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001431/1.802, allocations: 41.7 kB / 0.7107 GB, free: 11.07 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002267/1.802, allocations: 355 kB / 0.711 GB, free: 10.71 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002478/1.802, allocations: 228.7 kB / 0.7112 GB, free: 10.49 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.295e-05/1.802, allocations: 12 kB / 0.7112 GB, free: 10.48 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.762e-05/1.802, allocations: 338.8 kB / 0.7116 GB, free: 10.14 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009321/1.803, allocations: 365.8 kB / 0.7119 GB, free: 9.781 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000997/1.804, allocations: 0.5026 MB / 0.7124 GB, free: 9.223 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001013/1.805, allocations: 407 kB / 0.7128 GB, free: 8.824 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.221e-06/1.805, allocations: 4 kB / 0.7128 GB, free: 8.82 MB / 362.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.002922/1.808, allocations: 1.099 MB / 0.7139 GB, free: 7.711 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003801/1.809, allocations: 1.575 MB / 0.7154 GB, free: 6.016 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.337e-05/1.809, allocations: 4 kB / 0.7154 GB, free: 6.012 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001984/1.811, allocations: 448.4 kB / 0.7158 GB, free: 5.57 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001265/1.812, allocations: 159.8 kB / 0.716 GB, free: 5.414 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001816/1.814, allocations: 1.021 MB / 0.717 GB, free: 4.367 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001286/1.815, allocations: 47.95 kB / 0.717 GB, free: 4.32 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001126/1.815, allocations: 35.98 kB / 0.7171 GB, free: 4.285 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.507e-05/1.815, allocations: 7.938 kB / 0.7171 GB, free: 4.277 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002562/1.818, allocations: 0.9255 MB / 0.718 GB, free: 3.348 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.082e-05/1.818, allocations: 8.516 kB / 0.718 GB, free: 3.34 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009051/1.819, allocations: 236.8 kB / 0.7182 GB, free: 3.105 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001194/1.82, allocations: 171.7 kB / 0.7184 GB, free: 2.938 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001024/1.821, allocations: 0.806 MB / 0.7192 GB, free: 2.105 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008005/1.822, allocations: 43.92 kB / 0.7192 GB, free: 2.062 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.451e-05/1.822, allocations: 32.09 kB / 0.7192 GB, free: 2.031 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * 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 {4 9} Notification: Performance of prepare postOptimizeDAE: time 0.0006983/1.823, allocations: 340.8 kB / 0.7196 GB, free: 1.688 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002622/1.823, allocations: 83.06 kB / 0.7196 GB, free: 1.605 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003005/1.826, allocations: 1.084 MB / 0.7207 GB, free: 0.5078 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.18e-05/1.826, allocations: 8 kB / 0.7207 GB, free: 0.5 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.286e-06/1.826, allocations: 3.953 kB / 0.7207 GB, free: 0.4961 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.351e-05/1.826, allocations: 3.984 kB / 0.7207 GB, free: 0.4922 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2639/2.09, allocations: 1.986 MB / 0.7226 GB, free: 76.73 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.327e-06/2.09, allocations: 0.6094 kB / 0.7226 GB, free: 76.73 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001097/2.091, allocations: 119.2 kB / 0.7228 GB, free: 76.73 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002161/2.093, allocations: 451.4 kB / 0.7232 GB, free: 76.72 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001508/2.094, allocations: 28.56 kB / 0.7232 GB, free: 76.72 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001866/2.096, allocations: 1.027 MB / 0.7242 GB, free: 76.2 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.716e-06/2.096, allocations: 0.5312 kB / 0.7242 GB, free: 76.2 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004284/2.1, allocations: 1.592 MB / 0.7258 GB, free: 76.05 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007369/2.101, allocations: 253.5 kB / 0.726 GB, free: 75.96 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002121/2.101, allocations: 15.88 kB / 0.726 GB, free: 75.96 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001071/2.102, allocations: 47.77 kB / 0.7261 GB, free: 75.96 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002173/2.102, allocations: 60.75 kB / 0.7261 GB, free: 75.96 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001038/2.102, allocations: 25.58 kB / 0.7262 GB, free: 75.96 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0008591/2.103, allocations: 478.9 kB / 0.7266 GB, free: 75.87 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.11e-07/2.103, allocations: 0 / 0.7266 GB, free: 75.87 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002641/2.106, allocations: 0.6322 MB / 0.7272 GB, free: 75.87 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * 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 {4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.006255/2.112, allocations: 2.639 MB / 0.7298 GB, free: 75.18 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.004972/2.117, allocations: 1.354 MB / 0.7311 GB, free: 75.16 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.165e-05/2.117, allocations: 1.406 kB / 0.7311 GB, free: 75.16 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001873/2.119, allocations: 463.5 kB / 0.7316 GB, free: 75.15 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003146/2.122, allocations: 347.6 kB / 0.7319 GB, free: 75.14 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01078/2.133, allocations: 5.473 MB / 0.7373 GB, free: 71.38 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001066/2.134, allocations: 1.003 MB / 0.7382 GB, free: 70.67 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001159/2.135, allocations: 300.7 kB / 0.7385 GB, free: 70.66 MB / 362.7 MB Notification: Performance of SimCode: time 1.573e-06/2.135, allocations: 0 / 0.7385 GB, free: 70.66 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.34/5.476, allocations: 22.33 MB / 0.7603 GB, free: 69.77 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat does not exist to compare? outputFormat=mat