Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Media_Examples_Tests_MediaTestModels_IdealGases_SimpleNaturalGas",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.004/2.004, allocations: 194.9 MB / 211.7 MB, free: 2.988 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005034/0.0005036, allocations: 12 kB / 264 MB, free: 13.46 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.1023, allocations: 44.51 MB / 308.6 MB, free: 0.875 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.253/2.356, allocations: 0.7077 GB / 1.009 GB, free: 109.4 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004965/2.356, allocations: 91.44 kB / 1.009 GB, free: 109.4 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.922/5.278, allocations: 0.5554 GB / 1.564 GB, free: 46.83 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.066e-06/5.278, allocations: 0 / 1.564 GB, free: 46.83 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.786e-05/5.278, allocations: 16 kB / 1.564 GB, free: 46.82 MB / 410.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.003168/5.281, allocations: 1.007 MB / 1.565 GB, free: 45.77 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.117e-05/5.281, allocations: 12.03 kB / 1.565 GB, free: 45.75 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003621/5.281, allocations: 122.5 kB / 1.566 GB, free: 45.62 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009875/5.282, allocations: 147.1 kB / 1.566 GB, free: 45.48 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001218/5.284, allocations: 493.2 kB / 1.566 GB, free: 44.96 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.361e-05/5.284, allocations: 54 kB / 1.566 GB, free: 44.91 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001743/5.284, allocations: 72 kB / 1.566 GB, free: 44.84 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002412/5.286, allocations: 0.9247 MB / 1.567 GB, free: 43.91 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.875e-05/5.286, allocations: 4 kB / 1.567 GB, free: 43.9 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001728/5.287, allocations: 32 kB / 1.567 GB, free: 43.87 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.863e-05/5.287, allocations: 16 kB / 1.567 GB, free: 43.86 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001983/5.289, allocations: 0.8472 MB / 1.568 GB, free: 43 MB / 410.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.00799/5.297, allocations: 3.422 MB / 1.571 GB, free: 39.31 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001265/5.298, allocations: 0.6408 MB / 1.572 GB, free: 38.66 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.56e-05/5.298, allocations: 16.55 kB / 1.572 GB, free: 38.64 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.524e-05/5.298, allocations: 55.02 kB / 1.572 GB, free: 38.58 MB / 410.7 MB Notification: Performance of pre-optimization done (n=59): time 3.146e-06/5.298, allocations: 4 kB / 1.572 GB, free: 38.58 MB / 410.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.02466/5.323, allocations: 6.166 MB / 1.578 GB, free: 32.02 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.679e-05/5.323, allocations: 68 kB / 1.578 GB, free: 31.93 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009591/5.324, allocations: 0.4931 MB / 1.579 GB, free: 31.44 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002692/5.324, allocations: 41.7 kB / 1.579 GB, free: 31.39 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001929/5.324, allocations: 319.1 kB / 1.579 GB, free: 31.07 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002799/5.325, allocations: 256.3 kB / 1.579 GB, free: 30.82 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.096e-05/5.325, allocations: 16 kB / 1.579 GB, free: 30.8 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.858e-05/5.325, allocations: 346.8 kB / 1.58 GB, free: 30.46 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001008/5.326, allocations: 437.7 kB / 1.58 GB, free: 30.03 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001078/5.327, allocations: 0.5077 MB / 1.581 GB, free: 29.5 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001152/5.328, allocations: 0.4949 MB / 1.581 GB, free: 29.01 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.971e-06/5.328, allocations: 0 / 1.581 GB, free: 29.01 MB / 410.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.002992/5.331, allocations: 1.296 MB / 1.582 GB, free: 27.69 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.851e-05/5.331, allocations: 4.156 kB / 1.582 GB, free: 27.68 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.227e-05/5.331, allocations: 4 kB / 1.582 GB, free: 27.68 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000919/5.332, allocations: 334.6 kB / 1.583 GB, free: 27.33 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001735/5.334, allocations: 183.8 kB / 1.583 GB, free: 27.15 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008894/5.343, allocations: 10.28 MB / 1.593 GB, free: 15.92 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001261/5.344, allocations: 71.88 kB / 1.593 GB, free: 15.85 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001391/5.344, allocations: 47.98 kB / 1.593 GB, free: 15.8 MB / 410.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.0006657/5.345, allocations: 277.6 kB / 1.593 GB, free: 15.52 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002526/5.345, allocations: 63.34 kB / 1.593 GB, free: 15.46 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0032/5.349, allocations: 1.283 MB / 1.595 GB, free: 14.14 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.39e-05/5.349, allocations: 8 kB / 1.595 GB, free: 14.14 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.106e-06/5.349, allocations: 4 kB / 1.595 GB, free: 14.13 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002529/5.351, allocations: 1.602 MB / 1.596 GB, free: 12.37 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00535/5.357, allocations: 2.253 MB / 1.598 GB, free: 10.05 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.808e-06/5.357, allocations: 4 kB / 1.598 GB, free: 10.05 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002154/5.359, allocations: 227.8 kB / 1.599 GB, free: 9.824 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000309/5.359, allocations: 64.75 kB / 1.599 GB, free: 9.758 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001869/5.359, allocations: 47.97 kB / 1.599 GB, free: 9.711 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001416/5.361, allocations: 1.444 MB / 1.6 GB, free: 8.133 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/5.361, allocations: 4.031 kB / 1.6 GB, free: 8.129 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003663/5.365, allocations: 1.63 MB / 1.602 GB, free: 6.453 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003474/5.365, allocations: 152.3 kB / 1.602 GB, free: 6.285 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002312/5.365, allocations: 27.98 kB / 1.602 GB, free: 6.258 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001428/5.367, allocations: 71.86 kB / 1.602 GB, free: 6.188 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001682/5.367, allocations: 60.53 kB / 1.602 GB, free: 6.129 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001631/5.367, allocations: 63.94 kB / 1.602 GB, free: 6.066 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0006888/5.368, allocations: 403.1 kB / 1.602 GB, free: 5.672 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.71e-07/5.368, allocations: 0 / 1.602 GB, free: 5.672 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002127/5.37, allocations: 423.8 kB / 1.603 GB, free: 5.258 MB / 410.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.006823/5.377, allocations: 3.497 MB / 1.606 GB, free: 1.754 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.2957/5.673, allocations: 1.853 MB / 1.608 GB, free: 64.34 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.857e-06/5.673, allocations: 3.25 kB / 1.608 GB, free: 64.34 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001604/5.674, allocations: 0.6833 MB / 1.609 GB, free: 64.24 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00418/5.678, allocations: 480.4 kB / 1.609 GB, free: 64.24 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0162/5.695, allocations: 6.901 MB / 1.616 GB, free: 62.24 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008044/5.696, allocations: 0.9863 MB / 1.617 GB, free: 61.54 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008728/5.696, allocations: 280.4 kB / 1.617 GB, free: 61.54 MB / 410.7 MB Notification: Performance of SimCode: time 1.533e-06/5.696, allocations: 1 kB / 1.617 GB, free: 61.54 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.054/9.751, allocations: 33.96 MB / 1.65 GB, free: 60.8 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas_res.mat does not exist to compare? outputFormat=mat