Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Media.Examples.R134a.R134a2.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/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.2_cpp_Modelica.Media.Examples.R134a.R134a2") Notification: Performance of loadModel(Modelica): time 1.861/1.861, allocations: 194.8 MB / 211.7 MB, free: 2.988 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003495/0.0003496, allocations: 12 kB / 263.8 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07773/0.0781, allocations: 44.51 MB / 308.4 MB, free: 1.027 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.R134a.R134a2): time 0.04487/0.123, allocations: 31.52 MB / 339.9 MB, free: 1.426 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.04037/0.1634, allocations: 25.55 MB / 365.4 MB, free: 7.82 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005507/0.164, allocations: 7.938 kB / 365.4 MB, free: 7.812 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001138/0.1652, allocations: 334.6 kB / 365.8 MB, free: 7.484 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009443/0.1662, allocations: 367 kB / 366.1 MB, free: 7.125 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01421/0.1804, allocations: 3.966 MB / 370.1 MB, free: 3.148 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001492/0.1819, allocations: 0.773 MB / 370.9 MB, free: 2.375 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002877/0.1822, allocations: 122 kB / 371 MB, free: 2.25 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007793/0.183, allocations: 406.8 kB / 371.4 MB, free: 1.852 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004321/0.1834, allocations: 270.9 kB / 371.6 MB, free: 1.586 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 7.056e-05/0.1835, allocations: 24 kB / 371.7 MB, free: 1.562 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.3102/0.4937, allocations: 69.17 MB / 440.8 MB, free: 13.84 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002347/0.494, allocations: 104.7 kB / 440.9 MB, free: 13.79 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002742/0.4943, allocations: 146.2 kB / 441.1 MB, free: 13.69 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.05195/0.5462, allocations: 13.85 MB / 454.9 MB, free: 448 kB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.544e-06/0.5463, allocations: 4 kB / 454.9 MB, free: 444 kB / 362.7 MB Notification: Performance of FrontEnd: time 2.619e-06/0.5463, allocations: 0 / 454.9 MB, free: 444 kB / 362.7 MB Notification: Performance of Transformations before backend: time 1.007e-05/0.5463, allocations: 0 / 454.9 MB, free: 444 kB / 362.7 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.008459/0.5548, allocations: 1.314 MB / 456.3 MB, free: 15.14 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.853e-05/0.5548, allocations: 8.031 kB / 456.3 MB, free: 15.13 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008708/0.5557, allocations: 91.39 kB / 456.3 MB, free: 15.04 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006245/0.5564, allocations: 374.1 kB / 456.7 MB, free: 14.71 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.229e-05/0.5564, allocations: 37.88 kB / 456.8 MB, free: 14.69 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.541e-05/0.5565, allocations: 50.23 kB / 456.8 MB, free: 14.66 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001511/0.5581, allocations: 0.6125 MB / 457.4 MB, free: 14.19 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.003e-05/0.5581, allocations: 7.484 kB / 457.4 MB, free: 14.18 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.731e-05/0.5582, allocations: 18 kB / 457.4 MB, free: 14.18 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.271e-05/0.5582, allocations: 15.98 kB / 457.5 MB, free: 14.16 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001343/0.5596, allocations: 0.5233 MB / 458 MB, free: 13.82 MB / 378.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.005403/0.565, allocations: 3.808 MB / 461.8 MB, free: 10.22 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001235/0.5663, allocations: 409.7 kB / 462.2 MB, free: 9.953 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00439/0.5707, allocations: 3.56 MB / 465.7 MB, free: 5.797 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.476e-05/0.5707, allocations: 43.89 kB / 465.8 MB, free: 5.75 MB / 378.7 MB Notification: Performance of pre-optimization done (n=46): time 3.966e-06/0.5708, allocations: 1.969 kB / 465.8 MB, free: 5.75 MB / 378.7 MB Notification: Performance of matching and sorting (n=54): time 0.01165/0.5824, allocations: 2.044 MB / 467.8 MB, free: 4.113 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.729e-05/0.5825, allocations: 55.84 kB / 467.9 MB, free: 4.043 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004444/0.583, allocations: 309.7 kB / 468.2 MB, free: 3.789 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.847e-05/0.583, allocations: 36.7 kB / 468.2 MB, free: 3.754 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002005/0.5833, allocations: 284.3 kB / 468.5 MB, free: 3.512 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001868/0.5835, allocations: 193.8 kB / 468.7 MB, free: 3.352 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.438e-05/0.5835, allocations: 8.5 kB / 468.7 MB, free: 3.352 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001763/0.5837, allocations: 341.3 kB / 469 MB, free: 3.02 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004185/0.5841, allocations: 178.7 kB / 469.2 MB, free: 2.914 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005458/0.5847, allocations: 325.2 kB / 469.5 MB, free: 2.625 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005088/0.5852, allocations: 229.6 kB / 469.8 MB, free: 2.504 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.61e-06/0.5852, allocations: 4 kB / 469.8 MB, free: 2.5 MB / 378.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001714/0.587, allocations: 0.6488 MB / 470.4 MB, free: 2.062 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.469e-05/0.587, allocations: 8 kB / 470.4 MB, free: 2.055 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.308e-05/0.587, allocations: 4.875 kB / 470.4 MB, free: 2.051 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0104/0.5974, allocations: 454.7 kB / 470.9 MB, free: 1.656 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007483/0.5982, allocations: 143.7 kB / 471 MB, free: 1.531 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002895/0.6011, allocations: 2.998 MB / 474 MB, free: 14.46 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005499/0.6017, allocations: 51 kB / 474 MB, free: 14.42 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.053e-05/0.6018, allocations: 31.17 kB / 474.1 MB, free: 14.39 MB / 394.7 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.0003405/0.6021, allocations: 188 kB / 474.3 MB, free: 14.25 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000121/0.6023, allocations: 43.53 kB / 474.3 MB, free: 14.21 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002063/0.6043, allocations: 1.054 MB / 475.4 MB, free: 13.5 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.045e-05/0.6044, allocations: 15.98 kB / 475.4 MB, free: 13.49 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.301e-06/0.6044, allocations: 6.672 kB / 475.4 MB, free: 13.48 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001675/0.6061, allocations: 1.082 MB / 476.5 MB, free: 12.64 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002954/0.6091, allocations: 1.735 MB / 478.2 MB, free: 11.42 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.609e-06/0.6091, allocations: 2.625 kB / 478.2 MB, free: 11.42 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005266/0.6096, allocations: 101.8 kB / 478.3 MB, free: 11.33 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003475/0.6131, allocations: 365.6 kB / 478.7 MB, free: 11.02 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.475e-05/0.6132, allocations: 12.69 kB / 478.7 MB, free: 11.02 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001012/0.6142, allocations: 1.147 MB / 479.8 MB, free: 9.883 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.443e-06/0.6142, allocations: 3.953 kB / 479.8 MB, free: 9.879 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001986/0.6162, allocations: 1.12 MB / 480.9 MB, free: 9.117 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001761/0.6164, allocations: 144.2 kB / 481.1 MB, free: 8.965 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.44e-05/0.6165, allocations: 18.06 kB / 481.1 MB, free: 8.957 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003909/0.6169, allocations: 29.06 kB / 481.1 MB, free: 8.938 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.945e-05/0.617, allocations: 40.33 kB / 481.2 MB, free: 8.902 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.622e-05/0.6171, allocations: 19.38 kB / 481.2 MB, free: 8.887 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003777/0.6175, allocations: 249.2 kB / 481.4 MB, free: 8.691 MB / 394.7 MB Notification: Performance of sort global known variables: time 9.46e-07/0.6175, allocations: 0 / 481.4 MB, free: 8.691 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.005822/0.6233, allocations: 0.961 MB / 482.4 MB, free: 7.801 MB / 394.7 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.06461/0.688, allocations: 7.865 MB / 490.3 MB, free: 136 kB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001865/0.6899, allocations: 0.6983 MB / 491 MB, free: 15.62 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.162e-06/0.6899, allocations: 4 kB / 491 MB, free: 15.62 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008389/0.6908, allocations: 360.5 kB / 491.3 MB, free: 15.39 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001512/0.6923, allocations: 242.2 kB / 491.5 MB, free: 15.2 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003012/0.6953, allocations: 1.66 MB / 493.2 MB, free: 13.71 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006417/0.696, allocations: 0.8754 MB / 494.1 MB, free: 12.81 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000182/0.6962, allocations: 55.17 kB / 494.1 MB, free: 12.76 MB / 410.7 MB Notification: Performance of SimCode: time 1.44e-06/0.6962, allocations: 4 kB / 494.1 MB, free: 12.76 MB / 410.7 MB Notification: Performance of Templates: time 0.06928/0.7655, allocations: 39.5 MB / 0.5211 GB, free: 5.953 MB / 442.7 MB "Error: Could not read variable volume.medium.state.der(d) in file Modelica_3.2.2_cpp_Modelica.Media.Examples.R134a.R134a2_res.mat. Warning: Get data of variable volume.medium.state.der(d) from file Modelica_3.2.2_cpp_Modelica.Media.Examples.R134a.R134a2_res.mat failed! Error: Could not read variable volume1.medium.state.der(d) in file Modelica_3.2.2_cpp_Modelica.Media.Examples.R134a.R134a2_res.mat. Warning: Get data of variable volume1.medium.state.der(d) from file Modelica_3.2.2_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