Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.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) Running command: translateModel(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.X.1.|volume.medium.X.2.|volume.medium.X.3.|volume.medium.X.4.|volume.medium.X.5.|volume.medium.X.6.|volume.medium.p",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas") Notification: Performance of loadModel(Modelica): time 1.817/1.817, allocations: 194.8 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003543/0.0003544, allocations: 12 kB / 263.9 MB, free: 13.6 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1132/0.1135, allocations: 44.51 MB / 308.4 MB, free: 1.02 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.4436/0.5572, allocations: 138.7 MB / 447.1 MB, free: 0.6719 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.004095/0.5614, allocations: 2.359 MB / 449.4 MB, free: 14.31 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003605/0.5618, allocations: 4 kB / 449.4 MB, free: 14.3 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007075/0.5625, allocations: 187.2 kB / 449.6 MB, free: 14.12 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000631/0.5632, allocations: 223.4 kB / 449.8 MB, free: 13.9 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001578/0.5648, allocations: 419 kB / 450.2 MB, free: 13.49 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009782/0.5658, allocations: 0.5896 MB / 450.8 MB, free: 12.9 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003741/0.5661, allocations: 199.1 kB / 451 MB, free: 12.71 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002134/0.5683, allocations: 0.8068 MB / 451.8 MB, free: 11.9 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000447/0.5688, allocations: 263.2 kB / 452.1 MB, free: 11.64 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001056/0.5689, allocations: 28 kB / 452.1 MB, free: 11.61 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001323/0.5702, allocations: 447.5 kB / 452.6 MB, free: 11.18 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004528/0.5707, allocations: 371.2 kB / 452.9 MB, free: 10.81 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002638/0.571, allocations: 193.4 kB / 453.1 MB, free: 10.62 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001827/0.5728, allocations: 1.216 MB / 454.3 MB, free: 9.398 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.071e-06/0.5728, allocations: 0 / 454.3 MB, free: 9.398 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.5729, allocations: 0 / 454.3 MB, free: 9.398 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.187e-05/0.5729, allocations: 0 / 454.3 MB, free: 9.398 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 177 * Number of variables: 177 Notification: Performance of Generate backend data structure: time 0.001856/0.5747, allocations: 0.8887 MB / 455.2 MB, free: 8.461 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.182e-05/0.5748, allocations: 8.031 kB / 455.2 MB, free: 8.453 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008842/0.5757, allocations: 163 kB / 455.4 MB, free: 8.293 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009503/0.5767, allocations: 488.8 kB / 455.9 MB, free: 7.773 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.906e-05/0.5767, allocations: 45.31 kB / 455.9 MB, free: 7.73 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001529/0.5769, allocations: 64 kB / 456 MB, free: 7.668 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002086/0.579, allocations: 0.9512 MB / 456.9 MB, free: 6.707 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.016e-05/0.5791, allocations: 4 kB / 456.9 MB, free: 6.703 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001276/0.5792, allocations: 29.12 kB / 456.9 MB, free: 6.676 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.124e-05/0.5793, allocations: 45.98 kB / 457 MB, free: 6.629 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001824/0.5811, allocations: 0.8667 MB / 457.9 MB, free: 5.766 MB / 346.7 MB Warning: The model contains alias variables with redundant start and/or conflicting 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.007105/0.5883, allocations: 3.387 MB / 461.2 MB, free: 2.102 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001234/0.5895, allocations: 0.6313 MB / 461.9 MB, free: 1.465 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.002e-05/0.5896, allocations: 16.53 kB / 461.9 MB, free: 1.449 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.955e-05/0.5897, allocations: 47.12 kB / 461.9 MB, free: 1.395 MB / 346.7 MB Notification: Performance of pre-optimization done (n=59): time 3.956e-06/0.5897, allocations: 0 / 461.9 MB, free: 1.395 MB / 346.7 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: volume.medium.Xi[6] 2: volume.medium.Xi[5] 3: volume.medium.Xi[4] 4: volume.medium.Xi[3] 5: volume.medium.Xi[2] 6: volume.medium.Xi[1] 7: volume.medium.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=71): time 0.01904/0.6087, allocations: 6.148 MB / 468.1 MB, free: 10.85 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.905e-05/0.6088, allocations: 64.06 kB / 468.1 MB, free: 10.78 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009473/0.6098, allocations: 0.5408 MB / 468.7 MB, free: 10.23 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001536/0.6099, allocations: 45.7 kB / 468.7 MB, free: 10.18 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002663/0.6102, allocations: 315.1 kB / 469 MB, free: 9.871 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002918/0.6105, allocations: 252.3 kB / 469.3 MB, free: 9.621 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.974e-05/0.6106, allocations: 16 kB / 469.3 MB, free: 9.605 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001916/0.6108, allocations: 346.8 kB / 469.6 MB, free: 9.258 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009192/0.6118, allocations: 445.7 kB / 470.1 MB, free: 8.824 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001036/0.6128, allocations: 0.5038 MB / 470.6 MB, free: 8.301 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001071/0.6139, allocations: 0.4988 MB / 471.1 MB, free: 7.805 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.187e-06/0.6139, allocations: 4 kB / 471.1 MB, free: 7.801 MB / 362.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.002923/0.6169, allocations: 1.312 MB / 472.4 MB, free: 6.461 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.384e-05/0.6169, allocations: 8.156 kB / 472.4 MB, free: 6.453 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.097e-05/0.6169, allocations: 4 kB / 472.4 MB, free: 6.449 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008675/0.6178, allocations: 326.6 kB / 472.7 MB, free: 6.105 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001179/0.619, allocations: 183.8 kB / 472.9 MB, free: 5.926 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0115/0.6305, allocations: 10.29 MB / 483.2 MB, free: 10.68 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008644/0.6314, allocations: 79.88 kB / 483.3 MB, free: 10.6 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001259/0.6316, allocations: 47.98 kB / 483.3 MB, free: 10.55 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (80): * Single equations (assignments): 72 * 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: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 8 {1 1,1 1,1 1,1 1,1 1,1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0005809/0.6322, allocations: 277.5 kB / 483.6 MB, free: 10.27 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002091/0.6324, allocations: 59.34 kB / 483.6 MB, free: 10.21 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003016/0.6354, allocations: 1.295 MB / 484.9 MB, free: 8.879 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.487e-05/0.6355, allocations: 8 kB / 484.9 MB, free: 8.871 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.724e-06/0.6355, allocations: 0 / 484.9 MB, free: 8.871 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002616/0.6381, allocations: 1.61 MB / 486.6 MB, free: 7.102 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004882/0.643, allocations: 2.268 MB / 488.8 MB, free: 4.762 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.516e-06/0.643, allocations: 0 / 488.8 MB, free: 4.762 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00143/0.6445, allocations: 227.8 kB / 489 MB, free: 4.539 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002566/0.6448, allocations: 68.78 kB / 489.1 MB, free: 4.469 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001087/0.6449, allocations: 35.97 kB / 489.2 MB, free: 4.434 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001751/0.6466, allocations: 1.444 MB / 490.6 MB, free: 2.855 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.96e-06/0.6467, allocations: 0 / 490.6 MB, free: 2.855 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003367/0.65, allocations: 1.594 MB / 492.2 MB, free: 1.234 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000308/0.6504, allocations: 156.3 kB / 492.3 MB, free: 1.062 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001892/0.6506, allocations: 32 kB / 492.4 MB, free: 1.031 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000906/0.6515, allocations: 71.78 kB / 492.4 MB, free: 0.9609 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001362/0.6517, allocations: 64.52 kB / 492.5 MB, free: 0.8984 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001538/0.6518, allocations: 59.94 kB / 492.6 MB, free: 0.8398 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006547/0.6525, allocations: 403.1 kB / 493 MB, free: 456 kB / 378.7 MB Notification: Performance of sort global known variables: time 7.93e-07/0.6525, allocations: 0 / 493 MB, free: 456 kB / 378.7 MB Notification: Performance of remove unused functions: time 0.001408/0.6539, allocations: 339.9 kB / 493.3 MB, free: 116 kB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (volume.medium.p,volume.medium.Xi[1],volume.medium.Xi[2],volume.medium.Xi[3],volume.medium.Xi[4],volume.medium.Xi[5],volume.medium.Xi[6],volume.medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002006/0.656, allocations: 434.9 kB / 493.7 MB, free: 15.68 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00341/0.6594, allocations: 1.866 MB / 495.6 MB, free: 13.72 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.057e-05/0.6594, allocations: 12.11 kB / 495.6 MB, free: 13.71 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001362/0.6608, allocations: 0.6817 MB / 496.3 MB, free: 13.02 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002813/0.6636, allocations: 482.4 kB / 496.7 MB, free: 12.55 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005633/0.6693, allocations: 2.607 MB / 499.4 MB, free: 9.902 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008957/0.6702, allocations: 0.9866 MB / 0.4886 GB, free: 8.891 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000498/0.6707, allocations: 95.41 kB / 0.4887 GB, free: 8.797 MB / 394.7 MB Notification: Performance of SimCode: time 1.529e-06/0.6707, allocations: 0 / 0.4887 GB, free: 8.797 MB / 394.7 MB Notification: Performance of Templates: time 0.04386/0.7146, allocations: 25.86 MB / 0.514 GB, free: 14.91 MB / 426.7 MB