Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT.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.Water.WaterIF97_pT,fileNamePrefix="Modelica_3_2_2_Modelica_Media_Examples_Tests_MediaTestModels_Water_WaterIF97_pT",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.069/2.069, allocations: 194.9 MB / 211.1 MB, free: 8.762 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004973/0.0004973, allocations: 8 kB / 264.1 MB, free: 3.672 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2938/0.2944, allocations: 44.51 MB / 308.6 MB, free: 12.79 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT): time 0.04637/0.3408, allocations: 27.11 MB / 335.7 MB, free: 1.613 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.02545/0.3663, allocations: 13.3 MB / 349 MB, free: 4.285 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004893/0.3669, allocations: 4 kB / 349 MB, free: 4.281 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001042/0.3679, allocations: 238.9 kB / 349.2 MB, free: 4.047 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008333/0.3688, allocations: 251.3 kB / 349.5 MB, free: 3.801 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01907/0.3878, allocations: 4.515 MB / 354 MB, free: 15.27 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001395/0.3893, allocations: 0.6364 MB / 354.6 MB, free: 14.64 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002443/0.3895, allocations: 80.97 kB / 354.7 MB, free: 14.55 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009105/0.3986, allocations: 3.247 MB / 357.9 MB, free: 11.3 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004197/0.3991, allocations: 183.2 kB / 358.1 MB, free: 11.12 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.255e-05/0.3992, allocations: 16 kB / 358.1 MB, free: 11.11 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01103/0.4102, allocations: 3.406 MB / 361.5 MB, free: 7.695 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003042/0.4106, allocations: 79.72 kB / 361.6 MB, free: 7.617 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003638/0.411, allocations: 105.6 kB / 361.7 MB, free: 7.508 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006373/0.4174, allocations: 1.653 MB / 363.4 MB, free: 5.852 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.4175, allocations: 0 / 363.4 MB, free: 5.852 MB / 298.7 MB Notification: Performance of FrontEnd: time 4.338e-06/0.4175, allocations: 0 / 363.4 MB, free: 5.852 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.184e-05/0.4175, allocations: 0 / 363.4 MB, free: 5.852 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.003516/0.4211, allocations: 0.7446 MB / 364.1 MB, free: 5.059 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.617e-05/0.4212, allocations: 8.031 kB / 364.1 MB, free: 5.051 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001442/0.4213, allocations: 74.47 kB / 364.2 MB, free: 4.969 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001019/0.4223, allocations: 87.47 kB / 364.3 MB, free: 4.883 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005915/0.423, allocations: 294.4 kB / 364.6 MB, free: 4.555 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.162e-05/0.423, allocations: 28.66 kB / 364.6 MB, free: 4.523 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.464e-05/0.4231, allocations: 28 kB / 364.6 MB, free: 4.496 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001203/0.4243, allocations: 442.2 kB / 365.1 MB, free: 4.02 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.713e-05/0.4244, allocations: 7.984 kB / 365.1 MB, free: 4.012 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.025e-05/0.4244, allocations: 16 kB / 365.1 MB, free: 3.996 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.519e-05/0.4245, allocations: 8 kB / 365.1 MB, free: 3.988 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000957/0.4254, allocations: 317.8 kB / 365.4 MB, free: 3.68 MB / 298.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.00448/0.4299, allocations: 2.622 MB / 368 MB, free: 0.8125 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008476/0.4308, allocations: 250.5 kB / 368.3 MB, free: 0.5586 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05672/0.4876, allocations: 15.59 MB / 383.9 MB, free: 15.17 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.983e-05/0.4877, allocations: 50.52 kB / 383.9 MB, free: 15.11 MB / 330.7 MB Notification: Performance of pre-optimization done (n=25): time 2.364e-06/0.4877, allocations: 0 / 383.9 MB, free: 15.11 MB / 330.7 MB Notification: Performance of matching and sorting (n=30): time 0.006605/0.4943, allocations: 1.301 MB / 385.2 MB, free: 13.73 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.589e-05/0.4944, allocations: 55.41 kB / 385.3 MB, free: 13.66 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004134/0.4948, allocations: 254.6 kB / 385.5 MB, free: 13.4 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.28e-05/0.4949, allocations: 37.7 kB / 385.6 MB, free: 13.36 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001728/0.495, allocations: 203.8 kB / 385.8 MB, free: 13.16 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001194/0.4952, allocations: 106.5 kB / 385.9 MB, free: 13.05 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.827e-05/0.4952, allocations: 8 kB / 385.9 MB, free: 13.04 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001494/0.4954, allocations: 334.8 kB / 386.2 MB, free: 12.71 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002837/0.4957, allocations: 104.8 kB / 386.3 MB, free: 12.61 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003879/0.4961, allocations: 214.9 kB / 386.5 MB, free: 12.34 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003961/0.4965, allocations: 139.9 kB / 386.6 MB, free: 12.21 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.4965, allocations: 0 / 386.6 MB, free: 12.21 MB / 330.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001221/0.4977, allocations: 434.6 kB / 387.1 MB, free: 11.77 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.217e-05/0.4978, allocations: 8.484 kB / 387.1 MB, free: 11.76 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.104e-05/0.4978, allocations: 8 kB / 387.1 MB, free: 11.75 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005405/0.5032, allocations: 269.3 kB / 387.3 MB, free: 11.48 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005908/0.5038, allocations: 75.91 kB / 387.4 MB, free: 11.41 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002156/0.506, allocations: 1.891 MB / 389.3 MB, free: 9.363 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004613/0.5065, allocations: 24 kB / 389.3 MB, free: 9.34 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.722e-05/0.5066, allocations: 23.98 kB / 389.4 MB, free: 9.316 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 3 (ambient.medium.phase,fixedMassFlowRate.medium.phase,volume.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 43 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002799/0.5069, allocations: 161.8 kB / 389.5 MB, free: 9.148 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.026e-05/0.507, allocations: 35.62 kB / 389.6 MB, free: 9.113 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001864/0.5088, allocations: 0.9474 MB / 390.5 MB, free: 8.145 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.047e-05/0.5089, allocations: 11.98 kB / 390.5 MB, free: 8.133 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.997e-06/0.5089, allocations: 0 / 390.5 MB, free: 8.133 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001582/0.5105, allocations: 1.118 MB / 391.6 MB, free: 6.926 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003013/0.5136, allocations: 1.576 MB / 393.2 MB, free: 5.277 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.276e-06/0.5136, allocations: 7.875 kB / 393.2 MB, free: 5.27 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003942/0.514, allocations: 59.91 kB / 393.3 MB, free: 5.211 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00295/0.517, allocations: 299.8 kB / 393.6 MB, free: 4.918 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.69e-05/0.5171, allocations: 8 kB / 393.6 MB, free: 4.91 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008173/0.5179, allocations: 0.6617 MB / 394.2 MB, free: 4.223 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.265e-06/0.5179, allocations: 0 / 394.2 MB, free: 4.223 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001964/0.5199, allocations: 0.9604 MB / 395.2 MB, free: 3.242 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002252/0.5202, allocations: 132.5 kB / 395.3 MB, free: 3.094 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001168/0.5203, allocations: 8 kB / 395.3 MB, free: 3.086 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000383/0.5207, allocations: 19.92 kB / 395.3 MB, free: 3.066 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.199e-05/0.5208, allocations: 20.05 kB / 395.4 MB, free: 3.047 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.97e-05/0.5208, allocations: 15.92 kB / 395.4 MB, free: 3.031 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0004079/0.5213, allocations: 239.1 kB / 395.6 MB, free: 2.797 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.5213, allocations: 0 / 395.6 MB, free: 2.797 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002012/0.5233, allocations: 499.8 kB / 396.1 MB, free: 2.309 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (volume.medium.p,volume.medium.T) * Number of discrete variables: 4 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.005691/0.529, allocations: 1.926 MB / 398 MB, free: 360 kB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002108/0.5312, allocations: 0.5166 MB / 398.5 MB, free: 15.82 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.929e-06/0.5313, allocations: 0 / 398.5 MB, free: 15.82 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007131/0.532, allocations: 296.9 kB / 398.8 MB, free: 15.53 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00183/0.5338, allocations: 172.9 kB / 399 MB, free: 15.36 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006349/0.5402, allocations: 2.554 MB / 401.6 MB, free: 12.71 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005269/0.5408, allocations: 0.8284 MB / 402.4 MB, free: 11.86 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0005653/0.5414, allocations: 119 kB / 402.5 MB, free: 11.74 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000287/0.5417, allocations: 143.4 kB / 402.6 MB, free: 11.6 MB / 346.7 MB Notification: Performance of SimCode: time 1.252e-06/0.5417, allocations: 0 / 402.6 MB, free: 11.6 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.311/0.8527, allocations: 22.63 MB / 425.3 MB, free: 89.37 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002709/0.853, allocations: 225.3 kB / 425.5 MB, free: 89.13 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.343/4.196, allocations: 0 / 425.5 MB, free: 89.13 MB / 346.7 MB "" Variables in the reference:time,volume.medium.T,volume.medium.p Variables in the result:T_start,X_start[1],ambient.T_ambient,ambient.X_ambient[1],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.d,ambient.medium.h,ambient.medium.p,ambient.medium.p_bar,ambient.medium.phase,ambient.medium.preferredMediumStates,ambient.medium.sat.Tsat,ambient.medium.sat.psat,ambient.medium.standardOrderComponents,ambient.medium.state.T,ambient.medium.state.d,ambient.medium.state.h,ambient.medium.state.p,ambient.medium.state.phase,ambient.medium.u,ambient.p_ambient,ambient.port.H_flow,ambient.port.h,ambient.port.m_flow,ambient.port.p,ambient.use_T_ambient,ambient.use_p_ambient,der(volume.U),der(volume.m),der(volume.medium.T),der(volume.medium.d),der(volume.medium.h),der(volume.medium.p),der(volume.medium.u),fixedMassFlowRate.T_ambient,fixedMassFlowRate.X_ambient[1],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.d,fixedMassFlowRate.medium.h,fixedMassFlowRate.medium.p,fixedMassFlowRate.medium.p_bar,fixedMassFlowRate.medium.phase,fixedMassFlowRate.medium.preferredMediumStates,fixedMassFlowRate.medium.sat.Tsat,fixedMassFlowRate.medium.sat.psat,fixedMassFlowRate.medium.standardOrderComponents,fixedMassFlowRate.medium.state.T,fixedMassFlowRate.medium.state.d,fixedMassFlowRate.medium.state.h,fixedMassFlowRate.medium.state.p,fixedMassFlowRate.medium.state.phase,fixedMassFlowRate.medium.u,fixedMassFlowRate.port.H_flow,fixedMassFlowRate.port.h,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.h,shortPipe.port_a.m_flow,shortPipe.port_a.p,shortPipe.port_b.H_flow,shortPipe.port_b.h,shortPipe.port_b.m_flow,shortPipe.port_b.p,time,volume.T_start,volume.U,volume.V,volume.X_start[1],volume.d_start,volume.h_start,volume.m,volume.medium.MM,volume.medium.R,volume.medium.T,volume.medium.T_degC,volume.medium.X[1],volume.medium.d,volume.medium.h,volume.medium.p,volume.medium.p_bar,volume.medium.phase,volume.medium.preferredMediumStates,volume.medium.sat.Tsat,volume.medium.sat.psat,volume.medium.standardOrderComponents,volume.medium.state.T,volume.medium.state.d,volume.medium.state.h,volume.medium.state.p,volume.medium.state.phase,volume.medium.u,volume.p_start,volume.port.H_flow,volume.port.h,volume.port.m_flow,volume.port.p,volume.use_T_start,volume.use_p_start