Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Media.Examples.IdealGasH2O.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.IdealGasH2O,fileNamePrefix="Modelica_3_1_cpp_Modelica_Media_Examples_IdealGasH2O",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.005/1.005, allocations: 111.2 MB / 119.1 MB, free: 11.18 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.01e-05/2.008e-05, allocations: 4 kB / 148.2 MB, free: 6.133 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05391/0.05396, allocations: 25.17 MB / 173.4 MB, free: 12.92 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8133/0.8673, allocations: 290.1 MB / 463.5 MB, free: 23.24 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002231/0.8675, allocations: 63.09 kB / 463.5 MB, free: 23.21 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.262/1.13, allocations: 25.45 MB / 489 MB, free: 70.64 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.595e-06/1.13, allocations: 0 / 489 MB, free: 70.64 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.058e-05/1.13, allocations: 2.125 kB / 489 MB, free: 70.64 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.001137/1.131, allocations: 437.8 kB / 489.4 MB, free: 70.3 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.002e-05/1.131, allocations: 12.56 kB / 489.4 MB, free: 70.3 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.814e-05/1.131, allocations: 7.562 kB / 489.4 MB, free: 70.29 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.456e-05/1.131, allocations: 168 kB / 489.6 MB, free: 70.1 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.643e-05/1.131, allocations: 5.406 kB / 489.6 MB, free: 70.1 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.929e-05/1.131, allocations: 5.75 kB / 489.6 MB, free: 70.1 MB / 234.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000346/1.131, allocations: 132.5 kB / 489.7 MB, free: 70.1 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002115/1.132, allocations: 98.7 kB / 489.8 MB, free: 70.06 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.594e-05/1.132, allocations: 5.016 kB / 489.8 MB, free: 70.06 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.611e-05/1.132, allocations: 3.062 kB / 489.8 MB, free: 70.06 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.223e-06/1.132, allocations: 2.641 kB / 489.8 MB, free: 70.06 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000778/1.133, allocations: 332.6 kB / 490.2 MB, free: 69.82 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001048/1.134, allocations: 139.9 kB / 490.3 MB, free: 69.8 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.249e-05/1.134, allocations: 34.16 kB / 490.3 MB, free: 69.79 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001243/1.135, allocations: 1.024 MB / 491.4 MB, free: 68.76 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.745e-05/1.135, allocations: 31.69 kB / 491.4 MB, free: 68.72 MB / 234.7 MB Notification: Performance of pre-optimization done (n=13): time 2.184e-06/1.135, allocations: 1.75 kB / 491.4 MB, free: 68.72 MB / 234.7 MB Notification: Performance of matching and sorting (n=17): time 0.007544/1.143, allocations: 1.067 MB / 492.5 MB, free: 68.67 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.616e-05/1.143, allocations: 57.06 kB / 492.5 MB, free: 68.61 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.163e-05/1.143, allocations: 98.47 kB / 492.6 MB, free: 68.52 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 2.095e-05/1.143, allocations: 25.7 kB / 492.6 MB, free: 68.48 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.71e-05/1.143, allocations: 163.9 kB / 492.8 MB, free: 68.33 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.26e-05/1.143, allocations: 58.83 kB / 492.8 MB, free: 68.3 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.763e-05/1.143, allocations: 0 / 492.8 MB, free: 68.3 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 6.93e-05/1.143, allocations: 326.3 kB / 493.2 MB, free: 67.98 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001024/1.143, allocations: 33.16 kB / 493.2 MB, free: 67.98 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001304/1.143, allocations: 73.95 kB / 493.3 MB, free: 67.94 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002993/1.146, allocations: 474.2 kB / 493.7 MB, free: 67.94 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/1.146, allocations: 0 / 493.7 MB, free: 67.94 MB / 234.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.003333/1.15, allocations: 0.5613 MB / 494.3 MB, free: 67.9 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.699e-05/1.15, allocations: 6.578 kB / 494.3 MB, free: 67.9 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.696e-06/1.15, allocations: 6.125 kB / 494.3 MB, free: 67.9 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.089e-05/1.15, allocations: 4.203 kB / 494.3 MB, free: 67.9 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004867/1.15, allocations: 46.69 kB / 494.4 MB, free: 67.9 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.227e-06/1.15, allocations: 3.078 kB / 494.4 MB, free: 67.9 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002635/1.151, allocations: 16.75 kB / 494.4 MB, free: 67.89 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.221e-05/1.151, allocations: 10.64 kB / 494.4 MB, free: 67.89 MB / 234.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.861e-05/1.151, allocations: 106.7 kB / 494.5 MB, free: 67.79 MB / 234.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003182/1.154, allocations: 0.5502 MB / 495 MB, free: 67.75 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.594e-05/1.154, allocations: 8.031 kB / 495 MB, free: 67.74 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003357/1.157, allocations: 0.5903 MB / 495.6 MB, free: 67.69 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.813e-06/1.157, allocations: 5.391 kB / 495.6 MB, free: 67.69 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.304e-06/1.157, allocations: 0.875 kB / 495.6 MB, free: 67.69 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.542e-06/1.157, allocations: 8.469 kB / 495.7 MB, free: 67.69 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003678/1.161, allocations: 0.8399 MB / 496.5 MB, free: 67.4 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.34e-06/1.161, allocations: 7.484 kB / 496.5 MB, free: 67.4 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000389/1.161, allocations: 42 kB / 496.5 MB, free: 67.4 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.496e-06/1.161, allocations: 1.984 kB / 496.5 MB, free: 67.4 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.497e-05/1.162, allocations: 8.859 kB / 496.5 MB, free: 67.4 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.288e-06/1.162, allocations: 1.375 kB / 496.6 MB, free: 67.4 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.698e-06/1.162, allocations: 1.375 kB / 496.6 MB, free: 67.4 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003241/1.165, allocations: 0.6673 MB / 497.2 MB, free: 67.21 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.785e-05/1.165, allocations: 86.52 kB / 497.3 MB, free: 67.11 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.293e-05/1.165, allocations: 1.719 kB / 497.3 MB, free: 67.11 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002843/1.165, allocations: 14.08 kB / 497.3 MB, free: 67.11 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.467e-05/1.165, allocations: 15.02 kB / 497.3 MB, free: 67.11 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.778e-05/1.165, allocations: 9.438 kB / 497.3 MB, free: 67.11 MB / 234.7 MB Notification: Performance of sorting global known variables: time 3.642e-05/1.165, allocations: 81.78 kB / 497.4 MB, free: 67.04 MB / 234.7 MB Notification: Performance of sort global known variables: time 4.01e-07/1.165, allocations: 0 / 497.4 MB, free: 67.04 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.0007365/1.166, allocations: 105.3 kB / 497.5 MB, free: 67.02 MB / 234.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 17 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004769/1.171, allocations: 1.926 MB / 499.5 MB, free: 66.13 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.0003448/1.171, allocations: 107.8 kB / 499.6 MB, free: 66.13 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 3.918e-06/1.171, allocations: 1.094 kB / 499.6 MB, free: 66.13 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001272/1.171, allocations: 54.94 kB / 499.6 MB, free: 66.13 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004897/1.172, allocations: 40.17 kB / 499.7 MB, free: 66.12 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008693/1.173, allocations: 221.9 kB / 499.9 MB, free: 65.96 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001668/1.173, allocations: 0.6953 MB / 0.4888 GB, free: 65.27 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001529/1.173, allocations: 34.97 kB / 0.4889 GB, free: 65.26 MB / 234.7 MB Notification: Performance of SimCode: time 7.21e-07/1.173, allocations: 0 / 0.4889 GB, free: 65.26 MB / 234.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.611/3.784, allocations: 5.875 MB / 0.4946 GB, free: 64.78 MB / 234.7 MB