Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Media.TestAllProperties.IncompleteMedia.ReferenceAir_ph.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) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.Media.TestAllProperties.IncompleteMedia.ReferenceAir_ph,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|eps_h_is|eps|eta|lambda|Pr|p|T|d|h|u|s|g|f|cp|cp2|cv|cv2|h_is|a|beta|beta2|kappa|kappa2|MM|h2|d2|err_T|err_d|err_u|s_is|err_h_is",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Media.TestAllProperties.IncompleteMedia.ReferenceAir_ph") Notification: Performance of loadModel(ModelicaTest): time 2.259/2.259, allocations: 235 MB / 248.1 MB, free: 14.35 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.287e-05/3.309e-05, allocations: 4 kB / 309.7 MB, free: 1.324 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3247/0.3247, allocations: 54.86 MB / 364.5 MB, free: 5.539 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.509/1.834, allocations: 0.6423 GB / 0.9983 GB, free: 89.45 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002395/1.834, allocations: 80.81 kB / 0.9984 GB, free: 89.4 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5369/2.371, allocations: 111.2 MB / 1.107 GB, free: 146.7 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.763e-06/2.371, allocations: 0 / 1.107 GB, free: 146.7 MB / 490.7 MB Notification: Performance of Transformations before backend: time 2.344e-05/2.371, allocations: 3.625 kB / 1.107 GB, free: 146.7 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.003296/2.374, allocations: 1.046 MB / 1.108 GB, free: 146 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.559e-05/2.374, allocations: 9.438 kB / 1.108 GB, free: 146 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007555/2.375, allocations: 78.41 kB / 1.108 GB, free: 146 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000301/2.375, allocations: 246.3 kB / 1.108 GB, free: 145.8 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.758e-05/2.375, allocations: 19.38 kB / 1.108 GB, free: 145.8 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.24e-05/2.376, allocations: 28.75 kB / 1.108 GB, free: 145.8 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001162/2.377, allocations: 493.9 kB / 1.109 GB, free: 145.7 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.578e-05/2.377, allocations: 1.375 kB / 1.109 GB, free: 145.7 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.932e-05/2.377, allocations: 21.58 kB / 1.109 GB, free: 145.7 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.249e-05/2.377, allocations: 6.469 kB / 1.109 GB, free: 145.7 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001418/2.378, allocations: 0.6892 MB / 1.11 GB, free: 145.7 MB / 490.7 MB Warning: The model contains alias variables with conflicting start and/or 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.01105/2.389, allocations: 5.386 MB / 1.115 GB, free: 143 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006879/2.39, allocations: 179.2 kB / 1.115 GB, free: 143 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001339/2.39, allocations: 58.94 kB / 1.115 GB, free: 142.9 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05855/2.449, allocations: 25.84 MB / 1.14 GB, free: 127 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006708/2.449, allocations: 303.5 kB / 1.141 GB, free: 126.9 MB / 490.7 MB Notification: Performance of pre-optimization done (n=26): time 4.115e-06/2.449, allocations: 0 / 1.141 GB, free: 126.9 MB / 490.7 MB Notification: Performance of matching and sorting (n=26): time 0.001479/2.451, allocations: 367.2 kB / 1.141 GB, free: 126.8 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.185e-05/2.451, allocations: 420.1 kB / 1.141 GB, free: 126.3 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001931/2.451, allocations: 178.9 kB / 1.141 GB, free: 126.2 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 2.796e-05/2.451, allocations: 32.48 kB / 1.141 GB, free: 126.2 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.979e-05/2.451, allocations: 262.9 kB / 1.142 GB, free: 126 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.895e-05/2.452, allocations: 91.55 kB / 1.142 GB, free: 125.9 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.562e-05/2.452, allocations: 13.16 kB / 1.142 GB, free: 125.9 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 6.17e-05/2.452, allocations: 329 kB / 1.142 GB, free: 125.6 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001421/2.452, allocations: 59.55 kB / 1.142 GB, free: 125.6 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002293/2.452, allocations: 303.2 kB / 1.142 GB, free: 125.3 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002247/2.452, allocations: 106.6 kB / 1.143 GB, free: 125.3 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.662e-06/2.452, allocations: 5.875 kB / 1.143 GB, free: 125.3 MB / 490.7 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0008444/2.453, allocations: 390 kB / 1.143 GB, free: 125.1 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.351e-05/2.453, allocations: 11.75 kB / 1.143 GB, free: 125.1 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.289e-05/2.453, allocations: 7.781 kB / 1.143 GB, free: 125.1 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.54e-05/2.453, allocations: 11.44 kB / 1.143 GB, free: 125.1 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003969/2.454, allocations: 111.7 kB / 1.143 GB, free: 125.1 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.017e-05/2.454, allocations: 20.09 kB / 1.143 GB, free: 125.1 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003942/2.454, allocations: 49 kB / 1.143 GB, free: 125.1 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.05e-05/2.454, allocations: 39.05 kB / 1.143 GB, free: 125.1 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 54 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001211/2.454, allocations: 138.5 kB / 1.143 GB, free: 125 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.439e-05/2.454, allocations: 32.12 kB / 1.143 GB, free: 125 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001459/2.456, allocations: 0.8091 MB / 1.144 GB, free: 124.7 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.502e-05/2.456, allocations: 7.562 kB / 1.144 GB, free: 124.7 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.124e-06/2.456, allocations: 0 / 1.144 GB, free: 124.7 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.926e-06/2.456, allocations: 10.78 kB / 1.144 GB, free: 124.7 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03511/2.491, allocations: 12.24 MB / 1.156 GB, free: 118.3 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-05/2.491, allocations: 7.688 kB / 1.156 GB, free: 118.3 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001364/2.491, allocations: 21.25 kB / 1.156 GB, free: 118.3 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.338e-06/2.491, allocations: 3.344 kB / 1.156 GB, free: 118.3 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.872e-05/2.491, allocations: 10.38 kB / 1.156 GB, free: 118.3 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.564e-06/2.491, allocations: 7.906 kB / 1.156 GB, free: 118.3 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.387e-06/2.491, allocations: 0 / 1.156 GB, free: 118.3 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004835/2.492, allocations: 496.8 kB / 1.157 GB, free: 117.8 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001779/2.492, allocations: 187.7 kB / 1.157 GB, free: 117.7 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.353e-05/2.492, allocations: 7.344 kB / 1.157 GB, free: 117.7 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003028/2.492, allocations: 18.62 kB / 1.157 GB, free: 117.7 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.987e-05/2.492, allocations: 14.97 kB / 1.157 GB, free: 117.7 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.542e-05/2.493, allocations: 10.78 kB / 1.157 GB, free: 117.7 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.00027/2.493, allocations: 222.7 kB / 1.157 GB, free: 117.6 MB / 490.7 MB Notification: Performance of sort global known variables: time 8.82e-07/2.493, allocations: 0 / 1.157 GB, free: 117.6 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.00199/2.495, allocations: 432.5 kB / 1.158 GB, free: 117.4 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 16 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002605/2.497, allocations: 0.7834 MB / 1.158 GB, free: 117.2 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0005729/2.498, allocations: 247 kB / 1.159 GB, free: 117.1 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 5.883e-06/2.498, allocations: 0 / 1.159 GB, free: 117.1 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001571/2.498, allocations: 108.3 kB / 1.159 GB, free: 117 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006383/2.499, allocations: 72.88 kB / 1.159 GB, free: 117 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 2.347/4.846, allocations: 0.7338 GB / 1.893 GB, free: 108 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002435/4.847, allocations: 0.8021 MB / 1.893 GB, free: 107.2 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001321/4.847, allocations: 43.14 kB / 1.893 GB, free: 107.2 MB / 490.7 MB Notification: Performance of SimCode: time 2.51e-06/4.847, allocations: 3.938 kB / 1.893 GB, free: 107.1 MB / 490.7 MB Notification: Performance of Templates: time 0.01754/4.864, allocations: 10.84 MB / 1.904 GB, free: 97.1 MB / 490.7 MB "Error: Could not read variable _GlobalScope.Modelica.Media.Interfaces.PartialPureSubstance.reference_X[1] in file ModelicaTest_3.2.2_cpp_ModelicaTest.Media.TestAllProperties.IncompleteMedia.ReferenceAir_ph_res.mat. Warning: Get data of variable _GlobalScope.Modelica.Media.Interfaces.PartialPureSubstance.reference_X[1] from file ModelicaTest_3.2.2_cpp_ModelicaTest.Media.TestAllProperties.IncompleteMedia.ReferenceAir_ph_res.mat failed! Error: Could not read variable _derdummy in file ModelicaTest_3.2.2_cpp_ModelicaTest.Media.TestAllProperties.IncompleteMedia.ReferenceAir_ph_res.mat. Warning: Get data of variable _derdummy from file ModelicaTest_3.2.2_cpp_ModelicaTest.Media.TestAllProperties.IncompleteMedia.ReferenceAir_ph_res.mat failed! Error: Could not read variable _dummy in file ModelicaTest_3.2.2_cpp_ModelicaTest.Media.TestAllProperties.IncompleteMedia.ReferenceAir_ph_res.mat. Warning: Get data of variable _dummy from file ModelicaTest_3.2.2_cpp_ModelicaTest.Media.TestAllProperties.IncompleteMedia.ReferenceAir_ph_res.mat failed! " Variables in the reference:time,eps_h_is,eps,eta,lambda,Pr,p,T,d,h,u,s,g,f,cp,cp2,cv,cv2,h_is,a,beta,beta2,kappa,kappa2,MM,h2,d2,err_T,err_d,err_u,s_is,err_h_is Variables in the result:MM,Pr,T,a,beta,beta2,cp,cp2,cv,cv2,d,d2,eps,eps_h_is,err_T,err_d,err_h_is,err_u,eta,f,g,h,h2,h_is,kappa,kappa2,lambda,medium.MM,medium.R,medium.T,medium.T_degC,medium.X[1],medium.d,medium.h,medium.p,medium.p_bar,medium.preferredMediumStates,medium.standardOrderComponents,medium.state.T,medium.state.d,medium.state.h,medium.state.p,medium.u,p,s,s_is,state.T,state.d,state.h,state.p,state2.T,state2.d,state2.h,state2.p,state3.T,state3.d,state3.h,state3.p,state4.T,state4.d,state4.h,state4.p,state5.T,state5.d,state5.h,state5.p,state_h_is.T,state_h_is.d,state_h_is.h,state_h_is.p,time,u