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_ph.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_ph,fileNamePrefix="Modelica_3_2_2_Modelica_Media_Examples_Tests_MediaTestModels_Water_WaterIF97_ph",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.173/2.173, allocations: 194.9 MB / 211.1 MB, free: 7.574 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005117/0.0005121, allocations: 15.98 kB / 264.1 MB, free: 2.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2929/0.2935, allocations: 44.49 MB / 308.6 MB, free: 12.64 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph): time 0.04654/0.3401, allocations: 27.11 MB / 335.7 MB, free: 1.465 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.02526/0.3654, allocations: 13.31 MB / 349 MB, free: 4.125 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004684/0.3659, allocations: 4 kB / 349 MB, free: 4.121 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001064/0.367, allocations: 231 kB / 349.2 MB, free: 3.895 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008422/0.3679, allocations: 255.2 kB / 349.5 MB, free: 3.645 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01899/0.3869, allocations: 4.515 MB / 354 MB, free: 15.12 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001396/0.3883, allocations: 0.6052 MB / 354.6 MB, free: 14.51 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002553/0.3886, allocations: 92.88 kB / 354.7 MB, free: 14.41 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009367/0.398, allocations: 3.259 MB / 357.9 MB, free: 11.15 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004184/0.3984, allocations: 195.3 kB / 358.1 MB, free: 10.96 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.411e-05/0.3985, allocations: 16 kB / 358.2 MB, free: 10.95 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01694/0.4154, allocations: 5.938 MB / 364.1 MB, free: 5 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002007/0.4157, allocations: 83.72 kB / 364.2 MB, free: 4.918 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001974/0.4159, allocations: 105.6 kB / 364.3 MB, free: 4.809 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006726/0.4226, allocations: 2.592 MB / 366.9 MB, free: 2.211 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.4227, allocations: 0 / 366.9 MB, free: 2.211 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.685e-06/0.4227, allocations: 0 / 366.9 MB, free: 2.211 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.516e-06/0.4227, allocations: 0 / 366.9 MB, free: 2.211 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.003381/0.4261, allocations: 0.9474 MB / 367.8 MB, free: 1.215 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.582e-05/0.4262, allocations: 12.03 kB / 367.8 MB, free: 1.203 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001272/0.4263, allocations: 66.53 kB / 367.9 MB, free: 1.129 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001864/0.4282, allocations: 167.3 kB / 368.1 MB, free: 0.9648 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005907/0.4288, allocations: 314.4 kB / 368.4 MB, free: 0.6172 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.905e-05/0.4289, allocations: 32.59 kB / 368.4 MB, free: 0.582 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.707e-05/0.429, allocations: 32 kB / 368.4 MB, free: 0.5508 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002312/0.4313, allocations: 0.562 MB / 369 MB, free: 15.95 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.556e-05/0.4314, allocations: 0 / 369 MB, free: 15.95 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.629e-05/0.4314, allocations: 20 kB / 369 MB, free: 15.93 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.617e-05/0.4315, allocations: 12 kB / 369 MB, free: 15.92 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002541/0.434, allocations: 0.5289 MB / 369.5 MB, free: 15.39 MB / 314.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.004834/0.4389, allocations: 2.62 MB / 372.2 MB, free: 12.52 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002543/0.4414, allocations: 478.3 kB / 372.6 MB, free: 12.04 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001291/0.4428, allocations: 0.568 MB / 373.2 MB, free: 11.38 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.887e-05/0.4428, allocations: 34.56 kB / 373.2 MB, free: 11.34 MB / 314.7 MB Notification: Performance of pre-optimization done (n=30): time 2.414e-06/0.4428, allocations: 3.938 kB / 373.2 MB, free: 11.33 MB / 314.7 MB Notification: Performance of matching and sorting (n=34): time 0.007832/0.4507, allocations: 1.604 MB / 374.8 MB, free: 9.652 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.671e-05/0.4507, allocations: 59.34 kB / 374.9 MB, free: 9.582 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003959/0.4511, allocations: 248.9 kB / 375.1 MB, free: 9.328 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.931e-05/0.4512, allocations: 37.69 kB / 375.2 MB, free: 9.285 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001986/0.4514, allocations: 180.2 kB / 375.4 MB, free: 9.105 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001296/0.4516, allocations: 110.4 kB / 375.5 MB, free: 8.996 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.927e-05/0.4516, allocations: 12 kB / 375.5 MB, free: 8.984 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001518/0.4518, allocations: 334.8 kB / 375.8 MB, free: 8.648 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007177/0.4525, allocations: 152.8 kB / 376 MB, free: 8.5 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007955/0.4533, allocations: 247.4 kB / 376.2 MB, free: 8.219 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000768/0.4541, allocations: 175.9 kB / 376.4 MB, free: 8.047 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.4541, allocations: 0 / 376.4 MB, free: 8.047 MB / 314.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.002241/0.4564, allocations: 0.5384 MB / 376.9 MB, free: 7.492 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.447e-05/0.4564, allocations: 8 kB / 376.9 MB, free: 7.484 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.125e-05/0.4564, allocations: 4 kB / 376.9 MB, free: 7.48 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008191/0.4573, allocations: 118.8 kB / 377 MB, free: 7.355 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006783/0.458, allocations: 95.88 kB / 377.1 MB, free: 7.262 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002791/0.4608, allocations: 2.424 MB / 379.5 MB, free: 4.652 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006434/0.4614, allocations: 52.3 kB / 379.6 MB, free: 4.602 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.954e-05/0.4615, allocations: 16 kB / 379.6 MB, free: 4.586 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 3 (volume.medium.phase,fixedMassFlowRate.medium.phase,ambient.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (44): * Single equations (assignments): 41 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002869/0.4618, allocations: 165.7 kB / 379.8 MB, free: 4.414 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.673e-05/0.4619, allocations: 35.61 kB / 379.8 MB, free: 4.379 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003348/0.4653, allocations: 1.367 MB / 381.2 MB, free: 2.996 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.986e-05/0.4653, allocations: 19.97 kB / 381.2 MB, free: 2.977 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.4654, allocations: 0 / 381.2 MB, free: 2.977 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002908/0.4683, allocations: 1.464 MB / 382.7 MB, free: 1.422 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004607/0.4729, allocations: 2.144 MB / 384.8 MB, free: 15.2 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.164e-06/0.4729, allocations: 0 / 384.8 MB, free: 15.2 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007879/0.4737, allocations: 107.9 kB / 384.9 MB, free: 15.09 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005806/0.4743, allocations: 72.78 kB / 385 MB, free: 15.02 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.513e-05/0.4744, allocations: 12 kB / 385 MB, free: 15.01 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005291/0.4749, allocations: 0.5914 MB / 385.6 MB, free: 14.39 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.4749, allocations: 0 / 385.6 MB, free: 14.39 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003145/0.4781, allocations: 1.313 MB / 386.9 MB, free: 13.05 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002245/0.4783, allocations: 172.1 kB / 387.1 MB, free: 12.87 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.319e-05/0.4784, allocations: 4 kB / 387.1 MB, free: 12.86 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005489/0.479, allocations: 43.94 kB / 387.1 MB, free: 12.82 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001326/0.4791, allocations: 39.94 kB / 387.2 MB, free: 12.78 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.675e-05/0.4792, allocations: 8 kB / 387.2 MB, free: 12.77 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000411/0.4796, allocations: 235 kB / 387.4 MB, free: 12.54 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.3e-07/0.4796, allocations: 0 / 387.4 MB, free: 12.54 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0033/0.4829, allocations: 0.8551 MB / 388.2 MB, free: 11.68 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.h) * Number of discrete variables: 11 ($cse1.phase,$cse1.region,$cse4.phase,$cse4.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,volume.medium.phase,fixedMassFlowRate.medium.phase,ambient.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * 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 Backend phase and start with SimCode phase: time 0.009617/0.4926, allocations: 2.732 MB / 391 MB, free: 8.926 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002286/0.4949, allocations: 0.6698 MB / 391.6 MB, free: 8.246 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.495, allocations: 0 / 391.6 MB, free: 8.246 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001186/0.4962, allocations: 420.7 kB / 392.1 MB, free: 7.832 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001828/0.498, allocations: 186.5 kB / 392.2 MB, free: 7.652 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009539/0.5076, allocations: 3.165 MB / 395.4 MB, free: 4.395 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005911/0.5082, allocations: 0.8882 MB / 396.3 MB, free: 3.477 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.000639/0.5088, allocations: 139.1 kB / 396.4 MB, free: 3.344 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003726/0.5092, allocations: 191.4 kB / 396.6 MB, free: 3.156 MB / 330.7 MB Notification: Performance of SimCode: time 1.292e-06/0.5093, allocations: 8 kB / 396.6 MB, free: 3.148 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3533/0.8625, allocations: 40.95 MB / 437.6 MB, free: 73.4 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002586/0.8629, allocations: 225.3 kB / 437.8 MB, free: 73.16 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.923/6.785, allocations: 0 / 437.8 MB, free: 73.16 MB / 346.7 MB "" Variables in the reference:time,volume.medium.h,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.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