Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Media.TestAllProperties.IncompleteMedia.ReferenceAir_ph.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/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.1_cpp_ModelicaTest.Media.TestAllProperties.IncompleteMedia.ReferenceAir_ph") Notification: Performance of loadModel(ModelicaTest): time 2.087/2.087, allocations: 209.2 MB / 224.8 MB, free: 1.211 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004525/0.0004526, allocations: 16 kB / 282.6 MB, free: 9.719 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09124/0.09172, allocations: 48.71 MB / 331.3 MB, free: 8.914 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.637/1.728, allocations: 0.636 GB / 0.9596 GB, free: 13.5 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002112/1.729, allocations: 84.75 kB / 0.9596 GB, free: 13.42 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5644/2.293, allocations: 111.3 MB / 1.068 GB, free: 74.77 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.351e-06/2.293, allocations: 4 kB / 1.068 GB, free: 74.77 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.398e-05/2.293, allocations: 0 / 1.068 GB, free: 74.77 MB / 426.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.003439/2.297, allocations: 1.057 MB / 1.069 GB, free: 73.66 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.052e-05/2.297, allocations: 8.031 kB / 1.069 GB, free: 73.65 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000756/2.297, allocations: 75.66 kB / 1.069 GB, free: 73.58 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002995/2.298, allocations: 258.6 kB / 1.07 GB, free: 73.29 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.302e-05/2.298, allocations: 16.56 kB / 1.07 GB, free: 73.27 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.189e-05/2.298, allocations: 28 kB / 1.07 GB, free: 73.24 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001116/2.299, allocations: 477.5 kB / 1.07 GB, free: 72.74 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.645e-05/2.299, allocations: 3.938 kB / 1.07 GB, free: 72.74 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.615e-05/2.299, allocations: 12 kB / 1.07 GB, free: 72.73 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.801e-06/2.299, allocations: 8 kB / 1.07 GB, free: 72.72 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001247/2.3, allocations: 0.6812 MB / 1.071 GB, free: 72.04 MB / 426.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.0102/2.311, allocations: 5.361 MB / 1.076 GB, free: 66.25 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006491/2.311, allocations: 169 kB / 1.076 GB, free: 66.08 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05672/2.368, allocations: 25.61 MB / 1.101 GB, free: 37.46 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006664/2.369, allocations: 288 kB / 1.102 GB, free: 37.12 MB / 426.7 MB Notification: Performance of pre-optimization done (n=26): time 3.831e-06/2.369, allocations: 0 / 1.102 GB, free: 37.12 MB / 426.7 MB Notification: Performance of matching and sorting (n=26): time 0.001498/2.37, allocations: 398.1 kB / 1.102 GB, free: 36.73 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.539e-05/2.37, allocations: 435.4 kB / 1.102 GB, free: 36.2 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001887/2.371, allocations: 169.7 kB / 1.103 GB, free: 36.03 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.664e-05/2.371, allocations: 29.7 kB / 1.103 GB, free: 36 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.062e-05/2.371, allocations: 258 kB / 1.103 GB, free: 35.74 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.83e-05/2.371, allocations: 98.67 kB / 1.103 GB, free: 35.64 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.98e-05/2.371, allocations: 8 kB / 1.103 GB, free: 35.64 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 6.134e-05/2.371, allocations: 326.8 kB / 1.103 GB, free: 35.31 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001345/2.371, allocations: 64.83 kB / 1.103 GB, free: 35.25 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002227/2.371, allocations: 302.7 kB / 1.104 GB, free: 34.84 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002128/2.371, allocations: 111.9 kB / 1.104 GB, free: 34.73 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.797e-06/2.371, allocations: 0 / 1.104 GB, free: 34.73 MB / 426.7 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0008049/2.372, allocations: 397.2 kB / 1.104 GB, free: 34.33 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.064e-05/2.372, allocations: 8 kB / 1.104 GB, free: 34.32 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.571e-05/2.372, allocations: 8 kB / 1.104 GB, free: 34.32 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.138e-05/2.372, allocations: 12 kB / 1.104 GB, free: 34.3 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003867/2.373, allocations: 107.8 kB / 1.104 GB, free: 34.2 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.759e-05/2.373, allocations: 19.88 kB / 1.104 GB, free: 34.18 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003788/2.373, allocations: 52.03 kB / 1.104 GB, free: 34.13 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.842e-05/2.373, allocations: 32 kB / 1.104 GB, free: 34.1 MB / 426.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 () * Number of clocked 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.0001748/2.373, allocations: 165.5 kB / 1.104 GB, free: 33.93 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.638e-05/2.374, allocations: 27.72 kB / 1.104 GB, free: 33.9 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001361/2.375, allocations: 0.806 MB / 1.105 GB, free: 33.05 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.581e-05/2.375, allocations: 11.98 kB / 1.105 GB, free: 33.04 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.186e-06/2.375, allocations: 4 kB / 1.105 GB, free: 33.04 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.411e-06/2.375, allocations: 0 / 1.105 GB, free: 33.04 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0321/2.407, allocations: 12.1 MB / 1.117 GB, free: 19.8 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.071e-05/2.407, allocations: 4 kB / 1.117 GB, free: 19.79 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001394/2.407, allocations: 31.92 kB / 1.117 GB, free: 19.76 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.521e-06/2.407, allocations: 4 kB / 1.117 GB, free: 19.76 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.582e-05/2.407, allocations: 4 kB / 1.117 GB, free: 19.75 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.25e-06/2.407, allocations: 3.953 kB / 1.117 GB, free: 19.75 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.12e-06/2.407, allocations: 4 kB / 1.117 GB, free: 19.75 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004795/2.408, allocations: 0.4938 MB / 1.118 GB, free: 19.16 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001643/2.408, allocations: 184.3 kB / 1.118 GB, free: 18.96 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.138e-05/2.408, allocations: 8 kB / 1.118 GB, free: 18.96 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000295/2.408, allocations: 19.98 kB / 1.118 GB, free: 18.94 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.92e-05/2.408, allocations: 11.92 kB / 1.118 GB, free: 18.93 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.387e-05/2.409, allocations: 12 kB / 1.118 GB, free: 18.91 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0002728/2.409, allocations: 227.2 kB / 1.118 GB, free: 18.69 MB / 426.7 MB Notification: Performance of sort global known variables: time 8e-07/2.409, allocations: 0 / 1.118 GB, free: 18.69 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001981/2.411, allocations: 439.3 kB / 1.118 GB, free: 18.26 MB / 426.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 () * Number of clocked 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.002927/2.414, allocations: 0.7748 MB / 1.119 GB, free: 17.48 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0005764/2.414, allocations: 245.1 kB / 1.119 GB, free: 17.24 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.581e-06/2.414, allocations: 0 / 1.119 GB, free: 17.24 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001573/2.415, allocations: 107.8 kB / 1.12 GB, free: 17.14 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006346/2.415, allocations: 78.91 kB / 1.12 GB, free: 17.06 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 2.417/4.832, allocations: 0.7344 GB / 1.854 GB, free: 62.56 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002468/4.832, allocations: 0.8017 MB / 1.855 GB, free: 61.78 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001306/4.832, allocations: 42.39 kB / 1.855 GB, free: 61.75 MB / 426.7 MB Notification: Performance of SimCode: time 1.627e-06/4.832, allocations: 0 / 1.855 GB, free: 61.75 MB / 426.7 MB Notification: Performance of Templates: time 0.01802/4.85, allocations: 10.85 MB / 1.865 GB, free: 54.01 MB / 426.7 MB "Error: Could not read variable _GlobalScope.Modelica.Media.Interfaces.PartialPureSubstance.reference_X[1] in file ModelicaTest_3.2.1_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.1_cpp_ModelicaTest.Media.TestAllProperties.IncompleteMedia.ReferenceAir_ph_res.mat failed! Error: Could not read variable _derdummy in file ModelicaTest_3.2.1_cpp_ModelicaTest.Media.TestAllProperties.IncompleteMedia.ReferenceAir_ph_res.mat. Warning: Get data of variable _derdummy from file ModelicaTest_3.2.1_cpp_ModelicaTest.Media.TestAllProperties.IncompleteMedia.ReferenceAir_ph_res.mat failed! Error: Could not read variable _dummy in file ModelicaTest_3.2.1_cpp_ModelicaTest.Media.TestAllProperties.IncompleteMedia.ReferenceAir_ph_res.mat. Warning: Get data of variable _dummy from file ModelicaTest_3.2.1_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