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.TestOnly.IdealGasN2.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.TestOnly.IdealGasN2,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Media_Examples_TestOnly_IdealGasN2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.676/1.676, allocations: 171.1 MB / 186.7 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003767/0.0003766, allocations: 8 kB / 233.3 MB, free: 2.938 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08414/0.08455, allocations: 38.77 MB / 272.1 MB, free: 12.09 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.253/1.337, allocations: 441.4 MB / 0.6968 GB, free: 14.75 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002674/1.338, allocations: 71.97 kB / 0.6968 GB, free: 14.71 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3346/1.672, allocations: 29.85 MB / 0.726 GB, free: 126.6 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.464e-06/1.672, allocations: 0 / 0.726 GB, free: 126.6 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.499e-05/1.672, allocations: 1.25 kB / 0.726 GB, free: 126.6 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: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0005642/1.673, allocations: 402.2 kB / 0.7264 GB, free: 126.2 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.712e-05/1.673, allocations: 8.844 kB / 0.7264 GB, free: 126.2 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.137e-05/1.673, allocations: 45.2 kB / 0.7264 GB, free: 126.2 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002755/1.676, allocations: 179.5 kB / 0.7266 GB, free: 126.2 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00026/1.676, allocations: 208 kB / 0.7268 GB, free: 126 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.221e-05/1.676, allocations: 5.312 kB / 0.7268 GB, free: 126 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.985e-05/1.676, allocations: 10.95 kB / 0.7268 GB, free: 126 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007519/1.677, allocations: 222.7 kB / 0.727 GB, free: 125.9 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.318e-05/1.677, allocations: 0.9688 kB / 0.727 GB, free: 125.9 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.009e-05/1.677, allocations: 7.812 kB / 0.727 GB, free: 125.9 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.097e-06/1.677, allocations: 8.734 kB / 0.7271 GB, free: 125.9 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007418/1.678, allocations: 171.6 kB / 0.7272 GB, free: 125.9 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.001259/1.679, allocations: 0.5797 MB / 0.7278 GB, free: 125.4 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004975/1.68, allocations: 142.1 kB / 0.7279 GB, free: 125.4 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.463e-05/1.68, allocations: 2.219 kB / 0.7279 GB, free: 125.4 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.134e-05/1.68, allocations: 31.84 kB / 0.7279 GB, free: 125.4 MB / 362.7 MB Notification: Performance of pre-optimization done (n=14): time 2.044e-06/1.68, allocations: 0 / 0.7279 GB, free: 125.4 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: medium.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=19): time 0.008392/1.688, allocations: 1.304 MB / 0.7292 GB, free: 124.9 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.482e-05/1.688, allocations: 55.41 kB / 0.7293 GB, free: 124.8 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.764e-05/1.688, allocations: 111.7 kB / 0.7294 GB, free: 124.7 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.675e-05/1.688, allocations: 28.45 kB / 0.7294 GB, free: 124.7 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.031e-05/1.688, allocations: 166.9 kB / 0.7296 GB, free: 124.5 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.325e-05/1.689, allocations: 70.34 kB / 0.7296 GB, free: 124.5 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.606e-05/1.689, allocations: 7 kB / 0.7296 GB, free: 124.5 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.085e-05/1.689, allocations: 318 kB / 0.7299 GB, free: 124.2 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002323/1.689, allocations: 70.27 kB / 0.73 GB, free: 124.2 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002501/1.689, allocations: 102.3 kB / 0.7301 GB, free: 124.2 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002876/1.689, allocations: 90.14 kB / 0.7302 GB, free: 124.1 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/1.689, allocations: 0 / 0.7302 GB, free: 124.1 MB / 362.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0007158/1.69, allocations: 252.5 kB / 0.7304 GB, free: 124.1 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.079e-05/1.69, allocations: 9.031 kB / 0.7304 GB, free: 124.1 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/1.69, allocations: 1.219 kB / 0.7304 GB, free: 124.1 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002437/1.69, allocations: 50.86 kB / 0.7305 GB, free: 124.1 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000538/1.691, allocations: 52.66 kB / 0.7305 GB, free: 124.1 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004266/1.691, allocations: 0.5622 MB / 0.7311 GB, free: 123.6 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002765/1.692, allocations: 14.14 kB / 0.7311 GB, free: 123.6 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.524e-05/1.692, allocations: 25.52 kB / 0.7311 GB, free: 123.6 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (23): * Single equations (assignments): 22 * 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 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001444/1.692, allocations: 121.9 kB / 0.7312 GB, free: 123.4 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.409e-05/1.692, allocations: 10.16 kB / 0.7313 GB, free: 123.4 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001239/1.693, allocations: 349.2 kB / 0.7316 GB, free: 123.4 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.545e-06/1.693, allocations: 3.5 kB / 0.7316 GB, free: 123.4 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.827e-06/1.693, allocations: 3.953 kB / 0.7316 GB, free: 123.4 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.693e-06/1.693, allocations: 0 / 0.7316 GB, free: 123.4 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001283/1.695, allocations: 0.6095 MB / 0.7322 GB, free: 123 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.499e-06/1.695, allocations: 0 / 0.7322 GB, free: 123 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005621/1.695, allocations: 66.09 kB / 0.7323 GB, free: 123 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001069/1.695, allocations: 22.2 kB / 0.7323 GB, free: 123 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.863e-05/1.695, allocations: 14.33 kB / 0.7323 GB, free: 123 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008469/1.696, allocations: 1.273 MB / 0.7335 GB, free: 121.8 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/1.696, allocations: 3.906 kB / 0.7335 GB, free: 121.8 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009739/1.697, allocations: 463.2 kB / 0.734 GB, free: 121.5 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.67e-05/1.697, allocations: 92.45 kB / 0.7341 GB, free: 121.4 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.144e-05/1.697, allocations: 11.02 kB / 0.7341 GB, free: 121.4 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003344/1.698, allocations: 7.406 kB / 0.7341 GB, free: 121.4 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.843e-05/1.698, allocations: 21.53 kB / 0.7341 GB, free: 121.4 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.934e-05/1.698, allocations: 33.84 kB / 0.7341 GB, free: 121.4 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.911e-05/1.698, allocations: 84.86 kB / 0.7342 GB, free: 121.3 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.21e-07/1.698, allocations: 3.969 kB / 0.7342 GB, free: 121.3 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007264/1.699, allocations: 117.1 kB / 0.7343 GB, free: 121.3 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (medium.p,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 (21): * Single equations (assignments): 20 * 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.00216/1.701, allocations: 1.647 MB / 0.7359 GB, free: 120.3 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0007337/1.702, allocations: 197.3 kB / 0.7361 GB, free: 120.3 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.928e-06/1.702, allocations: 3.906 kB / 0.7361 GB, free: 120.3 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004415/1.702, allocations: 218.8 kB / 0.7363 GB, free: 120.1 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000548/1.703, allocations: 46.53 kB / 0.7364 GB, free: 120.1 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002453/1.705, allocations: 1.587 MB / 0.7379 GB, free: 119 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002069/1.705, allocations: 0.7121 MB / 0.7386 GB, free: 118.3 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004077/1.706, allocations: 71.77 kB / 0.7387 GB, free: 118.3 MB / 362.7 MB Notification: Performance of SimCode: time 1.032e-06/1.706, allocations: 0 / 0.7387 GB, free: 118.3 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.957/4.663, allocations: 6.925 MB / 0.7455 GB, free: 116.7 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2_res.mat does not exist to compare? outputFormat=mat