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.LinearWater_pT_Ambient.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.Media.TestAllProperties.LinearWater_pT_Ambient,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|eps_h_is|eta|lambda|Pr|p|T|d|h|u|s|g|f|cp|cp2|cv|cv2|h_is|a|beta|beta2|kappa|kappa2|ddpT|ddTp|dddX.1.|MM|h2|d2|err_T|err_d|err_u|s_is|err_h_is|eps",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Media.TestAllProperties.LinearWater_pT_Ambient") Notification: Performance of loadModel(ModelicaTest): time 1.953/1.953, allocations: 209.4 MB / 217.3 MB, free: 4.141 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.805e-05/1.807e-05, allocations: 7.984 kB / 271.3 MB, free: 14.13 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2619/0.262, allocations: 48.68 MB / 320 MB, free: 14.38 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.743/7.005, allocations: 2.797 GB / 3.109 GB, free: 112.9 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002028/7.005, allocations: 74.08 kB / 3.109 GB, free: 112.9 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7807/7.786, allocations: 203.2 MB / 3.308 GB, free: 61.62 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.467e-06/7.786, allocations: 8 kB / 3.308 GB, free: 61.61 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.837e-05/7.786, allocations: 0 / 3.308 GB, free: 61.61 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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.004224/7.79, allocations: 1.151 MB / 3.309 GB, free: 60.55 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.266e-05/7.79, allocations: 8.031 kB / 3.309 GB, free: 60.54 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002135/7.791, allocations: 31.67 kB / 3.309 GB, free: 60.51 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002655/7.791, allocations: 232.8 kB / 3.309 GB, free: 60.27 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001307/7.791, allocations: 115.4 kB / 3.309 GB, free: 60.13 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.953e-05/7.791, allocations: 16 kB / 3.309 GB, free: 60.11 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008807/7.792, allocations: 0.7109 MB / 3.31 GB, free: 59.6 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004254/7.793, allocations: 288.5 kB / 3.31 GB, free: 59.33 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.581e-05/7.793, allocations: 0 / 3.31 GB, free: 59.33 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.281e-05/7.793, allocations: 2.297 kB / 3.31 GB, free: 59.33 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.036e-05/7.793, allocations: 15.8 kB / 3.31 GB, free: 59.32 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002916/7.796, allocations: 3.492 MB / 3.314 GB, free: 55.45 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001021/7.796, allocations: 53.94 kB / 3.314 GB, free: 55.39 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.84e-05/7.796, allocations: 16.89 kB / 3.314 GB, free: 55.37 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005807/7.796, allocations: 454.7 kB / 3.314 GB, free: 54.91 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.666e-05/7.796, allocations: 30.56 kB / 3.314 GB, free: 54.87 MB / 426.7 MB Notification: Performance of pre-optimization done (n=1): time 3.225e-06/7.796, allocations: 0 / 3.314 GB, free: 54.87 MB / 426.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002202/7.797, allocations: 53.64 kB / 3.314 GB, free: 54.82 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.839e-05/7.797, allocations: 55.34 kB / 3.314 GB, free: 54.75 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000195/7.797, allocations: 216.3 kB / 3.314 GB, free: 54.54 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 1.263e-05/7.797, allocations: 25.7 kB / 3.314 GB, free: 54.51 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000116/7.797, allocations: 323.1 kB / 3.315 GB, free: 54.21 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.267e-05/7.797, allocations: 15.94 kB / 3.315 GB, free: 54.2 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.122e-05/7.797, allocations: 0 / 3.315 GB, free: 54.2 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 6.401e-05/7.797, allocations: 334.6 kB / 3.315 GB, free: 53.87 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.987e-05/7.797, allocations: 28.88 kB / 3.315 GB, free: 53.84 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001781/7.797, allocations: 338.8 kB / 3.315 GB, free: 53.37 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004906/7.798, allocations: 108.9 kB / 3.316 GB, free: 53.28 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.556e-06/7.798, allocations: 4 kB / 3.316 GB, free: 53.27 MB / 426.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0009135/7.799, allocations: 341.2 kB / 3.316 GB, free: 52.98 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.368e-05/7.799, allocations: 11.94 kB / 3.316 GB, free: 52.96 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.555e-05/7.799, allocations: 12.88 kB / 3.316 GB, free: 52.95 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.089e-05/7.799, allocations: 16 kB / 3.316 GB, free: 52.94 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003046/7.799, allocations: 103.3 kB / 3.316 GB, free: 52.85 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.836e-05/7.799, allocations: 19.88 kB / 3.316 GB, free: 52.83 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004274/7.8, allocations: 47.44 kB / 3.316 GB, free: 52.79 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.018e-05/7.8, allocations: 32 kB / 3.316 GB, free: 52.75 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 50 * Array equations: 1 * 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 9.38e-05/7.8, allocations: 136.6 kB / 3.316 GB, free: 52.61 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.806e-05/7.8, allocations: 15.81 kB / 3.316 GB, free: 52.6 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.439e-05/7.8, allocations: 20.98 kB / 3.316 GB, free: 52.58 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.586e-05/7.8, allocations: 0 / 3.316 GB, free: 52.58 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.233e-06/7.8, allocations: 4 kB / 3.316 GB, free: 52.58 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.017e-06/7.8, allocations: 0 / 3.316 GB, free: 52.58 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002085/7.8, allocations: 177.2 kB / 3.316 GB, free: 52.39 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.829e-06/7.8, allocations: 4 kB / 3.316 GB, free: 52.38 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.046e-06/7.8, allocations: 3.953 kB / 3.316 GB, free: 52.38 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.192e-06/7.8, allocations: 0 / 3.316 GB, free: 52.38 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.433e-06/7.8, allocations: 0 / 3.316 GB, free: 52.38 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.348e-06/7.8, allocations: 0 / 3.316 GB, free: 52.38 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.63e-06/7.8, allocations: 0 / 3.316 GB, free: 52.38 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001766/7.801, allocations: 146.9 kB / 3.317 GB, free: 52.22 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.73e-05/7.801, allocations: 112.3 kB / 3.317 GB, free: 52.1 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.551e-05/7.801, allocations: 7.891 kB / 3.317 GB, free: 52.09 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002078/7.801, allocations: 7.891 kB / 3.317 GB, free: 52.09 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.245e-05/7.801, allocations: 0 / 3.317 GB, free: 52.09 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.112e-05/7.801, allocations: 0 / 3.317 GB, free: 52.09 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.000131/7.801, allocations: 152.9 kB / 3.317 GB, free: 51.95 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.29e-07/7.801, allocations: 0 / 3.317 GB, free: 51.95 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0009005/7.802, allocations: 104 kB / 3.317 GB, free: 51.85 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 1 * 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 Backend phase and start with SimCode phase: time 0.0004359/7.803, allocations: 305.8 kB / 3.317 GB, free: 51.59 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0003138/7.803, allocations: 125.3 kB / 3.317 GB, free: 51.48 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.554e-06/7.803, allocations: 0 / 3.317 GB, free: 51.48 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 1.044e-05/7.803, allocations: 0 / 3.317 GB, free: 51.48 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002949/7.803, allocations: 17.5 kB / 3.317 GB, free: 51.46 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5354/8.339, allocations: 91.03 MB / 3.406 GB, free: 47.55 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001708/8.339, allocations: 0.7238 MB / 3.407 GB, free: 46.85 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.34e-05/8.339, allocations: 26.83 kB / 3.407 GB, free: 46.85 MB / 426.7 MB Notification: Performance of SimCode: time 1.763e-06/8.339, allocations: 0 / 3.407 GB, free: 46.85 MB / 426.7 MB Notification: Performance of Templates: time 0.007189/8.346, allocations: 4.032 MB / 3.411 GB, free: 46.77 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.LinearWater_pT_Ambient_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.LinearWater_pT_Ambient_res.mat failed! Error: Could not read variable _derdummy in file ModelicaTest_3.2.1_cpp_ModelicaTest.Media.TestAllProperties.LinearWater_pT_Ambient_res.mat. Warning: Get data of variable _derdummy from file ModelicaTest_3.2.1_cpp_ModelicaTest.Media.TestAllProperties.LinearWater_pT_Ambient_res.mat failed! Error: Could not read variable _dummy in file ModelicaTest_3.2.1_cpp_ModelicaTest.Media.TestAllProperties.LinearWater_pT_Ambient_res.mat. Warning: Get data of variable _dummy from file ModelicaTest_3.2.1_cpp_ModelicaTest.Media.TestAllProperties.LinearWater_pT_Ambient_res.mat failed! Error: Could not read variable eps in file ModelicaTest_3.2.1_cpp_ModelicaTest.Media.TestAllProperties.LinearWater_pT_Ambient_res.mat. Warning: Get data of variable eps from file ModelicaTest_3.2.1_cpp_ModelicaTest.Media.TestAllProperties.LinearWater_pT_Ambient_res.mat failed! Error: Could not read variable t_min in file ModelicaTest_3.2.1_cpp_ModelicaTest.Media.TestAllProperties.LinearWater_pT_Ambient_res.mat. Warning: Get data of variable t_min from file ModelicaTest_3.2.1_cpp_ModelicaTest.Media.TestAllProperties.LinearWater_pT_Ambient_res.mat failed! " Variables in the reference:time,eps_h_is,eta,lambda,Pr,p,T,d,h,u,s,g,f,cp,cp2,cv,cv2,h_is,a,beta,beta2,kappa,kappa2,ddpT,ddTp,dddX[1],MM,h2,d2,err_T,err_d,err_u,s_is,err_h_is,eps Variables in the result:MM,Pr,T,a,beta,beta2,cp,cp2,cv,cv2,d,d2,ddTp,dddX[1],ddpT,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.p,medium.u,p,s,s_is,state.T,state.p,state2.T,state2.p,state3.T,state3.p,state4.T,state4.p,state5.T,state5.p,state_h_is.T,state_h_is.p,time,u