Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.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) 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.1_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas") Notification: Performance of loadModel(Modelica): time 1.546/1.546, allocations: 171.2 MB / 186.7 MB, free: 1.035 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003555/0.0003557, allocations: 15.98 kB / 233.2 MB, free: 3.031 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06785/0.06823, allocations: 38.77 MB / 271.9 MB, free: 12.18 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.3728/0.4411, allocations: 138.6 MB / 410.5 MB, free: 4.574 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.00402/0.4452, allocations: 2.349 MB / 412.9 MB, free: 2.223 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002836/0.4455, allocations: 4 kB / 412.9 MB, free: 2.219 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006515/0.4462, allocations: 179.2 kB / 413.1 MB, free: 2.043 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005948/0.4468, allocations: 231.3 kB / 413.3 MB, free: 1.816 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001486/0.4483, allocations: 415 kB / 413.7 MB, free: 1.41 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008727/0.4492, allocations: 0.5857 MB / 414.3 MB, free: 0.8203 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003612/0.4496, allocations: 204.8 kB / 414.5 MB, free: 0.625 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001951/0.4515, allocations: 0.8029 MB / 415.3 MB, free: 15.82 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004322/0.452, allocations: 255.3 kB / 415.5 MB, free: 15.57 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001067/0.4521, allocations: 32 kB / 415.6 MB, free: 15.54 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001183/0.4533, allocations: 415.5 kB / 416 MB, free: 15.13 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004495/0.4538, allocations: 367.2 kB / 416.3 MB, free: 14.77 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002682/0.454, allocations: 193.3 kB / 416.5 MB, free: 14.58 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001773/0.4558, allocations: 1.219 MB / 417.7 MB, free: 13.36 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.837e-06/0.4559, allocations: 0 / 417.7 MB, free: 13.36 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.196e-06/0.4559, allocations: 0 / 417.7 MB, free: 13.36 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.149e-05/0.4559, allocations: 0 / 417.7 MB, free: 13.36 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.001804/0.4577, allocations: 0.8925 MB / 418.6 MB, free: 12.42 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.956e-05/0.4578, allocations: 15.97 kB / 418.6 MB, free: 12.4 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008806/0.4586, allocations: 159 kB / 418.8 MB, free: 12.25 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000927/0.4596, allocations: 469 kB / 419.3 MB, free: 11.75 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.693e-05/0.4597, allocations: 45.31 kB / 419.3 MB, free: 11.7 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001583/0.4598, allocations: 71.91 kB / 419.4 MB, free: 11.63 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002065/0.4619, allocations: 0.9512 MB / 420.3 MB, free: 10.67 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.003e-05/0.462, allocations: 0 / 420.3 MB, free: 10.67 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001321/0.4621, allocations: 35.98 kB / 420.4 MB, free: 10.64 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.029e-05/0.4622, allocations: 41.98 kB / 420.4 MB, free: 10.59 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001849/0.4641, allocations: 0.8667 MB / 421.3 MB, free: 9.73 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.006281/0.4704, allocations: 3.05 MB / 424.3 MB, free: 6.473 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001257/0.4716, allocations: 0.6352 MB / 425 MB, free: 5.828 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.921e-05/0.4717, allocations: 16.55 kB / 425 MB, free: 5.812 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.462e-05/0.4718, allocations: 51.11 kB / 425 MB, free: 5.754 MB / 346.7 MB Notification: Performance of pre-optimization done (n=59): time 4.32e-06/0.4718, allocations: 0 / 425 MB, free: 5.754 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.1944/0.6662, allocations: 6.138 MB / 431.2 MB, free: 126.8 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.143e-05/0.6663, allocations: 60.83 kB / 431.2 MB, free: 126.7 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008912/0.6672, allocations: 0.541 MB / 431.8 MB, free: 126.6 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001011/0.6673, allocations: 43.38 kB / 431.8 MB, free: 126.6 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001708/0.6675, allocations: 318.7 kB / 432.1 MB, free: 126.4 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000198/0.6677, allocations: 250.9 kB / 432.4 MB, free: 126.2 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.333e-05/0.6677, allocations: 14.31 kB / 432.4 MB, free: 126.2 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 7.809e-05/0.6678, allocations: 338.6 kB / 432.7 MB, free: 125.9 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008727/0.6687, allocations: 442.7 kB / 433.1 MB, free: 125.8 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009371/0.6697, allocations: 0.5172 MB / 433.6 MB, free: 125.6 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001037/0.6707, allocations: 0.4977 MB / 434.1 MB, free: 125.4 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.668e-06/0.6707, allocations: 0.5312 kB / 434.1 MB, free: 125.4 MB / 346.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.002719/0.6735, allocations: 1.313 MB / 435.5 MB, free: 124.8 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.162e-05/0.6735, allocations: 6.328 kB / 435.5 MB, free: 124.8 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.066e-05/0.6735, allocations: 1.375 kB / 435.5 MB, free: 124.8 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007759/0.6743, allocations: 338 kB / 435.8 MB, free: 124.7 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001136/0.6755, allocations: 181.7 kB / 436 MB, free: 124.7 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007995/0.6835, allocations: 10.3 MB / 446.3 MB, free: 114.7 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008758/0.6844, allocations: 87.06 kB / 446.4 MB, free: 114.7 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001199/0.6846, allocations: 46.69 kB / 446.4 MB, free: 114.7 MB / 346.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.000565/0.6851, allocations: 273.6 kB / 446.7 MB, free: 114.5 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001929/0.6854, allocations: 61.97 kB / 446.7 MB, free: 114.5 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002767/0.6881, allocations: 1.283 MB / 448 MB, free: 113.9 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.344e-05/0.6882, allocations: 8.906 kB / 448 MB, free: 113.9 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.6882, allocations: 0 / 448 MB, free: 113.9 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002174/0.6904, allocations: 1.61 MB / 449.6 MB, free: 112.7 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004598/0.695, allocations: 2.276 MB / 451.9 MB, free: 111.7 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.067e-06/0.695, allocations: 1.125 kB / 451.9 MB, free: 111.7 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00163/0.6967, allocations: 216.8 kB / 452.1 MB, free: 111.7 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000251/0.6969, allocations: 67.62 kB / 452.2 MB, free: 111.6 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001043/0.6971, allocations: 41.42 kB / 452.2 MB, free: 111.6 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001309/0.6984, allocations: 1.443 MB / 453.7 MB, free: 110.2 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.877e-06/0.6984, allocations: 5.141 kB / 453.7 MB, free: 110.2 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003044/0.7015, allocations: 1.602 MB / 455.3 MB, free: 109.2 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002717/0.7018, allocations: 139.9 kB / 455.4 MB, free: 109.1 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001575/0.702, allocations: 38.25 kB / 455.5 MB, free: 109.1 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009902/0.703, allocations: 74.25 kB / 455.5 MB, free: 109.1 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001241/0.7031, allocations: 57.88 kB / 455.6 MB, free: 109 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001418/0.7033, allocations: 59.55 kB / 455.6 MB, free: 109 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0005603/0.7038, allocations: 409.1 kB / 456 MB, free: 108.8 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.38e-07/0.7038, allocations: 3.812 kB / 456 MB, free: 108.8 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001391/0.7052, allocations: 332.2 kB / 456.4 MB, free: 108.7 MB / 346.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.001987/0.7073, allocations: 430.5 kB / 456.8 MB, free: 108.6 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002847/0.7101, allocations: 1.865 MB / 458.7 MB, free: 107.3 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 8.157e-06/0.7102, allocations: 10.84 kB / 458.7 MB, free: 107.2 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001125/0.7113, allocations: 0.6774 MB / 459.3 MB, free: 106.8 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002443/0.7138, allocations: 481 kB / 459.8 MB, free: 106.3 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004479/0.7183, allocations: 2.62 MB / 462.4 MB, free: 103.7 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005378/0.7188, allocations: 0.9827 MB / 463.4 MB, free: 102.6 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004669/0.7193, allocations: 91.41 kB / 463.5 MB, free: 102.6 MB / 346.7 MB Notification: Performance of SimCode: time 1.591e-06/0.7193, allocations: 4 kB / 463.5 MB, free: 102.5 MB / 346.7 MB Notification: Performance of Templates: time 0.03307/0.7524, allocations: 25.85 MB / 489.4 MB, free: 76.68 MB / 346.7 MB