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.R134a.R134a2.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: translateModel(Modelica.Media.Examples.R134a.R134a2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.h|volume.medium.p|volume1.medium.h|volume1.medium.p",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Media.Examples.R134a.R134a2") Notification: Performance of loadModel(Modelica): time 1.707/1.707, allocations: 171.2 MB / 187.3 MB, free: 1.125 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003405/0.0003405, allocations: 8 kB / 233.8 MB, free: 3.082 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08359/0.08395, allocations: 38.77 MB / 272.5 MB, free: 12.23 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 16.17/16.25, allocations: 5.484 GB / 5.75 GB, free: 93.95 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002286/16.26, allocations: 76.95 kB / 5.75 GB, free: 93.95 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.83/22.09, allocations: 0.9871 GB / 6.737 GB, free: 29.09 MB / 475.2 MB Notification: Performance of FrontEnd: time 2.424e-06/22.09, allocations: 0 / 6.737 GB, free: 29.09 MB / 475.2 MB Notification: Performance of Transformations before backend: time 3.34e-05/22.09, allocations: 12 kB / 6.737 GB, free: 29.08 MB / 475.2 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 116 * Number of variables: 116 Notification: Performance of Generate backend data structure: time 0.03396/22.12, allocations: 1.592 MB / 6.739 GB, free: 27.78 MB / 475.2 MB Notification: Performance of prepare preOptimizeDAE: time 4.406e-05/22.12, allocations: 12.03 kB / 6.739 GB, free: 27.77 MB / 475.2 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009535/22.12, allocations: 94.86 kB / 6.739 GB, free: 27.69 MB / 475.2 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006836/22.12, allocations: 381.3 kB / 6.739 GB, free: 27.41 MB / 475.2 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.902e-05/22.12, allocations: 35.69 kB / 6.739 GB, free: 27.39 MB / 475.2 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.373e-05/22.12, allocations: 45.38 kB / 6.74 GB, free: 27.36 MB / 475.2 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001594/22.12, allocations: 0.6138 MB / 6.74 GB, free: 26.98 MB / 475.2 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.313e-05/22.12, allocations: 11.84 kB / 6.74 GB, free: 26.96 MB / 475.2 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.113e-05/22.12, allocations: 22.19 kB / 6.74 GB, free: 26.96 MB / 475.2 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.511e-05/22.12, allocations: 12 kB / 6.74 GB, free: 26.95 MB / 475.2 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001442/22.12, allocations: 0.5235 MB / 6.741 GB, free: 26.66 MB / 475.2 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.009666/22.13, allocations: 6.083 MB / 6.747 GB, free: 21.72 MB / 475.2 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001358/22.14, allocations: 429.5 kB / 6.747 GB, free: 21.48 MB / 475.2 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004499/22.14, allocations: 2.834 MB / 6.75 GB, free: 18.45 MB / 475.2 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.153e-05/22.14, allocations: 49.45 kB / 6.75 GB, free: 18.41 MB / 475.2 MB Notification: Performance of pre-optimization done (n=46): time 3.727e-06/22.14, allocations: 1.594 kB / 6.75 GB, free: 18.41 MB / 475.2 MB Notification: Performance of matching and sorting (n=54): time 0.0134/22.15, allocations: 2.02 MB / 6.752 GB, free: 17.02 MB / 475.2 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.376e-05/22.15, allocations: 59.84 kB / 6.752 GB, free: 16.95 MB / 475.2 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004234/22.15, allocations: 302.9 kB / 6.752 GB, free: 16.73 MB / 475.2 MB Notification: Performance of collectPreVariables (initialization): time 5.948e-05/22.15, allocations: 32.77 kB / 6.752 GB, free: 16.7 MB / 475.2 MB Notification: Performance of collectInitialEqns (initialization): time 0.000127/22.15, allocations: 287.8 kB / 6.752 GB, free: 16.48 MB / 475.2 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001555/22.15, allocations: 193.5 kB / 6.753 GB, free: 16.37 MB / 475.2 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.286e-05/22.15, allocations: 14.38 kB / 6.753 GB, free: 16.36 MB / 475.2 MB Notification: Performance of setup shared object (initialization): time 7.888e-05/22.15, allocations: 340.9 kB / 6.753 GB, free: 16.04 MB / 475.2 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004346/22.16, allocations: 174.8 kB / 6.753 GB, free: 15.95 MB / 475.2 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005421/22.16, allocations: 330.9 kB / 6.753 GB, free: 15.67 MB / 475.2 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005498/22.16, allocations: 234.3 kB / 6.754 GB, free: 15.55 MB / 475.2 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/22.16, allocations: 0 / 6.754 GB, free: 15.55 MB / 475.2 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001874/22.16, allocations: 0.65 MB / 6.754 GB, free: 15.13 MB / 475.2 MB Notification: Performance of prepare postOptimizeDAE: time 2.219e-05/22.16, allocations: 8 kB / 6.754 GB, free: 15.12 MB / 475.2 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.283e-05/22.16, allocations: 4 kB / 6.754 GB, free: 15.12 MB / 475.2 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02412/22.18, allocations: 0.5451 MB / 6.755 GB, free: 14.81 MB / 475.2 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001172/22.18, allocations: 148 kB / 6.755 GB, free: 14.7 MB / 475.2 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002192/22.19, allocations: 2.999 MB / 6.758 GB, free: 11.65 MB / 475.2 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000795/22.19, allocations: 49.39 kB / 6.758 GB, free: 11.62 MB / 475.2 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.805e-05/22.19, allocations: 29.92 kB / 6.758 GB, free: 11.6 MB / 475.2 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 4 (volume1.medium.phase,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 (73): * Single equations (assignments): 69 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 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.0003914/22.19, allocations: 188.9 kB / 6.758 GB, free: 11.45 MB / 475.2 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001554/22.19, allocations: 39.53 kB / 6.758 GB, free: 11.41 MB / 475.2 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002321/22.19, allocations: 1.069 MB / 6.759 GB, free: 10.8 MB / 475.2 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.045e-05/22.19, allocations: 8 kB / 6.759 GB, free: 10.8 MB / 475.2 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/22.19, allocations: 3.953 kB / 6.759 GB, free: 10.79 MB / 475.2 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001575/22.19, allocations: 1.092 MB / 6.76 GB, free: 9.996 MB / 475.2 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003101/22.19, allocations: 1.728 MB / 6.762 GB, free: 9.027 MB / 475.2 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.008e-05/22.19, allocations: 0 / 6.762 GB, free: 9.027 MB / 475.2 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007196/22.2, allocations: 100.2 kB / 6.762 GB, free: 8.945 MB / 475.2 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006488/22.2, allocations: 393.4 kB / 6.763 GB, free: 8.766 MB / 475.2 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001153/22.2, allocations: 18.23 kB / 6.763 GB, free: 8.758 MB / 475.2 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006991/22.2, allocations: 1.15 MB / 6.764 GB, free: 7.637 MB / 475.2 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/22.2, allocations: 3.953 kB / 6.764 GB, free: 7.633 MB / 475.2 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002109/22.2, allocations: 1.12 MB / 6.765 GB, free: 6.938 MB / 475.2 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002142/22.21, allocations: 142.8 kB / 6.765 GB, free: 6.801 MB / 475.2 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001161/22.21, allocations: 14.69 kB / 6.765 GB, free: 6.793 MB / 475.2 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005319/22.21, allocations: 26.7 kB / 6.765 GB, free: 6.781 MB / 475.2 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.702e-05/22.21, allocations: 42.08 kB / 6.765 GB, free: 6.758 MB / 475.2 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.96e-05/22.21, allocations: 22.38 kB / 6.765 GB, free: 6.742 MB / 475.2 MB Notification: Performance of sorting global known variables: time 0.0003685/22.21, allocations: 250.5 kB / 6.765 GB, free: 6.574 MB / 475.2 MB Notification: Performance of sort global known variables: time 4.21e-07/22.21, allocations: 0 / 6.765 GB, free: 6.574 MB / 475.2 MB Notification: Performance of remove unused functions: time 0.0203/22.23, allocations: 1.11 MB / 6.766 GB, free: 5.668 MB / 475.2 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (volume.medium.p,volume.medium.h,volume1.medium.p,volume1.medium.h) * Number of discrete variables: 6 ($cse1.phase,$cse2,$cse5.phase,$cse6,$cse7.phase,$cse8) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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 {1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.2623/22.49, allocations: 23.73 MB / 6.789 GB, free: 14.63 MB / 0.4953 GB Notification: Performance of simCode: created initialization part: time 0.002234/22.49, allocations: 0.6993 MB / 6.79 GB, free: 14.16 MB / 0.4953 GB Notification: Performance of simCode: created event and clocks part: time 5.671e-06/22.49, allocations: 0 / 6.79 GB, free: 14.16 MB / 0.4953 GB Notification: Performance of simCode: created simulation system equations: time 0.0009927/22.49, allocations: 361.7 kB / 6.791 GB, free: 13.96 MB / 0.4953 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002414/22.49, allocations: 247.8 kB / 6.791 GB, free: 13.82 MB / 0.4953 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0038/22.5, allocations: 1.641 MB / 6.792 GB, free: 12.48 MB / 0.4953 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005662/22.5, allocations: 0.8766 MB / 6.793 GB, free: 11.65 MB / 0.4953 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003004/22.5, allocations: 58.95 kB / 6.793 GB, free: 11.6 MB / 0.4953 GB Notification: Performance of SimCode: time 1.253e-06/22.5, allocations: 0 / 6.793 GB, free: 11.6 MB / 0.4953 GB Notification: Performance of Templates: time 0.4881/22.99, allocations: 46.98 MB / 6.839 GB, free: 66.03 MB / 0.4953 GB "Error: Could not read variable volume.medium.state.der(d) in file Modelica_3.2.1_cpp_Modelica.Media.Examples.R134a.R134a2_res.mat. Warning: Get data of variable volume.medium.state.der(d) from file Modelica_3.2.1_cpp_Modelica.Media.Examples.R134a.R134a2_res.mat failed! Error: Could not read variable volume1.medium.state.der(d) in file Modelica_3.2.1_cpp_Modelica.Media.Examples.R134a.R134a2_res.mat. Warning: Get data of variable volume1.medium.state.der(d) from file Modelica_3.2.1_cpp_Modelica.Media.Examples.R134a.R134a2_res.mat failed! " Variables in the reference:time,volume.medium.h,volume.medium.p,volume1.medium.h,volume1.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.quality,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,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.quality,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,shortPipe1.dp,shortPipe1.dp_nominal,shortPipe1.m_flow,shortPipe1.m_flow_nominal,shortPipe1.port_a.H_flow,shortPipe1.port_a.h,shortPipe1.port_a.m_flow,shortPipe1.port_a.p,shortPipe1.port_b.H_flow,shortPipe1.port_b.h,shortPipe1.port_b.m_flow,shortPipe1.port_b.p,time,volume.T_start,volume.U,volume.V,volume.X_start[1],volume.d_start,der(volume.U),der(volume.m),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,der(volume.medium.d),der(volume.medium.h),der(volume.medium.p),der(volume.medium.u),volume.medium.h,volume.medium.p,volume.medium.p_bar,volume.medium.phase,volume.medium.preferredMediumStates,volume.medium.quality,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,volume1.T_start,volume1.U,volume1.V,volume1.X_start[1],volume1.d_start,der(volume1.U),der(volume1.m),volume1.h_start,volume1.m,volume1.medium.MM,volume1.medium.R,volume1.medium.T,volume1.medium.T_degC,volume1.medium.X[1],volume1.medium.d,der(volume1.medium.d),der(volume1.medium.h),der(volume1.medium.p),der(volume1.medium.u),volume1.medium.h,volume1.medium.p,volume1.medium.p_bar,volume1.medium.phase,volume1.medium.preferredMediumStates,volume1.medium.quality,volume1.medium.sat.Tsat,volume1.medium.sat.psat,volume1.medium.standardOrderComponents,volume1.medium.state.T,volume1.medium.state.d,volume1.medium.state.h,volume1.medium.state.p,volume1.medium.state.phase,volume1.medium.u,volume1.p_start,volume1.port.H_flow,volume1.port.h,volume1.port.m_flow,volume1.port.p,volume1.use_T_start,volume1.use_p_start