Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Media.Examples.ReferenceAir.MoistAir1.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.ReferenceAir.MoistAir1,fileNamePrefix="Modelica_3_2_2_Modelica_Media_Examples_ReferenceAir_MoistAir1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.996/1.996, allocations: 194.9 MB / 211.1 MB, free: 8.562 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003527/0.0003529, allocations: 8 kB / 264 MB, free: 3.492 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3391/0.3395, allocations: 44.52 MB / 308.6 MB, free: 12.77 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.MoistAir1): time 0.07106/0.4106, allocations: 39.11 MB / 347.7 MB, free: 5.555 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.007969/0.4186, allocations: 3.818 MB / 351.5 MB, free: 1.73 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000442/0.4191, allocations: 4 kB / 351.5 MB, free: 1.727 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008953/0.4201, allocations: 195.1 kB / 351.7 MB, free: 1.535 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007477/0.4208, allocations: 251.3 kB / 351.9 MB, free: 1.289 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01916/0.44, allocations: 4.668 MB / 356.6 MB, free: 12.61 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001335/0.4414, allocations: 0.621 MB / 357.2 MB, free: 11.98 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000275/0.4417, allocations: 93.59 kB / 357.3 MB, free: 11.89 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01493/0.4566, allocations: 5.953 MB / 363.3 MB, free: 5.934 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006663/0.4573, allocations: 279.1 kB / 363.5 MB, free: 5.66 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001184/0.4575, allocations: 31.94 kB / 363.6 MB, free: 5.629 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02305/0.4805, allocations: 8.287 MB / 371.8 MB, free: 13.33 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003946/0.481, allocations: 175.5 kB / 372 MB, free: 13.16 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002864/0.4813, allocations: 129.5 kB / 372.1 MB, free: 13.03 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009375/0.4907, allocations: 3.422 MB / 375.6 MB, free: 9.598 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.4907, allocations: 0 / 375.6 MB, free: 9.598 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.865e-06/0.4907, allocations: 0 / 375.6 MB, free: 9.598 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.977e-06/0.4908, allocations: 0 / 375.6 MB, free: 9.598 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 107 * Number of variables: 107 Notification: Performance of Generate backend data structure: time 0.004356/0.4951, allocations: 1.225 MB / 376.8 MB, free: 8.324 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.945e-05/0.4952, allocations: 8.031 kB / 376.8 MB, free: 8.316 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001676/0.4954, allocations: 86.52 kB / 376.9 MB, free: 8.223 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004253/0.4958, allocations: 63.38 kB / 376.9 MB, free: 8.16 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006946/0.4965, allocations: 350.2 kB / 377.3 MB, free: 7.777 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.442e-05/0.4966, allocations: 29 kB / 377.3 MB, free: 7.75 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001171/0.4967, allocations: 44 kB / 377.4 MB, free: 7.707 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001889/0.4986, allocations: 0.5256 MB / 377.9 MB, free: 7.176 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.458e-05/0.4986, allocations: 0 / 377.9 MB, free: 7.176 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.476e-05/0.4987, allocations: 28 kB / 377.9 MB, free: 7.148 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.718e-05/0.4988, allocations: 8 kB / 377.9 MB, free: 7.141 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002038/0.5008, allocations: 0.6518 MB / 378.6 MB, free: 6.488 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02779/0.5286, allocations: 12.22 MB / 390.8 MB, free: 8.121 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002137/0.5308, allocations: 0.6543 MB / 391.4 MB, free: 7.426 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02268/0.5535, allocations: 10.76 MB / 402.2 MB, free: 10.6 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.346e-05/0.5536, allocations: 43 kB / 402.2 MB, free: 10.55 MB / 346.7 MB Notification: Performance of pre-optimization done (n=50): time 3.175e-06/0.5537, allocations: 0 / 402.2 MB, free: 10.55 MB / 346.7 MB Notification: Performance of matching and sorting (n=55): time 0.009123/0.5628, allocations: 2.05 MB / 404.3 MB, free: 8.398 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.328e-05/0.5629, allocations: 55.97 kB / 404.4 MB, free: 8.332 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005611/0.5635, allocations: 319 kB / 404.7 MB, free: 8.016 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000113/0.5636, allocations: 37.7 kB / 404.7 MB, free: 7.973 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001987/0.5638, allocations: 204.2 kB / 404.9 MB, free: 7.766 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002511/0.5641, allocations: 193.2 kB / 405.1 MB, free: 7.574 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.422e-05/0.5641, allocations: 12 kB / 405.1 MB, free: 7.562 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001837/0.5643, allocations: 350.8 kB / 405.4 MB, free: 7.211 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006466/0.565, allocations: 225 kB / 405.7 MB, free: 6.988 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001008/0.566, allocations: 306.5 kB / 406 MB, free: 6.66 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009854/0.567, allocations: 276.7 kB / 406.2 MB, free: 6.391 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.538e-06/0.567, allocations: 0 / 406.2 MB, free: 6.391 MB / 346.7 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002771/0.5698, allocations: 0.7014 MB / 406.9 MB, free: 5.672 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.848e-05/0.5699, allocations: 11.98 kB / 406.9 MB, free: 5.66 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.265e-05/0.5699, allocations: 4 kB / 406.9 MB, free: 5.656 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007309/0.5706, allocations: 102.5 kB / 407 MB, free: 5.547 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001002/0.5717, allocations: 115.9 kB / 407.2 MB, free: 5.434 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003677/0.5754, allocations: 3.302 MB / 410.5 MB, free: 1.84 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007563/0.5762, allocations: 40.11 kB / 410.5 MB, free: 1.801 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.506e-05/0.5763, allocations: 27.98 kB / 410.5 MB, free: 1.773 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (67): * Single equations (assignments): 64 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {2} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0004145/0.5767, allocations: 193.7 kB / 410.7 MB, free: 1.574 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004017/0.5771, allocations: 51.48 kB / 410.8 MB, free: 1.523 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002356/0.5795, allocations: 0.689 MB / 411.5 MB, free: 0.8281 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-05/0.5795, allocations: 8 kB / 411.5 MB, free: 0.8203 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.5796, allocations: 4 kB / 411.5 MB, free: 0.8164 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.2711/0.8506, allocations: 0.7753 MB / 412.2 MB, free: 97.64 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004203/0.8549, allocations: 1.369 MB / 413.6 MB, free: 97.31 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.468e-06/0.855, allocations: 1.438 kB / 413.6 MB, free: 97.31 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009656/0.8559, allocations: 112.2 kB / 413.7 MB, free: 97.31 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00152/0.8575, allocations: 155.2 kB / 413.9 MB, free: 97.3 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.253e-05/0.8576, allocations: 18.72 kB / 413.9 MB, free: 97.3 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004816/0.8581, allocations: 0.6481 MB / 414.5 MB, free: 96.72 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.909e-06/0.8581, allocations: 1.156 kB / 414.5 MB, free: 96.72 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002489/0.8606, allocations: 0.9555 MB / 415.5 MB, free: 96.3 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002074/0.8608, allocations: 125.4 kB / 415.6 MB, free: 96.21 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001133/0.861, allocations: 11.81 kB / 415.6 MB, free: 96.2 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008828/0.8619, allocations: 40.75 kB / 415.7 MB, free: 96.19 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001019/0.862, allocations: 42.56 kB / 415.7 MB, free: 96.19 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.403e-05/0.8621, allocations: 31.38 kB / 415.7 MB, free: 96.18 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003412/0.8624, allocations: 235 kB / 416 MB, free: 96.05 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.7e-07/0.8624, allocations: 0 / 416 MB, free: 96.05 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.004383/0.8668, allocations: 1.279 MB / 417.3 MB, free: 95.95 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (volume.medium.p,volume.medium.Xi[1],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 (59): * Single equations (assignments): 58 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {2} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01033/0.8772, allocations: 2.935 MB / 420.2 MB, free: 94.85 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002149/0.8794, allocations: 0.7997 MB / 421 MB, free: 94.43 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.229e-06/0.8794, allocations: 0 / 421 MB, free: 94.43 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008518/0.8803, allocations: 308 kB / 421.3 MB, free: 94.33 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002455/0.8828, allocations: 280.5 kB / 421.6 MB, free: 94.28 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00877/0.8916, allocations: 3.604 MB / 425.2 MB, free: 91.82 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003471/0.892, allocations: 0.8491 MB / 426 MB, free: 90.94 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0009058/0.8929, allocations: 132.4 kB / 426.1 MB, free: 90.82 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004117/0.8933, allocations: 159.4 kB / 426.3 MB, free: 90.67 MB / 346.7 MB Notification: Performance of SimCode: time 1.032e-06/0.8933, allocations: 4 kB / 426.3 MB, free: 90.67 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1657/1.059, allocations: 51.21 MB / 477.5 MB, free: 39.41 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002048/1.059, allocations: 246.8 kB / 477.8 MB, free: 39.11 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.516/6.575, allocations: 0 / 477.8 MB, free: 39.11 MB / 346.7 MB "" Variables in the reference:time,volume.medium.T,volume.medium.Xi[1],volume.medium.p Variables in the result:T_start,X_start[1],X_start[2],ambient.T_ambient,ambient.X_ambient[1],ambient.X_ambient[2],ambient.d_ambient,ambient.h_ambient,ambient.medium.MM,ambient.medium.R,ambient.medium.T,ambient.medium.T_degC,ambient.medium.X[1],ambient.medium.X[2],ambient.medium.X_air,ambient.medium.X_liquid,ambient.medium.X_sat,ambient.medium.X_steam,ambient.medium.Xi[1],ambient.medium.d,ambient.medium.h,ambient.medium.p,ambient.medium.p_bar,ambient.medium.p_steam_sat,ambient.medium.phi,ambient.medium.preferredMediumStates,ambient.medium.standardOrderComponents,ambient.medium.state.T,ambient.medium.state.X[1],ambient.medium.state.X[2],ambient.medium.state.p,ambient.medium.u,ambient.medium.x_sat,ambient.medium.x_water,ambient.p_ambient,ambient.port.H_flow,ambient.port.Xi[1],ambient.port.h,ambient.port.mXi_flow[1],ambient.port.m_flow,ambient.port.p,ambient.use_T_ambient,ambient.use_p_ambient,der(volume.U),der(volume.m),der(volume.mXi[1]),der(volume.medium.T),der(volume.medium.Xi[1]),der(volume.medium.d),der(volume.medium.p),der(volume.medium.u),fixedMassFlowRate.T_ambient,fixedMassFlowRate.X_ambient[1],fixedMassFlowRate.X_ambient[2],fixedMassFlowRate.h_ambient,fixedMassFlowRate.m_flow,fixedMassFlowRate.medium.MM,fixedMassFlowRate.medium.R,fixedMassFlowRate.medium.T,fixedMassFlowRate.medium.T_degC,fixedMassFlowRate.medium.X[1],fixedMassFlowRate.medium.X[2],fixedMassFlowRate.medium.X_air,fixedMassFlowRate.medium.X_liquid,fixedMassFlowRate.medium.X_sat,fixedMassFlowRate.medium.X_steam,fixedMassFlowRate.medium.Xi[1],fixedMassFlowRate.medium.d,fixedMassFlowRate.medium.h,fixedMassFlowRate.medium.p,fixedMassFlowRate.medium.p_bar,fixedMassFlowRate.medium.p_steam_sat,fixedMassFlowRate.medium.phi,fixedMassFlowRate.medium.preferredMediumStates,fixedMassFlowRate.medium.standardOrderComponents,fixedMassFlowRate.medium.state.T,fixedMassFlowRate.medium.state.X[1],fixedMassFlowRate.medium.state.X[2],fixedMassFlowRate.medium.state.p,fixedMassFlowRate.medium.u,fixedMassFlowRate.medium.x_sat,fixedMassFlowRate.medium.x_water,fixedMassFlowRate.port.H_flow,fixedMassFlowRate.port.Xi[1],fixedMassFlowRate.port.h,fixedMassFlowRate.port.mXi_flow[1],fixedMassFlowRate.port.m_flow,fixedMassFlowRate.port.p,fixedMassFlowRate.use_T_ambient,h_start,p_start,shortPipe.dp,shortPipe.dp_nominal,shortPipe.m_flow,shortPipe.m_flow_nominal,shortPipe.port_a.H_flow,shortPipe.port_a.Xi[1],shortPipe.port_a.h,shortPipe.port_a.mXi_flow[1],shortPipe.port_a.m_flow,shortPipe.port_a.p,shortPipe.port_b.H_flow,shortPipe.port_b.Xi[1],shortPipe.port_b.h,shortPipe.port_b.mXi_flow[1],shortPipe.port_b.m_flow,shortPipe.port_b.p,time,volume.T_start,volume.U,volume.V,volume.X_start[1],volume.X_start[2],volume.d_start,volume.h_start,volume.m,volume.mXi[1],volume.medium.MM,volume.medium.R,volume.medium.T,volume.medium.T_degC,volume.medium.X[1],volume.medium.X[2],volume.medium.X_air,volume.medium.X_liquid,volume.medium.X_sat,volume.medium.X_steam,volume.medium.Xi[1],volume.medium.d,volume.medium.h,volume.medium.p,volume.medium.p_bar,volume.medium.p_steam_sat,volume.medium.phi,volume.medium.preferredMediumStates,volume.medium.standardOrderComponents,volume.medium.state.T,volume.medium.state.X[1],volume.medium.state.X[2],volume.medium.state.p,volume.medium.u,volume.medium.x_sat,volume.medium.x_water,volume.p_start,volume.port.H_flow,volume.port.Xi[1],volume.port.h,volume.port.mXi_flow[1],volume.port.m_flow,volume.port.p,volume.use_T_start,volume.use_p_start