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.LinearColdWater.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.LinearColdWater,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.LinearColdWater") Notification: Performance of loadModel(ModelicaTest): time 1.941/1.941, allocations: 209.3 MB / 224.8 MB, free: 200 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004395/0.0004397, allocations: 8 kB / 282.5 MB, free: 9.645 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3187/0.3192, allocations: 48.71 MB / 331.2 MB, free: 6.48 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestAllProperties.LinearColdWater): time 0.007107/0.3264, allocations: 3.418 MB / 334.6 MB, free: 4.281 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00802/0.3345, allocations: 3.466 MB / 338.1 MB, free: 1.816 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003005/0.3348, allocations: 1.219 kB / 338.1 MB, free: 1.816 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003635/0.3352, allocations: 45.05 kB / 338.1 MB, free: 1.793 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003303/0.3385, allocations: 0.6054 MB / 338.7 MB, free: 1.379 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008123/0.3394, allocations: 132.2 kB / 338.9 MB, free: 1.293 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007505/0.3401, allocations: 259.7 kB / 339.1 MB, free: 1.141 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.392e-05/0.3402, allocations: 13.58 kB / 339.1 MB, free: 1.137 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003441/0.3406, allocations: 135.1 kB / 339.2 MB, free: 1.066 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004035/0.341, allocations: 130.5 kB / 339.4 MB, free: 1.004 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.932e-05/0.3411, allocations: 7.281 kB / 339.4 MB, free: 1.004 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001976/0.3431, allocations: 382.8 kB / 339.8 MB, free: 0.8672 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001136/0.3433, allocations: 46.95 kB / 339.8 MB, free: 0.832 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001156/0.3434, allocations: 59.48 kB / 339.9 MB, free: 0.793 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009254/0.3444, allocations: 289.5 kB / 340.1 MB, free: 0.6406 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.892e-06/0.3444, allocations: 0 / 340.1 MB, free: 0.6406 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.641e-06/0.3444, allocations: 0 / 340.1 MB, free: 0.6406 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.343e-05/0.3444, allocations: 1.406 kB / 340.1 MB, free: 0.6406 MB / 266.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.001742/0.3462, allocations: 0.5495 MB / 340.7 MB, free: 140 kB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.285e-05/0.3463, allocations: 8.281 kB / 340.7 MB, free: 140 kB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002892/0.3466, allocations: 39.38 kB / 340.7 MB, free: 116 kB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004519/0.3471, allocations: 218.8 kB / 341 MB, free: 15.88 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002967/0.3474, allocations: 128.3 kB / 341.1 MB, free: 15.74 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.406e-05/0.3475, allocations: 22.41 kB / 341.1 MB, free: 15.73 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001178/0.3487, allocations: 334.8 kB / 341.4 MB, free: 15.49 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.279e-05/0.3487, allocations: 1.531 kB / 341.4 MB, free: 15.49 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.956e-05/0.3488, allocations: 14.5 kB / 341.4 MB, free: 15.48 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.004e-05/0.3489, allocations: 6.531 kB / 341.5 MB, free: 15.48 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002023/0.3509, allocations: 0.742 MB / 342.2 MB, free: 15.14 MB / 282.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.003165/0.3541, allocations: 1.351 MB / 343.5 MB, free: 13.82 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006924/0.3548, allocations: 150.9 kB / 343.7 MB, free: 13.75 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005763/0.3606, allocations: 2.868 MB / 346.6 MB, free: 10.56 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.917e-05/0.3607, allocations: 36.62 kB / 346.6 MB, free: 10.52 MB / 282.7 MB Notification: Performance of pre-optimization done (n=15): time 4.973e-06/0.3608, allocations: 0 / 346.6 MB, free: 10.52 MB / 282.7 MB Notification: Performance of matching and sorting (n=15): time 0.0007127/0.3615, allocations: 141.3 kB / 346.7 MB, free: 10.43 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.986e-05/0.3616, allocations: 52.78 kB / 346.8 MB, free: 10.37 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004101/0.362, allocations: 214.7 kB / 347 MB, free: 10.2 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.593e-05/0.3621, allocations: 26.83 kB / 347 MB, free: 10.17 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002779/0.3624, allocations: 271.2 kB / 347.3 MB, free: 9.918 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001112/0.3625, allocations: 66.61 kB / 347.4 MB, free: 9.859 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.001e-05/0.3626, allocations: 6.812 kB / 347.4 MB, free: 9.855 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002268/0.3628, allocations: 326.7 kB / 347.7 MB, free: 9.531 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002087/0.3631, allocations: 48.47 kB / 347.7 MB, free: 9.512 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005633/0.3636, allocations: 322.5 kB / 348 MB, free: 9.109 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003916/0.3641, allocations: 105.9 kB / 348.1 MB, free: 9.055 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.594e-05/0.3641, allocations: 3.469 kB / 348.1 MB, free: 9.055 MB / 282.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001448/0.3656, allocations: 369.4 kB / 348.5 MB, free: 8.859 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.958e-05/0.3656, allocations: 9.531 kB / 348.5 MB, free: 8.859 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.923e-05/0.3657, allocations: 13.31 kB / 348.5 MB, free: 8.855 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.784e-05/0.3658, allocations: 14.19 kB / 348.5 MB, free: 8.855 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006652/0.3665, allocations: 105.2 kB / 348.6 MB, free: 8.824 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.751e-05/0.3665, allocations: 16.59 kB / 348.7 MB, free: 8.82 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007254/0.3673, allocations: 54.53 kB / 348.7 MB, free: 8.785 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.271e-05/0.3674, allocations: 31.48 kB / 348.7 MB, free: 8.777 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked 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 0.0002882/0.3677, allocations: 146.3 kB / 348.9 MB, free: 8.637 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001245/0.3678, allocations: 23.05 kB / 348.9 MB, free: 8.625 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008668/0.3687, allocations: 181.5 kB / 349.1 MB, free: 8.484 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.359e-05/0.3688, allocations: 1.156 kB / 349.1 MB, free: 8.484 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.316e-05/0.3688, allocations: 5.141 kB / 349.1 MB, free: 8.48 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.105e-05/0.3688, allocations: 7.922 kB / 349.1 MB, free: 8.473 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001252/0.3701, allocations: 446 kB / 349.5 MB, free: 8.043 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.326e-06/0.3701, allocations: 1.281 kB / 349.5 MB, free: 8.043 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001943/0.3704, allocations: 19.05 kB / 349.6 MB, free: 8.039 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.52e-05/0.3704, allocations: 5.172 kB / 349.6 MB, free: 8.035 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.115e-05/0.3704, allocations: 2.25 kB / 349.6 MB, free: 8.035 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.372e-06/0.3705, allocations: 2.5 kB / 349.6 MB, free: 8.035 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.79e-06/0.3705, allocations: 1.344 kB / 349.6 MB, free: 8.035 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004852/0.371, allocations: 227.7 kB / 349.8 MB, free: 7.828 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002095/0.3712, allocations: 113.6 kB / 349.9 MB, free: 7.707 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.984e-05/0.3713, allocations: 14.72 kB / 349.9 MB, free: 7.695 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003764/0.3717, allocations: 8.297 kB / 349.9 MB, free: 7.691 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.713e-05/0.3718, allocations: 12.64 kB / 349.9 MB, free: 7.684 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.215e-05/0.3718, allocations: 11.62 kB / 349.9 MB, free: 7.676 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001757/0.372, allocations: 148.2 kB / 350.1 MB, free: 7.566 MB / 282.7 MB Notification: Performance of sort global known variables: time 6.97e-07/0.372, allocations: 0 / 350.1 MB, free: 7.566 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000731/0.3728, allocations: 105.5 kB / 350.2 MB, free: 7.543 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 11 * 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.0003329/0.3731, allocations: 165.5 kB / 350.4 MB, free: 7.422 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004059/0.3735, allocations: 168.6 kB / 350.5 MB, free: 7.355 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.638e-06/0.3736, allocations: 4.125 kB / 350.5 MB, free: 7.352 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 7.666e-05/0.3736, allocations: 36.64 kB / 350.6 MB, free: 7.336 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004677/0.3741, allocations: 45.64 kB / 350.6 MB, free: 7.312 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009533/0.3751, allocations: 0.5516 MB / 351.2 MB, free: 6.871 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004283/0.3755, allocations: 0.7362 MB / 351.9 MB, free: 6.145 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.276e-05/0.3756, allocations: 27.47 kB / 351.9 MB, free: 6.137 MB / 282.7 MB Notification: Performance of SimCode: time 1.349e-06/0.3757, allocations: 0 / 351.9 MB, free: 6.137 MB / 282.7 MB Notification: Performance of Templates: time 0.007597/0.3833, allocations: 3.564 MB / 355.5 MB, free: 4.305 MB / 282.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.LinearColdWater_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.LinearColdWater_res.mat failed! Error: Could not read variable _derdummy in file ModelicaTest_3.2.1_cpp_ModelicaTest.Media.TestAllProperties.LinearColdWater_res.mat. Warning: Get data of variable _derdummy from file ModelicaTest_3.2.1_cpp_ModelicaTest.Media.TestAllProperties.LinearColdWater_res.mat failed! Error: Could not read variable _dummy in file ModelicaTest_3.2.1_cpp_ModelicaTest.Media.TestAllProperties.LinearColdWater_res.mat. Warning: Get data of variable _dummy from file ModelicaTest_3.2.1_cpp_ModelicaTest.Media.TestAllProperties.LinearColdWater_res.mat failed! Error: Could not read variable eps in file ModelicaTest_3.2.1_cpp_ModelicaTest.Media.TestAllProperties.LinearColdWater_res.mat. Warning: Get data of variable eps from file ModelicaTest_3.2.1_cpp_ModelicaTest.Media.TestAllProperties.LinearColdWater_res.mat failed! Error: Could not read variable t_min in file ModelicaTest_3.2.1_cpp_ModelicaTest.Media.TestAllProperties.LinearColdWater_res.mat. Warning: Get data of variable t_min from file ModelicaTest_3.2.1_cpp_ModelicaTest.Media.TestAllProperties.LinearColdWater_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