Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: translateModel(Modelica.Media.Examples.TestOnly.IdealGasN2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2") Notification: Performance of loadModel(Modelica): time 1.076/1.076, allocations: 111.2 MB / 119.1 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.087e-05/2.108e-05, allocations: 4 kB / 148.1 MB, free: 6.227 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04536/0.0454, allocations: 25.18 MB / 173.3 MB, free: 13.01 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6659/0.7114, allocations: 295.7 MB / 469 MB, free: 19.54 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000184/0.7116, allocations: 61.28 kB / 469.1 MB, free: 19.51 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2154/0.927, allocations: 30.49 MB / 499.6 MB, free: 74.06 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.14e-06/0.927, allocations: 2 kB / 499.6 MB, free: 74.06 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.323e-05/0.9271, allocations: 1.25 kB / 499.6 MB, free: 74.06 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0004482/0.9275, allocations: 380.7 kB / 499.9 MB, free: 73.7 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.966e-05/0.9276, allocations: 10.53 kB / 499.9 MB, free: 73.7 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.954e-05/0.9276, allocations: 9.156 kB / 500 MB, free: 73.7 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001751/0.9278, allocations: 190.8 kB / 0.4884 GB, free: 73.5 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.165e-06/0.9278, allocations: 2.812 kB / 0.4884 GB, free: 73.5 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.335e-05/0.9279, allocations: 9.016 kB / 0.4884 GB, free: 73.5 MB / 234.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002066/0.9281, allocations: 96.66 kB / 0.4885 GB, free: 73.5 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001959/0.9283, allocations: 117 kB / 0.4886 GB, free: 73.44 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.345e-05/0.9283, allocations: 3.938 kB / 0.4886 GB, free: 73.44 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.018e-05/0.9284, allocations: 0 / 0.4886 GB, free: 73.44 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.384e-06/0.9284, allocations: 2.25 kB / 0.4886 GB, free: 73.44 MB / 234.7 MB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007672/0.9292, allocations: 0.6148 MB / 0.4892 GB, free: 72.91 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002483/0.9294, allocations: 134.1 kB / 0.4894 GB, free: 72.89 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.6e-05/0.9295, allocations: 39.89 kB / 0.4894 GB, free: 72.88 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004414/0.93, allocations: 0.5769 MB / 0.49 GB, free: 72.23 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.909e-05/0.93, allocations: 39.56 kB / 0.49 GB, free: 72.19 MB / 234.7 MB Notification: Performance of pre-optimization done (n=14): time 2.696e-06/0.93, allocations: 0 / 0.49 GB, free: 72.19 MB / 234.7 MB Notification: Performance of matching and sorting (n=19): time 0.007165/0.9372, allocations: 1.411 MB / 0.4914 GB, free: 71.79 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.291e-05/0.9373, allocations: 55.19 kB / 0.4914 GB, free: 71.73 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.711e-05/0.9373, allocations: 105.1 kB / 0.4915 GB, free: 71.64 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 2.606e-05/0.9374, allocations: 25.7 kB / 0.4916 GB, free: 71.61 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.825e-05/0.9374, allocations: 167.4 kB / 0.4917 GB, free: 71.45 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.916e-05/0.9375, allocations: 64.34 kB / 0.4918 GB, free: 71.42 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.445e-05/0.9375, allocations: 0 / 0.4918 GB, free: 71.42 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 5.464e-05/0.9376, allocations: 322 kB / 0.4921 GB, free: 71.11 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.57e-05/0.9377, allocations: 53.38 kB / 0.4921 GB, free: 71.1 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001079/0.9378, allocations: 76.62 kB / 0.4922 GB, free: 71.07 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001173/0.939, allocations: 253.5 kB / 0.4925 GB, free: 71.07 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.939, allocations: 0 / 0.4925 GB, free: 71.07 MB / 234.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.001528/0.9406, allocations: 403 kB / 0.4928 GB, free: 71.02 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.901e-05/0.9406, allocations: 6.531 kB / 0.4928 GB, free: 71.02 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.103e-06/0.9406, allocations: 0 / 0.4928 GB, free: 71.02 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001727/0.9408, allocations: 45.5 kB / 0.4929 GB, free: 71.01 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002564/0.9411, allocations: 52 kB / 0.4929 GB, free: 71.01 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003643/0.9415, allocations: 0.5688 MB / 0.4935 GB, free: 70.49 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001332/0.9416, allocations: 1.969 kB / 0.4935 GB, free: 70.49 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.963e-05/0.9417, allocations: 27.44 kB / 0.4935 GB, free: 70.49 MB / 234.7 MB Warning: Assuming fixed start value for the following 2 variables: medium.T:VARIABLE(min = max(200.0, 200.0) max = min(6000.0, 6000.0) start = 300.0 unit = "K" nominal = 500.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real medium.p:VARIABLE(min = max(0.0, 2000.0) max = min(100000000.0, 1000000000.0) start = 100000.0 unit = "Pa" nominal = 100000.0 stateSelect=StateSelect.prefer ) "Absolute pressure of medium" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 22 * 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 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001881/0.9419, allocations: 127.2 kB / 0.4936 GB, free: 70.38 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.914e-05/0.9419, allocations: 14 kB / 0.4937 GB, free: 70.38 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001924/0.9439, allocations: 490.4 kB / 0.4941 GB, free: 70.32 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.408e-06/0.9439, allocations: 10 kB / 0.4941 GB, free: 70.32 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.354e-06/0.9439, allocations: 0 / 0.4941 GB, free: 70.32 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.482e-06/0.9439, allocations: 0 / 0.4941 GB, free: 70.32 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001846/0.9458, allocations: 0.7068 MB / 0.4948 GB, free: 70.01 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.202e-06/0.9458, allocations: 0 / 0.4948 GB, free: 70.01 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002963/0.9461, allocations: 57.22 kB / 0.4949 GB, free: 70.01 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001043/0.9463, allocations: 25.95 kB / 0.4949 GB, free: 70 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.07e-05/0.9463, allocations: 11.64 kB / 0.4949 GB, free: 70 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007678/0.9471, allocations: 1.227 MB / 0.4961 GB, free: 68.8 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.377e-06/0.9471, allocations: 2.438 kB / 0.4961 GB, free: 68.8 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001686/0.9488, allocations: 0.5802 MB / 0.4967 GB, free: 68.58 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.379e-05/0.9489, allocations: 84.52 kB / 0.4968 GB, free: 68.48 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.509e-05/0.9489, allocations: 6.094 kB / 0.4968 GB, free: 68.48 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001951/0.9491, allocations: 4.688 kB / 0.4968 GB, free: 68.48 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.889e-05/0.9492, allocations: 25.67 kB / 0.4968 GB, free: 68.48 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.04e-05/0.9493, allocations: 28.8 kB / 0.4968 GB, free: 68.48 MB / 234.7 MB Notification: Performance of sorting global known variables: time 4.376e-05/0.9493, allocations: 84.16 kB / 0.4969 GB, free: 68.41 MB / 234.7 MB Notification: Performance of sort global known variables: time 8.47e-07/0.9493, allocations: 0.5 kB / 0.4969 GB, free: 68.41 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.0007206/0.9501, allocations: 133.2 kB / 0.497 GB, free: 68.39 MB / 234.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (medium.p,medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 19 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001189/0.9513, allocations: 0.6893 MB / 0.4977 GB, free: 68.19 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.0004143/0.9517, allocations: 155.5 kB / 0.4979 GB, free: 68.18 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 3.931e-06/0.9517, allocations: 0 / 0.4979 GB, free: 68.18 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000259/0.952, allocations: 196.9 kB / 0.498 GB, free: 68.08 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004341/0.9524, allocations: 37.38 kB / 0.4981 GB, free: 68.08 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005797/0.953, allocations: 328.2 kB / 0.4984 GB, free: 67.86 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001691/0.9532, allocations: 0.7187 MB / 0.4991 GB, free: 67.15 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002486/0.9535, allocations: 51.02 kB / 0.4991 GB, free: 67.14 MB / 234.7 MB Notification: Performance of SimCode: time 1.686e-06/0.9535, allocations: 0 / 0.4991 GB, free: 67.14 MB / 234.7 MB Notification: Performance of Templates: time 0.01121/0.9647, allocations: 7.194 MB / 0.5062 GB, free: 65.46 MB / 234.7 MB