Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.LinearFluid.LinearColdWater") Notification: Performance of loadModel(ModelicaTest): time 2.152/2.152, allocations: 235 MB / 248.1 MB, free: 14.35 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.281e-05/3.305e-05, allocations: 3.984 kB / 309.7 MB, free: 1.316 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3248/0.3248, allocations: 54.85 MB / 364.5 MB, free: 5.375 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.054/1.379, allocations: 414.8 MB / 0.7611 GB, free: 160.3 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002704/1.38, allocations: 92.66 kB / 0.7612 GB, free: 160.2 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.351/1.731, allocations: 117.6 MB / 0.876 GB, free: 41.54 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.143e-06/1.731, allocations: 0 / 0.876 GB, free: 41.54 MB / 490.7 MB Notification: Performance of Transformations before backend: time 6.715e-05/1.731, allocations: 16 kB / 0.876 GB, free: 41.52 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 130 * Number of variables: 130 Notification: Performance of Generate backend data structure: time 0.002182/1.733, allocations: 0.9791 MB / 0.877 GB, free: 40.5 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.262e-05/1.733, allocations: 8.031 kB / 0.877 GB, free: 40.49 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004898/1.734, allocations: 91.05 kB / 0.8771 GB, free: 40.4 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001193/1.735, allocations: 0.5366 MB / 0.8776 GB, free: 39.83 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001064/1.735, allocations: 104.4 kB / 0.8777 GB, free: 39.71 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001159/1.735, allocations: 55.84 kB / 0.8778 GB, free: 39.66 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001445/1.736, allocations: 0.802 MB / 0.8785 GB, free: 38.78 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.723e-05/1.737, allocations: 3.953 kB / 0.8786 GB, free: 38.77 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.748e-05/1.737, allocations: 24 kB / 0.8786 GB, free: 38.75 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.633e-05/1.737, allocations: 40.91 kB / 0.8786 GB, free: 38.71 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001246/1.738, allocations: 0.6167 MB / 0.8792 GB, free: 38.09 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005198/1.743, allocations: 3.907 MB / 0.883 GB, free: 33.96 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009339/1.744, allocations: 393.1 kB / 0.8834 GB, free: 33.57 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003609/1.745, allocations: 189.5 kB / 0.8836 GB, free: 33.38 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004226/1.745, allocations: 0.499 MB / 0.8841 GB, free: 32.77 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.02e-05/1.745, allocations: 42.88 kB / 0.8841 GB, free: 32.72 MB / 490.7 MB Notification: Performance of pre-optimization done (n=40): time 4.435e-06/1.745, allocations: 0 / 0.8841 GB, free: 32.72 MB / 490.7 MB Notification: Performance of matching and sorting (n=45): time 0.003361/1.748, allocations: 1.31 MB / 0.8854 GB, free: 31.36 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.534e-05/1.749, allocations: 132.5 kB / 0.8855 GB, free: 31.2 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007071/1.749, allocations: 0.489 MB / 0.886 GB, free: 30.71 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 5.861e-05/1.749, allocations: 37.7 kB / 0.886 GB, free: 30.66 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001977/1.75, allocations: 397.9 kB / 0.8864 GB, free: 30.27 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001308/1.75, allocations: 161.7 kB / 0.8866 GB, free: 30.11 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.513e-05/1.75, allocations: 16 kB / 0.8866 GB, free: 30.09 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 7.698e-05/1.75, allocations: 342.8 kB / 0.8869 GB, free: 29.75 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000436/1.75, allocations: 213.5 kB / 0.8871 GB, free: 29.54 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005815/1.751, allocations: 0.5272 MB / 0.8876 GB, free: 28.86 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005727/1.751, allocations: 317.4 kB / 0.8879 GB, free: 28.55 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.295e-06/1.751, allocations: 4 kB / 0.8879 GB, free: 28.55 MB / 490.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.002184/1.754, allocations: 0.91 MB / 0.8888 GB, free: 27.63 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.844e-05/1.754, allocations: 15.95 kB / 0.8888 GB, free: 27.61 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.535e-05/1.754, allocations: 8 kB / 0.8888 GB, free: 27.61 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001268/1.755, allocations: 249.3 kB / 0.8891 GB, free: 27.36 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005863/1.756, allocations: 139.8 kB / 0.8892 GB, free: 27.22 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009801/1.757, allocations: 0.8456 MB / 0.89 GB, free: 26.35 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008619/1.758, allocations: 48.03 kB / 0.8901 GB, free: 26.3 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.758e-05/1.758, allocations: 40 kB / 0.8901 GB, free: 26.27 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * Number of states: 0 () * Number of discrete variables: 4 (volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (77): * Single equations (assignments): 76 * 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 {2 14} Notification: Performance of prepare postOptimizeDAE: time 0.000196/1.758, allocations: 160.6 kB / 0.8903 GB, free: 26.1 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001461/1.758, allocations: 63.25 kB / 0.8903 GB, free: 26.04 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001559/1.76, allocations: 0.6879 MB / 0.891 GB, free: 25.34 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.403e-05/1.76, allocations: 7.984 kB / 0.891 GB, free: 25.33 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.497e-06/1.76, allocations: 4 kB / 0.891 GB, free: 25.32 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.334e-06/1.76, allocations: 0 / 0.891 GB, free: 25.32 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002608/1.762, allocations: 1.363 MB / 0.8924 GB, free: 23.88 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.73e-06/1.762, allocations: 224 / 0.8924 GB, free: 23.88 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00128/1.764, allocations: 199.8 kB / 0.8925 GB, free: 23.68 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003234/1.764, allocations: 48.8 kB / 0.8926 GB, free: 23.63 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.086e-05/1.764, allocations: 16 kB / 0.8926 GB, free: 23.62 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002164/1.766, allocations: 2.778 MB / 0.8953 GB, free: 20.57 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.675e-06/1.766, allocations: 4.031 kB / 0.8953 GB, free: 20.57 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001828/1.768, allocations: 1.046 MB / 0.8963 GB, free: 19.44 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004207/1.769, allocations: 200.2 kB / 0.8965 GB, free: 19.22 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001257/1.769, allocations: 8 kB / 0.8965 GB, free: 19.21 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005785/1.769, allocations: 31.95 kB / 0.8966 GB, free: 19.18 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001042/1.769, allocations: 43.88 kB / 0.8966 GB, free: 19.14 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.913e-05/1.77, allocations: 19.98 kB / 0.8966 GB, free: 19.12 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0005722/1.77, allocations: 373.5 kB / 0.897 GB, free: 18.76 MB / 490.7 MB Notification: Performance of sort global known variables: time 8.12e-07/1.77, allocations: 7.938 kB / 0.897 GB, free: 18.75 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.001174/1.771, allocations: 227.9 kB / 0.8972 GB, free: 18.53 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (volume.medium.p,volume.medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (47): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005813/1.772, allocations: 268.1 kB / 0.8975 GB, free: 18.27 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.001378/1.773, allocations: 0.5927 MB / 0.8981 GB, free: 17.68 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 6.48e-06/1.773, allocations: 4 kB / 0.8981 GB, free: 17.67 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001248/1.775, allocations: 455 kB / 0.8985 GB, free: 17.21 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001823/1.776, allocations: 305.4 kB / 0.8988 GB, free: 16.92 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002178/1.779, allocations: 1.044 MB / 0.8998 GB, free: 15.82 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004765/1.779, allocations: 0.9504 MB / 0.9007 GB, free: 14.85 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002704/1.779, allocations: 67.42 kB / 0.9008 GB, free: 14.78 MB / 490.7 MB Notification: Performance of SimCode: time 1.878e-06/1.779, allocations: 0 / 0.9008 GB, free: 14.78 MB / 490.7 MB Notification: Performance of Templates: time 0.02194/1.801, allocations: 14.65 MB / 0.9151 GB, free: 148 kB / 490.7 MB