Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Media_Examples_Tests_MediaTestModels_IdealGases_SimpleNaturalGas",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.655/1.655, allocations: 171.1 MB / 186.7 MB, free: 1.141 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003943/0.0003944, allocations: 12 kB / 233.3 MB, free: 2.918 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0823/0.08274, allocations: 38.77 MB / 272.1 MB, free: 12.07 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.105/2.188, allocations: 0.6955 GB / 0.9612 GB, free: 23.65 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003063/2.188, allocations: 84.94 kB / 0.9613 GB, free: 23.6 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.724/4.913, allocations: 0.5514 GB / 1.513 GB, free: 29.09 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.535e-06/4.913, allocations: 4 kB / 1.513 GB, free: 29.09 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.046e-05/4.913, allocations: 12 kB / 1.513 GB, free: 29.07 MB / 362.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.003295/4.916, allocations: 1.009 MB / 1.514 GB, free: 28.02 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.266e-05/4.916, allocations: 12.02 kB / 1.514 GB, free: 28.01 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004763/4.916, allocations: 118.5 kB / 1.514 GB, free: 27.88 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001048/4.918, allocations: 143.1 kB / 1.514 GB, free: 27.74 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001077/4.919, allocations: 485.3 kB / 1.514 GB, free: 27.23 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.998e-05/4.919, allocations: 54 kB / 1.514 GB, free: 27.17 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001667/4.919, allocations: 75.91 kB / 1.515 GB, free: 27.1 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002235/4.921, allocations: 0.917 MB / 1.515 GB, free: 26.18 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.001e-05/4.921, allocations: 8 kB / 1.515 GB, free: 26.17 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001611/4.921, allocations: 35.98 kB / 1.515 GB, free: 26.13 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.733e-05/4.921, allocations: 16 kB / 1.515 GB, free: 26.12 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001873/4.923, allocations: 0.8433 MB / 1.516 GB, free: 25.27 MB / 362.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.006974/4.93, allocations: 3.046 MB / 1.519 GB, free: 22.02 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001228/4.932, allocations: 0.6463 MB / 1.52 GB, free: 21.37 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.657e-05/4.932, allocations: 12.55 kB / 1.52 GB, free: 21.36 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.155e-05/4.932, allocations: 47.11 kB / 1.52 GB, free: 21.3 MB / 362.7 MB Notification: Performance of pre-optimization done (n=59): time 2.835e-06/4.932, allocations: 7.938 kB / 1.52 GB, free: 21.29 MB / 362.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.02363/4.955, allocations: 6.123 MB / 1.526 GB, free: 14.78 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.295e-05/4.955, allocations: 60 kB / 1.526 GB, free: 14.71 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008144/4.956, allocations: 0.501 MB / 1.526 GB, free: 14.21 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001713/4.956, allocations: 41.7 kB / 1.527 GB, free: 14.16 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001686/4.957, allocations: 315 kB / 1.527 GB, free: 13.85 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002425/4.957, allocations: 256.4 kB / 1.527 GB, free: 13.6 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.876e-05/4.957, allocations: 12 kB / 1.527 GB, free: 13.59 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.154e-05/4.957, allocations: 338.8 kB / 1.527 GB, free: 13.25 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009268/4.958, allocations: 437.8 kB / 1.528 GB, free: 12.82 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009761/4.959, allocations: 0.5115 MB / 1.528 GB, free: 12.29 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001077/4.96, allocations: 0.4988 MB / 1.529 GB, free: 11.79 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/4.96, allocations: 0 / 1.529 GB, free: 11.79 MB / 362.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.002932/4.963, allocations: 1.308 MB / 1.53 GB, free: 10.45 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.863e-05/4.963, allocations: 8 kB / 1.53 GB, free: 10.45 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.241e-05/4.963, allocations: 0 / 1.53 GB, free: 10.45 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008871/4.964, allocations: 334.6 kB / 1.53 GB, free: 10.09 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001703/4.966, allocations: 175.8 kB / 1.531 GB, free: 9.922 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2615/5.227, allocations: 10.27 MB / 1.541 GB, free: 47 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001297/5.229, allocations: 83.53 kB / 1.541 GB, free: 47 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001479/5.229, allocations: 42.41 kB / 1.541 GB, free: 47 MB / 362.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.0007155/5.23, allocations: 277.4 kB / 1.541 GB, free: 46.89 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002646/5.23, allocations: 60.97 kB / 1.541 GB, free: 46.89 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003536/5.233, allocations: 1.277 MB / 1.542 GB, free: 46.77 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.762e-05/5.233, allocations: 7.812 kB / 1.542 GB, free: 46.77 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.766e-06/5.233, allocations: 4.875 kB / 1.542 GB, free: 46.77 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002831/5.236, allocations: 1.601 MB / 1.544 GB, free: 45.94 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005315/5.242, allocations: 2.265 MB / 1.546 GB, free: 45.6 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.468e-06/5.242, allocations: 4.469 kB / 1.546 GB, free: 45.6 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002101/5.244, allocations: 222.5 kB / 1.546 GB, free: 45.6 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002907/5.244, allocations: 69.31 kB / 1.546 GB, free: 45.59 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001418/5.244, allocations: 45.17 kB / 1.546 GB, free: 45.59 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001405/5.246, allocations: 1.447 MB / 1.548 GB, free: 44.35 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/5.246, allocations: 0 / 1.548 GB, free: 44.35 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003676/5.249, allocations: 1.627 MB / 1.549 GB, free: 44.12 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003565/5.25, allocations: 145 kB / 1.55 GB, free: 44.03 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002324/5.25, allocations: 30.61 kB / 1.55 GB, free: 44.03 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00146/5.251, allocations: 78.41 kB / 1.55 GB, free: 44.02 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000188/5.252, allocations: 58.34 kB / 1.55 GB, free: 44.02 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001748/5.252, allocations: 60 kB / 1.55 GB, free: 44.02 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0007349/5.253, allocations: 405.3 kB / 1.55 GB, free: 43.94 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.91e-07/5.253, allocations: 1.75 kB / 1.55 GB, free: 43.94 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002365/5.255, allocations: 413.3 kB / 1.551 GB, free: 43.94 MB / 362.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.007668/5.263, allocations: 3.5 MB / 1.554 GB, free: 42.88 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003835/5.267, allocations: 1.859 MB / 1.556 GB, free: 42.1 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.032e-05/5.267, allocations: 5.281 kB / 1.556 GB, free: 42.1 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001619/5.268, allocations: 0.683 MB / 1.556 GB, free: 41.98 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004352/5.273, allocations: 486.5 kB / 1.557 GB, free: 41.98 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01452/5.287, allocations: 6.883 MB / 1.564 GB, free: 39.93 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001528/5.289, allocations: 0.992 MB / 1.565 GB, free: 55.23 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008715/5.29, allocations: 278.9 kB / 1.565 GB, free: 55.22 MB / 378.7 MB Notification: Performance of SimCode: time 1.322e-06/5.29, allocations: 3.188 kB / 1.565 GB, free: 55.22 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.593/8.882, allocations: 33.89 MB / 1.598 GB, free: 54.48 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas_res.mat does not exist to compare? outputFormat=mat