Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Media.Examples.SimpleLiquidWater.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.SimpleLiquidWater,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Media_Examples_SimpleLiquidWater",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.689/1.689, allocations: 171.2 MB / 186.7 MB, free: 1.137 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003592/0.0003594, allocations: 11.98 kB / 233.2 MB, free: 2.984 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08221/0.0826, allocations: 38.78 MB / 272 MB, free: 12.13 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SimpleLiquidWater): time 0.005964/0.08862, allocations: 3.657 MB / 275.7 MB, free: 8.445 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002526/0.0912, allocations: 1.512 MB / 277.2 MB, free: 6.926 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.601e-05/0.09129, allocations: 3.938 kB / 277.2 MB, free: 6.922 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002634/0.09156, allocations: 35.84 kB / 277.2 MB, free: 6.887 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003536/0.09193, allocations: 107.7 kB / 277.3 MB, free: 6.781 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009003/0.09285, allocations: 219.5 kB / 277.5 MB, free: 6.566 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003546/0.09321, allocations: 179.7 kB / 277.7 MB, free: 6.391 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.892e-05/0.09327, allocations: 9.125 kB / 277.7 MB, free: 6.383 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003203/0.0936, allocations: 119.7 kB / 277.8 MB, free: 6.266 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001292/0.09375, allocations: 63.7 kB / 277.9 MB, free: 6.203 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 3.868e-05/0.0938, allocations: 8 kB / 277.9 MB, free: 6.195 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003323/0.09415, allocations: 95.89 kB / 278 MB, free: 6.102 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 8.188e-05/0.09424, allocations: 31.89 kB / 278 MB, free: 6.07 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 6.64e-05/0.09432, allocations: 53.64 kB / 278.1 MB, free: 6.012 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003268/0.09466, allocations: 144 kB / 278.2 MB, free: 5.871 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.304e-06/0.09468, allocations: 0 / 278.2 MB, free: 5.871 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.09469, allocations: 0 / 278.2 MB, free: 5.871 MB / 234.7 MB Notification: Performance of Transformations before backend: time 5.009e-06/0.0947, allocations: 0 / 278.2 MB, free: 5.871 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.001214/0.09592, allocations: 455.2 kB / 278.7 MB, free: 5.375 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.566e-05/0.09598, allocations: 8.031 kB / 278.7 MB, free: 5.367 MB / 234.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.303e-05/0.09606, allocations: 50.48 kB / 278.7 MB, free: 5.309 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002224/0.09629, allocations: 19.91 kB / 278.8 MB, free: 5.289 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002758/0.09658, allocations: 210.8 kB / 279 MB, free: 5.043 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.976e-05/0.09662, allocations: 8.281 kB / 279 MB, free: 5.035 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.117e-05/0.09668, allocations: 19.94 kB / 279 MB, free: 5.016 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006223/0.09731, allocations: 216.6 kB / 279.2 MB, free: 4.781 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.734e-05/0.09734, allocations: 0 / 279.2 MB, free: 4.781 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.85e-05/0.09739, allocations: 8 kB / 279.2 MB, free: 4.773 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.096e-05/0.09741, allocations: 4 kB / 279.2 MB, free: 4.77 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005982/0.09802, allocations: 155.8 kB / 279.4 MB, free: 4.617 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00182/0.09985, allocations: 0.944 MB / 280.3 MB, free: 3.598 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00062/0.1005, allocations: 142.8 kB / 280.4 MB, free: 3.449 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007072/0.1012, allocations: 0.5109 MB / 281 MB, free: 2.875 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.107e-05/0.1013, allocations: 38.5 kB / 281 MB, free: 2.828 MB / 234.7 MB Notification: Performance of pre-optimization done (n=14): time 1.813e-06/0.1013, allocations: 0 / 281 MB, free: 2.828 MB / 234.7 MB Notification: Performance of matching and sorting (n=20): time 0.004433/0.1057, allocations: 0.759 MB / 281.8 MB, free: 2.02 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.064e-05/0.1058, allocations: 55.41 kB / 281.8 MB, free: 1.953 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001872/0.106, allocations: 150.9 kB / 282 MB, free: 1.797 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 3.938e-05/0.106, allocations: 29.7 kB / 282 MB, free: 1.762 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001298/0.1062, allocations: 214.2 kB / 282.2 MB, free: 1.551 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.847e-05/0.1063, allocations: 71.02 kB / 282.3 MB, free: 1.48 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.482e-05/0.1063, allocations: 4 kB / 282.3 MB, free: 1.477 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001322/0.1064, allocations: 322.8 kB / 282.6 MB, free: 1.152 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004361/0.1069, allocations: 83.94 kB / 282.7 MB, free: 1.07 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005263/0.1074, allocations: 197.5 kB / 282.9 MB, free: 0.8281 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004851/0.1079, allocations: 112.6 kB / 283 MB, free: 0.7227 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.37e-06/0.108, allocations: 0 / 283 MB, free: 0.7227 MB / 234.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.00119/0.1092, allocations: 318.2 kB / 283.3 MB, free: 416 kB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.214e-05/0.1092, allocations: 7.953 kB / 283.3 MB, free: 408 kB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.095e-05/0.1092, allocations: 4 kB / 283.3 MB, free: 404 kB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.083e-05/0.1092, allocations: 8.469 kB / 283.3 MB, free: 396 kB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006686/0.1099, allocations: 87.83 kB / 283.4 MB, free: 308 kB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.827e-05/0.11, allocations: 7.938 kB / 283.4 MB, free: 300 kB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003955/0.1104, allocations: 19.98 kB / 283.4 MB, free: 280 kB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.979e-05/0.1104, allocations: 16 kB / 283.4 MB, free: 264 kB / 234.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (37): * Single equations (assignments): 37 * 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.0001653/0.1106, allocations: 133.8 kB / 283.6 MB, free: 120 kB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.366e-05/0.1107, allocations: 15.81 kB / 283.6 MB, free: 104 kB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00112/0.1118, allocations: 238.7 kB / 283.8 MB, free: 15.86 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.618e-06/0.1118, allocations: 0 / 283.8 MB, free: 15.86 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.105e-06/0.1118, allocations: 4 kB / 283.8 MB, free: 15.85 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.01e-05/0.1119, allocations: 3.953 kB / 283.8 MB, free: 15.85 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002033/0.1139, allocations: 0.5873 MB / 284.4 MB, free: 15.2 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.091e-06/0.1139, allocations: 8.125 kB / 284.4 MB, free: 15.19 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005318/0.1145, allocations: 59.89 kB / 284.5 MB, free: 15.13 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.648e-06/0.1145, allocations: 0 / 284.5 MB, free: 15.13 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.299e-05/0.1145, allocations: 8 kB / 284.5 MB, free: 15.12 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.716e-06/0.1145, allocations: 7.984 kB / 284.5 MB, free: 15.11 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.1146, allocations: 0 / 284.5 MB, free: 15.11 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001411/0.116, allocations: 410.5 kB / 284.9 MB, free: 14.68 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.475e-05/0.1161, allocations: 88.92 kB / 285 MB, free: 14.58 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.998e-05/0.1161, allocations: 7.984 kB / 285 MB, free: 14.57 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003983/0.1165, allocations: 15.98 kB / 285 MB, free: 14.55 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.806e-05/0.1166, allocations: 11.98 kB / 285 MB, free: 14.54 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.747e-05/0.1166, allocations: 12 kB / 285 MB, free: 14.53 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001068/0.1168, allocations: 110.4 kB / 285.1 MB, free: 14.43 MB / 250.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.1168, allocations: 0 / 285.1 MB, free: 14.43 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0005151/0.1173, allocations: 72 kB / 285.2 MB, free: 14.36 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 1 (medium.T) * 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 (20): * Single equations (assignments): 20 * 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 Backend phase and start with SimCode phase: time 0.001805/0.1191, allocations: 0.9601 MB / 286.2 MB, free: 13.36 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0009824/0.1201, allocations: 223.6 kB / 286.4 MB, free: 13.14 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.1201, allocations: 0.9375 kB / 286.4 MB, free: 13.14 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004347/0.1206, allocations: 92.14 kB / 286.5 MB, free: 13.05 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004918/0.1211, allocations: 29.34 kB / 286.5 MB, free: 13.02 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003571/0.1247, allocations: 1.296 MB / 287.8 MB, free: 11.61 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003453/0.125, allocations: 0.7245 MB / 288.5 MB, free: 10.86 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002223/0.1253, allocations: 51.41 kB / 288.6 MB, free: 10.81 MB / 250.7 MB Notification: Performance of SimCode: time 9.42e-07/0.1253, allocations: 0 / 288.6 MB, free: 10.81 MB / 250.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.422/2.547, allocations: 3.184 MB / 291.8 MB, free: 7.621 MB / 250.7 MB "Error: Could not read variable der(m) in file Modelica_3.2.1_cpp_Modelica.Media.Examples.SimpleLiquidWater_res.mat. Warning: Get data of variable der(m) from file Modelica_3.2.1_cpp_Modelica.Media.Examples.SimpleLiquidWater_res.mat failed! " Variables in the reference:time,medium.T Variables in the result:H_flow_ext,U,V,cv,der(U),der(m_flow_ext2),der(medium.T),der(medium.u),der(medium2.state.p),der(state.T),der(state.p),der_T,der_p,eta,m,m_flow_ext,m_flow_ext2,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,medium2.MM,medium2.R,medium2.T,medium2.T_degC,medium2.X[1],medium2.d,medium2.h,medium2.p,medium2.p_bar,medium2.preferredMediumStates,medium2.standardOrderComponents,medium2.state.T,medium2.state.p,medium2.u,state.T,state.p,time