Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank.level|tank.medium.T|timeTable.a|timeTable.b|timeTable.last|timeTable.nextEvent",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank") Notification: Performance of loadModel(ModelicaTest): time 1.783/1.783, allocations: 209.3 MB / 224.9 MB, free: 192 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004415/0.0004416, allocations: 11.98 kB / 282.6 MB, free: 9.594 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2971/0.2976, allocations: 48.7 MB / 331.3 MB, free: 6.512 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9211/1.219, allocations: 323.9 MB / 0.6398 GB, free: 146 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000253/1.219, allocations: 91.42 kB / 0.6399 GB, free: 146 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4323/1.651, allocations: 141.9 MB / 0.7785 GB, free: 7.504 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.075e-06/1.651, allocations: 0 / 0.7785 GB, free: 7.504 MB / 426.7 MB Notification: Performance of Transformations before backend: time 6.96e-05/1.651, allocations: 27.92 kB / 0.7785 GB, free: 7.477 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: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.00291/1.654, allocations: 1.279 MB / 0.7798 GB, free: 6.141 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.734e-05/1.654, allocations: 8.031 kB / 0.7798 GB, free: 6.133 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005255/1.655, allocations: 106.9 kB / 0.7799 GB, free: 6.027 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001558/1.657, allocations: 0.7063 MB / 0.7806 GB, free: 5.277 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001393/1.657, allocations: 104.7 kB / 0.7807 GB, free: 5.16 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001422/1.657, allocations: 52 kB / 0.7807 GB, free: 5.109 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001947/1.659, allocations: 1.011 MB / 0.7817 GB, free: 4.051 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.632e-05/1.659, allocations: 3.938 kB / 0.7817 GB, free: 4.047 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001249/1.659, allocations: 27.95 kB / 0.7817 GB, free: 4.02 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.98e-05/1.659, allocations: 49.28 kB / 0.7818 GB, free: 3.973 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00194/1.661, allocations: 0.899 MB / 0.7827 GB, free: 3.074 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.246/1.907, allocations: 4.001 MB / 0.7866 GB, free: 82.57 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001469/1.909, allocations: 0.6257 MB / 0.7872 GB, free: 82.54 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003831/1.912, allocations: 2.306 MB / 0.7894 GB, free: 81.14 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009409/1.913, allocations: 438.2 kB / 0.7898 GB, free: 81.06 MB / 426.7 MB Notification: Performance of pre-optimization done (n=45): time 4.335e-06/1.913, allocations: 1.469 kB / 0.7898 GB, free: 81.06 MB / 426.7 MB Notification: Performance of matching and sorting (n=50): time 0.007293/1.921, allocations: 2.64 MB / 0.7924 GB, free: 80.3 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.699e-05/1.921, allocations: 165.6 kB / 0.7926 GB, free: 80.11 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001246/1.922, allocations: 0.6847 MB / 0.7932 GB, free: 79.99 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001222/1.922, allocations: 33.42 kB / 0.7933 GB, free: 79.96 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002871/1.923, allocations: 458.7 kB / 0.7937 GB, free: 79.71 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001908/1.923, allocations: 168.4 kB / 0.7939 GB, free: 79.63 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.076e-05/1.923, allocations: 16.56 kB / 0.7939 GB, free: 79.63 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.049e-05/1.923, allocations: 343.5 kB / 0.7942 GB, free: 79.32 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008246/1.924, allocations: 355.9 kB / 0.7946 GB, free: 79.32 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009518/1.925, allocations: 0.6349 MB / 0.7952 GB, free: 78.98 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009563/1.926, allocations: 456.5 kB / 0.7956 GB, free: 78.94 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.931e-06/1.926, allocations: 2.594 kB / 0.7956 GB, free: 78.94 MB / 426.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002982/1.929, allocations: 1.233 MB / 0.7968 GB, free: 78.84 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007268/1.93, allocations: 3.434 MB / 0.8002 GB, free: 75.27 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.152e-05/1.93, allocations: 11.22 kB / 0.8002 GB, free: 75.27 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001271/1.931, allocations: 347.4 kB / 0.8005 GB, free: 75.25 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008167/1.932, allocations: 161.5 kB / 0.8007 GB, free: 75.25 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001542/1.933, allocations: 1.431 MB / 0.8021 GB, free: 74.21 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001151/1.934, allocations: 52.92 kB / 0.8021 GB, free: 74.21 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001376/1.935, allocations: 50.08 kB / 0.8022 GB, free: 74.21 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.505e-05/1.935, allocations: 3.656 kB / 0.8022 GB, free: 74.21 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002873/1.937, allocations: 1.125 MB / 0.8033 GB, free: 74.14 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.05e-05/1.938, allocations: 8.188 kB / 0.8033 GB, free: 74.14 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008763/1.938, allocations: 255 kB / 0.8035 GB, free: 74.13 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008064/1.939, allocations: 160.2 kB / 0.8037 GB, free: 74.13 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00226/1.942, allocations: 2.352 MB / 0.806 GB, free: 72.28 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007987/1.942, allocations: 50.69 kB / 0.806 GB, free: 72.28 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001184/1.943, allocations: 39.19 kB / 0.8061 GB, free: 72.28 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2],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 (89): * Single equations (assignments): 86 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 1,2 4} Notification: Performance of prepare postOptimizeDAE: time 0.0007238/1.943, allocations: 397.2 kB / 0.8064 GB, free: 72.06 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000211/1.943, allocations: 83.91 kB / 0.8065 GB, free: 72.02 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002793/1.946, allocations: 1.081 MB / 0.8076 GB, free: 71.91 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.071e-05/1.946, allocations: 8.594 kB / 0.8076 GB, free: 71.91 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.72e-06/1.946, allocations: 0 / 0.8076 GB, free: 71.91 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.084e-05/1.946, allocations: 7.609 kB / 0.8076 GB, free: 71.91 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003974/1.95, allocations: 1.885 MB / 0.8094 GB, free: 71.54 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.719e-06/1.95, allocations: 0 / 0.8094 GB, free: 71.54 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005385/1.951, allocations: 76.8 kB / 0.8095 GB, free: 71.54 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001116/1.952, allocations: 344.8 kB / 0.8098 GB, free: 71.53 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.473e-05/1.952, allocations: 13.56 kB / 0.8098 GB, free: 71.53 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001419/1.954, allocations: 1.423 MB / 0.8112 GB, free: 70.48 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.503e-06/1.954, allocations: 2.625 kB / 0.8112 GB, free: 70.48 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003141/1.957, allocations: 1.534 MB / 0.8127 GB, free: 70.25 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006046/1.957, allocations: 247.7 kB / 0.813 GB, free: 70.11 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001734/1.958, allocations: 10.53 kB / 0.813 GB, free: 70.11 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000703/1.958, allocations: 45.5 kB / 0.813 GB, free: 70.11 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001604/1.959, allocations: 48.08 kB / 0.8131 GB, free: 70.11 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.086e-05/1.959, allocations: 25.25 kB / 0.8131 GB, free: 70.11 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0008401/1.959, allocations: 0.5243 MB / 0.8136 GB, free: 70.02 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.13e-07/1.959, allocations: 0 / 0.8136 GB, free: 70.02 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002679/1.962, allocations: 0.6608 MB / 0.8142 GB, free: 70.02 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (tank.medium.T,tank.level) * Number of discrete variables: 9 ($whenCondition1,tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2],timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent) * Number of discrete states: 5 (timeTable.last,timeTable.nextEvent,timeTable.b,timeTable.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 39 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 1,2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.001789/1.964, allocations: 0.6229 MB / 0.8149 GB, free: 69.92 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003593/1.968, allocations: 1.562 MB / 0.8164 GB, free: 69.67 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.321e-06/1.968, allocations: 2.719 kB / 0.8164 GB, free: 69.67 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001202/1.969, allocations: 460 kB / 0.8168 GB, free: 69.6 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001764/1.971, allocations: 274.8 kB / 0.8171 GB, free: 69.6 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003994/1.975, allocations: 2.084 MB / 0.8191 GB, free: 68.83 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005489/1.975, allocations: 1.023 MB / 0.8201 GB, free: 68.13 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003429/1.976, allocations: 76.17 kB / 0.8202 GB, free: 68.12 MB / 426.7 MB Notification: Performance of SimCode: time 3.543e-06/1.976, allocations: 0 / 0.8202 GB, free: 68.12 MB / 426.7 MB Notification: Performance of Templates: time 0.03235/2.008, allocations: 21.75 MB / 0.8414 GB, free: 67.37 MB / 426.7 MB