Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_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_Modelica_Fluid_Examples_Tanks_EmptyTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.719/1.719, allocations: 171.2 MB / 186.1 MB, free: 1.117 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004996/0.0005, allocations: 8 kB / 233.4 MB, free: 2.277 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0908/0.09135, allocations: 38.77 MB / 272.1 MB, free: 11.43 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9133/1.005, allocations: 311.2 MB / 0.5696 GB, free: 1.797 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003202/1.005, allocations: 82.27 kB / 0.5697 GB, free: 1.754 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6893/1.694, allocations: 130.7 MB / 0.6974 GB, free: 24.84 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.575e-06/1.695, allocations: 0 / 0.6974 GB, free: 24.84 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.99e-05/1.695, allocations: 24.16 kB / 0.6974 GB, free: 24.81 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.003578/1.698, allocations: 1.177 MB / 0.6985 GB, free: 23.58 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.787e-05/1.698, allocations: 8.031 kB / 0.6985 GB, free: 23.57 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002208/1.698, allocations: 106.4 kB / 0.6986 GB, free: 23.46 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004076/1.699, allocations: 103 kB / 0.6987 GB, free: 23.36 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001775/1.701, allocations: 0.648 MB / 0.6994 GB, free: 22.67 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00012/1.701, allocations: 104.7 kB / 0.6995 GB, free: 22.55 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001545/1.701, allocations: 67.81 kB / 0.6995 GB, free: 22.49 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002121/1.703, allocations: 0.8932 MB / 0.7004 GB, free: 21.57 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.073e-05/1.703, allocations: 3.938 kB / 0.7004 GB, free: 21.56 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001202/1.703, allocations: 23.98 kB / 0.7004 GB, free: 21.54 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001151/1.703, allocations: 57.27 kB / 0.7005 GB, free: 21.48 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002033/1.705, allocations: 0.8326 MB / 0.7013 GB, free: 20.65 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007776/1.713, allocations: 3.309 MB / 0.7045 GB, free: 17.19 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001468/1.715, allocations: 0.657 MB / 0.7052 GB, free: 16.52 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003861/1.719, allocations: 2.047 MB / 0.7072 GB, free: 14.28 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.85e-05/1.719, allocations: 43.12 kB / 0.7072 GB, free: 14.23 MB / 362.7 MB Notification: Performance of pre-optimization done (n=56): time 2.895e-06/1.719, allocations: 7.938 kB / 0.7072 GB, free: 14.22 MB / 362.7 MB Notification: Performance of matching and sorting (n=66): time 0.01056/1.729, allocations: 2.829 MB / 0.71 GB, free: 11.32 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.651e-05/1.729, allocations: 85.67 kB / 0.7101 GB, free: 11.22 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001026/1.73, allocations: 0.6009 MB / 0.7106 GB, free: 10.62 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.965e-05/1.731, allocations: 41.7 kB / 0.7107 GB, free: 10.57 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002525/1.731, allocations: 332.5 kB / 0.711 GB, free: 10.24 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002136/1.731, allocations: 228.7 kB / 0.7112 GB, free: 10.01 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.345e-05/1.731, allocations: 16 kB / 0.7112 GB, free: 9.996 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001304/1.731, allocations: 386.8 kB / 0.7116 GB, free: 9.609 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008893/1.732, allocations: 361.8 kB / 0.712 GB, free: 9.258 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009847/1.733, allocations: 0.5065 MB / 0.7124 GB, free: 8.695 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009943/1.734, allocations: 407 kB / 0.7128 GB, free: 8.297 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/1.734, allocations: 0 / 0.7128 GB, free: 8.297 MB / 362.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.002917/1.737, allocations: 1.149 MB / 0.714 GB, free: 7.137 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003236/1.737, allocations: 1.57 MB / 0.7155 GB, free: 5.449 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.216e-05/1.737, allocations: 11.94 kB / 0.7155 GB, free: 5.438 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00197/1.739, allocations: 436.5 kB / 0.7159 GB, free: 5.008 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00118/1.741, allocations: 155.8 kB / 0.7161 GB, free: 4.855 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001664/1.742, allocations: 1.028 MB / 0.7171 GB, free: 3.801 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001104/1.743, allocations: 47.94 kB / 0.7171 GB, free: 3.754 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001058/1.744, allocations: 35.97 kB / 0.7172 GB, free: 3.719 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.301e-05/1.744, allocations: 0 / 0.7172 GB, free: 3.719 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00241/1.746, allocations: 0.9333 MB / 0.7181 GB, free: 2.781 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.416e-06/1.746, allocations: 4 kB / 0.7181 GB, free: 2.777 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009368/1.747, allocations: 253.2 kB / 0.7183 GB, free: 2.527 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001147/1.748, allocations: 163.7 kB / 0.7185 GB, free: 2.367 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009488/1.749, allocations: 0.8178 MB / 0.7193 GB, free: 1.523 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009694/1.75, allocations: 43.83 kB / 0.7193 GB, free: 1.48 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.514e-05/1.75, allocations: 39.97 kB / 0.7193 GB, free: 1.441 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.000605/1.751, allocations: 332.9 kB / 0.7197 GB, free: 1.105 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001842/1.751, allocations: 71.16 kB / 0.7197 GB, free: 1.035 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2491/2, allocations: 1.085 MB / 0.7208 GB, free: 76.71 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.146e-05/2, allocations: 7 kB / 0.7208 GB, free: 76.71 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.082e-05/2, allocations: 2.844 kB / 0.7208 GB, free: 76.71 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.967e-05/2, allocations: 4.031 kB / 0.7208 GB, free: 76.71 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005468/2.006, allocations: 2 MB / 0.7228 GB, free: 76.41 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.444e-06/2.006, allocations: 0 / 0.7228 GB, free: 76.41 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001112/2.007, allocations: 121.2 kB / 0.7229 GB, free: 76.41 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002011/2.009, allocations: 448.6 kB / 0.7233 GB, free: 76.4 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001034/2.009, allocations: 22.97 kB / 0.7233 GB, free: 76.4 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001832/2.011, allocations: 1.025 MB / 0.7243 GB, free: 75.88 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/2.011, allocations: 3.953 kB / 0.7243 GB, free: 75.88 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003944/2.015, allocations: 1.593 MB / 0.7259 GB, free: 75.73 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006613/2.016, allocations: 248.7 kB / 0.7261 GB, free: 75.64 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00018/2.016, allocations: 13.69 kB / 0.7261 GB, free: 75.64 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00105/2.017, allocations: 55.89 kB / 0.7262 GB, free: 75.64 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001869/2.017, allocations: 61.83 kB / 0.7262 GB, free: 75.63 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.803e-05/2.017, allocations: 26.02 kB / 0.7263 GB, free: 75.63 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0008598/2.018, allocations: 479 kB / 0.7267 GB, free: 75.54 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.473e-06/2.018, allocations: 0 / 0.7267 GB, free: 75.54 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002364/2.02, allocations: 0.6367 MB / 0.7273 GB, free: 75.54 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.006075/2.027, allocations: 2.619 MB / 0.7299 GB, free: 74.85 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.004633/2.031, allocations: 1.351 MB / 0.7312 GB, free: 74.82 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.825e-06/2.031, allocations: 1.031 kB / 0.7312 GB, free: 74.82 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001734/2.033, allocations: 466.4 kB / 0.7317 GB, free: 74.82 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002972/2.036, allocations: 361.7 kB / 0.732 GB, free: 74.81 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009104/2.045, allocations: 5.438 MB / 0.7373 GB, free: 71.07 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006619/2.046, allocations: 1.011 MB / 0.7383 GB, free: 70.36 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.002021/2.048, allocations: 295.9 kB / 0.7386 GB, free: 70.35 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000602/2.049, allocations: 286.9 kB / 0.7389 GB, free: 70.34 MB / 362.7 MB Notification: Performance of SimCode: time 1.523e-06/2.049, allocations: 0 / 0.7389 GB, free: 70.34 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1061/2.155, allocations: 29 MB / 0.7672 GB, free: 69.09 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003311/2.155, allocations: 201.3 kB / 0.7674 GB, free: 68.84 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.684/5.839, allocations: 0 / 0.7674 GB, free: 68.84 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat does not exist to compare? outputFormat=mat