Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGasFixedComposition",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.349/2.349, allocations: 235.1 MB / 243 MB, free: 9.578 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.367e-05/2.373e-05, allocations: 4 kB / 303.3 MB, free: 13.18 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3515/0.3516, allocations: 54.85 MB / 358.1 MB, free: 14.85 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.335/2.687, allocations: 0.8215 GB / 1.171 GB, free: 40.8 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002844/2.687, allocations: 103.8 kB / 1.171 GB, free: 40.74 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.084/6.771, allocations: 0.7257 GB / 1.897 GB, free: 71.35 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.266e-06/6.771, allocations: 0 / 1.897 GB, free: 71.35 MB / 490.7 MB Notification: Performance of Transformations before backend: time 9.361e-05/6.771, allocations: 24.66 kB / 1.897 GB, free: 71.35 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: 192 * Number of variables: 192 Notification: Performance of Generate backend data structure: time 0.005349/6.776, allocations: 1.372 MB / 1.898 GB, free: 70.2 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.098e-05/6.776, allocations: 12.02 kB / 1.898 GB, free: 70.19 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01345/6.79, allocations: 288.4 kB / 1.899 GB, free: 69.91 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003024/6.794, allocations: 0.6814 MB / 1.899 GB, free: 69.2 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001512/6.794, allocations: 97.33 kB / 1.899 GB, free: 69.09 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002114/6.795, allocations: 39.19 kB / 1.899 GB, free: 69.06 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002686/6.797, allocations: 0.8668 MB / 1.9 GB, free: 68.19 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003354/6.801, allocations: 1.11 MB / 1.901 GB, free: 67.01 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.332e-05/6.801, allocations: 0 / 1.901 GB, free: 67.01 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002359/6.801, allocations: 4 kB / 1.901 GB, free: 67 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001533/6.801, allocations: 72.53 kB / 1.901 GB, free: 66.94 MB / 490.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.01192/6.813, allocations: 4.731 MB / 1.906 GB, free: 61.98 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008349/6.814, allocations: 241.9 kB / 1.906 GB, free: 61.74 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003452/6.814, allocations: 121.2 kB / 1.906 GB, free: 61.62 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004115/6.815, allocations: 247.9 kB / 1.907 GB, free: 61.34 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.495e-05/6.815, allocations: 34.8 kB / 1.907 GB, free: 61.3 MB / 490.7 MB Notification: Performance of pre-optimization done (n=27): time 4.238e-06/6.815, allocations: 0 / 1.907 GB, free: 61.3 MB / 490.7 MB Notification: Performance of matching and sorting (n=32): time 0.01206/6.827, allocations: 1.508 MB / 1.908 GB, free: 59.7 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.666e-05/6.827, allocations: 134.8 kB / 1.908 GB, free: 59.54 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001612/6.829, allocations: 0.6912 MB / 1.909 GB, free: 58.84 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001221/6.829, allocations: 29.64 kB / 1.909 GB, free: 58.81 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005275/6.83, allocations: 0.6234 MB / 1.91 GB, free: 58.18 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001794/6.83, allocations: 126.3 kB / 1.91 GB, free: 58.05 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000113/6.83, allocations: 1.812 kB / 1.91 GB, free: 58.05 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001395/6.83, allocations: 354.8 kB / 1.91 GB, free: 57.7 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007879/6.831, allocations: 258.5 kB / 1.91 GB, free: 57.45 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001205/6.832, allocations: 0.8827 MB / 1.911 GB, free: 56.27 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001202/6.833, allocations: 451.3 kB / 1.912 GB, free: 55.84 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.505e-05/6.833, allocations: 8 kB / 1.912 GB, free: 55.83 MB / 490.7 MB Notification: Performance of matching and sorting (n=139) (initialization): time 0.00274/6.836, allocations: 1.098 MB / 1.913 GB, free: 54.72 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.679e-05/6.836, allocations: 23.11 kB / 1.913 GB, free: 54.7 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.949e-05/6.836, allocations: 20 kB / 1.913 GB, free: 54.68 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001803/6.838, allocations: 264.4 kB / 1.913 GB, free: 54.43 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001325/6.839, allocations: 239.5 kB / 1.913 GB, free: 54.19 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001308/6.841, allocations: 0.8879 MB / 1.914 GB, free: 53.28 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001583/6.842, allocations: 47.94 kB / 1.914 GB, free: 53.23 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002024/6.843, allocations: 91.98 kB / 1.914 GB, free: 53.14 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 99 * 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 (122): * Single equations (assignments): 121 * 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 16} Notification: Performance of prepare postOptimizeDAE: time 0.0002882/6.843, allocations: 168.3 kB / 1.914 GB, free: 52.97 MB / 490.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0009786/6.844, allocations: 361.5 kB / 1.915 GB, free: 52.61 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001596/6.844, allocations: 86.97 kB / 1.915 GB, free: 52.52 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001207/6.845, allocations: 429.8 kB / 1.915 GB, free: 52.09 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.805e-06/6.845, allocations: 4 kB / 1.915 GB, free: 52.08 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.165e-06/6.845, allocations: 3.953 kB / 1.915 GB, free: 52.08 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.332e-06/6.845, allocations: 0 / 1.915 GB, free: 52.08 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00235/6.848, allocations: 0.9953 MB / 1.916 GB, free: 51.04 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.671e-06/6.848, allocations: 0 / 1.916 GB, free: 51.04 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001814/6.85, allocations: 187.7 kB / 1.916 GB, free: 50.86 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001327/6.85, allocations: 28.88 kB / 1.916 GB, free: 50.82 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.431e-05/6.85, allocations: 6.516 kB / 1.916 GB, free: 50.82 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001932/6.852, allocations: 2.577 MB / 1.919 GB, free: 48.02 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.881e-06/6.852, allocations: 8.094 kB / 1.919 GB, free: 48.01 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00136/6.853, allocations: 0.638 MB / 1.92 GB, free: 47.35 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005041/6.854, allocations: 190.5 kB / 1.92 GB, free: 47.14 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002246/6.854, allocations: 11.92 kB / 1.92 GB, free: 47.13 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000847/6.855, allocations: 20.05 kB / 1.92 GB, free: 47.11 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001093/6.855, allocations: 19.97 kB / 1.92 GB, free: 47.09 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.88e-05/6.855, allocations: 19.98 kB / 1.92 GB, free: 47.07 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0008979/6.856, allocations: 0.4952 MB / 1.92 GB, free: 46.59 MB / 490.7 MB Notification: Performance of sort global known variables: time 7.91e-07/6.856, allocations: 0 / 1.92 GB, free: 46.59 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.002669/6.859, allocations: 471.7 kB / 1.921 GB, free: 46.12 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (32): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005984/6.865, allocations: 2.708 MB / 1.923 GB, free: 43.58 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.001938/6.867, allocations: 0.6357 MB / 1.924 GB, free: 42.95 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 6.703e-06/6.867, allocations: 0 / 1.924 GB, free: 42.95 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001291/6.868, allocations: 321.5 kB / 1.924 GB, free: 42.62 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002567/6.871, allocations: 314.4 kB / 1.925 GB, free: 42.33 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005289/6.876, allocations: 1.455 MB / 1.926 GB, free: 40.84 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008716/6.877, allocations: 1.044 MB / 1.927 GB, free: 39.77 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001292/6.878, allocations: 359.1 kB / 1.927 GB, free: 39.42 MB / 490.7 MB Notification: Performance of SimCode: time 1.263e-06/6.878, allocations: 0 / 1.927 GB, free: 39.42 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.407/10.29, allocations: 30.86 MB / 1.958 GB, free: 8.801 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition_res.mat does not exist to compare? outputFormat=mat