Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.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) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegFunctions,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestUtilities_TestRegFunctions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.837/1.837, allocations: 209.2 MB / 224.8 MB, free: 0.7617 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004309/0.000431, allocations: 12 kB / 282.6 MB, free: 9.617 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0992/0.09966, allocations: 48.71 MB / 331.3 MB, free: 8.812 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegFunctions): time 0.0007852/0.1005, allocations: 296.4 kB / 331.6 MB, free: 8.523 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003701/0.1009, allocations: 117.1 kB / 331.7 MB, free: 8.41 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.276e-05/0.1009, allocations: 0 / 331.7 MB, free: 8.41 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 1.049e-05/0.1009, allocations: 0 / 331.7 MB, free: 8.41 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002387/0.1012, allocations: 27.84 kB / 331.7 MB, free: 8.383 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 3.176e-06/0.1012, allocations: 0 / 331.7 MB, free: 8.383 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 4.854e-05/0.1013, allocations: 15.97 kB / 331.7 MB, free: 8.367 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.419e-05/0.1013, allocations: 4 kB / 331.7 MB, free: 8.363 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.563e-05/0.1014, allocations: 11.92 kB / 331.7 MB, free: 8.352 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.912e-05/0.1014, allocations: 15.92 kB / 331.8 MB, free: 8.336 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.255e-05/0.1014, allocations: 0 / 331.8 MB, free: 8.336 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001347/0.1016, allocations: 47.94 kB / 331.8 MB, free: 8.289 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.072e-05/0.1016, allocations: 7.984 kB / 331.8 MB, free: 8.281 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.23e-05/0.1017, allocations: 29.64 kB / 331.8 MB, free: 8.246 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 9.416e-05/0.1018, allocations: 23.97 kB / 331.9 MB, free: 8.223 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.515e-06/0.1018, allocations: 0 / 331.9 MB, free: 8.223 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1018, allocations: 0 / 331.9 MB, free: 8.223 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.717e-06/0.1018, allocations: 0 / 331.9 MB, free: 8.223 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0003001/0.1021, allocations: 338.5 kB / 332.2 MB, free: 7.848 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.394e-05/0.1022, allocations: 12.03 kB / 332.2 MB, free: 7.836 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.135e-05/0.1022, allocations: 34.56 kB / 332.2 MB, free: 7.793 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.795e-05/0.1022, allocations: 7.891 kB / 332.2 MB, free: 7.785 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001311/0.1024, allocations: 171.2 kB / 332.4 MB, free: 7.578 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.221e-05/0.1024, allocations: 0 / 332.4 MB, free: 7.578 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.648e-05/0.1024, allocations: 8 kB / 332.4 MB, free: 7.57 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001635/0.1026, allocations: 65.55 kB / 332.5 MB, free: 7.5 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.638e-06/0.1026, allocations: 4 kB / 332.5 MB, free: 7.496 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.04e-05/0.1027, allocations: 0 / 332.5 MB, free: 7.496 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.199e-06/0.1027, allocations: 0 / 332.5 MB, free: 7.496 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001514/0.1028, allocations: 51.95 kB / 332.5 MB, free: 7.445 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002105/0.103, allocations: 169.7 kB / 332.7 MB, free: 7.23 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001982/0.1033, allocations: 86.53 kB / 332.8 MB, free: 7.137 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004256/0.1037, allocations: 251.3 kB / 333 MB, free: 6.836 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.597e-05/0.1037, allocations: 38.56 kB / 333.1 MB, free: 6.789 MB / 282.7 MB Notification: Performance of pre-optimization done (n=10): time 1.603e-06/0.1038, allocations: 0 / 333.1 MB, free: 6.789 MB / 282.7 MB Notification: Performance of matching and sorting (n=10): time 0.0003018/0.1041, allocations: 101.8 kB / 333.2 MB, free: 6.684 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.525e-05/0.1041, allocations: 51.41 kB / 333.2 MB, free: 6.621 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.646e-05/0.1042, allocations: 93.84 kB / 333.3 MB, free: 6.52 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.23e-05/0.1042, allocations: 29.7 kB / 333.3 MB, free: 6.484 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.202e-05/0.1043, allocations: 150.6 kB / 333.5 MB, free: 6.336 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.508e-05/0.1043, allocations: 35.59 kB / 333.5 MB, free: 6.301 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.005e-06/0.1044, allocations: 4 kB / 333.5 MB, free: 6.297 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001165/0.1045, allocations: 314.8 kB / 333.8 MB, free: 5.98 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.447e-05/0.1045, allocations: 16 kB / 333.9 MB, free: 5.965 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.593e-05/0.1046, allocations: 19.98 kB / 333.9 MB, free: 5.945 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.886e-05/0.1047, allocations: 28.44 kB / 333.9 MB, free: 5.918 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.003e-06/0.1047, allocations: 0 / 333.9 MB, free: 5.918 MB / 282.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000187/0.1049, allocations: 81.64 kB / 334 MB, free: 5.832 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.756e-05/0.1049, allocations: 7.938 kB / 334 MB, free: 5.824 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.693e-06/0.105, allocations: 7.984 kB / 334 MB, free: 5.816 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.346e-05/0.105, allocations: 4 kB / 334 MB, free: 5.812 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001517/0.1051, allocations: 12 kB / 334 MB, free: 5.801 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.921e-06/0.1052, allocations: 0 / 334 MB, free: 5.801 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.697e-05/0.1052, allocations: 11.84 kB / 334 MB, free: 5.789 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.128e-05/0.1052, allocations: 7.938 kB / 334 MB, free: 5.781 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (10): * Single equations (assignments): 10 * 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 9.517e-05/0.1053, allocations: 113.8 kB / 334.1 MB, free: 5.66 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.686e-05/0.1054, allocations: 7.938 kB / 334.2 MB, free: 5.652 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002683/0.1056, allocations: 109.6 kB / 334.3 MB, free: 5.539 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.1057, allocations: 0 / 334.3 MB, free: 5.539 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.439e-06/0.1057, allocations: 0 / 334.3 MB, free: 5.539 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.908e-06/0.1057, allocations: 0 / 334.3 MB, free: 5.539 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001627/0.1058, allocations: 177.5 kB / 334.4 MB, free: 5.316 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.1059, allocations: 0 / 334.4 MB, free: 5.316 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001216/0.106, allocations: 15.94 kB / 334.4 MB, free: 5.301 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.37e-06/0.106, allocations: 3.953 kB / 334.5 MB, free: 5.297 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.233e-05/0.106, allocations: 4 kB / 334.5 MB, free: 5.293 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.244e-06/0.106, allocations: 0 / 334.5 MB, free: 5.293 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.1061, allocations: 0 / 334.5 MB, free: 5.293 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002205/0.1063, allocations: 117.2 kB / 334.6 MB, free: 5.16 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.623e-05/0.1064, allocations: 81.11 kB / 334.6 MB, free: 5.062 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.009e-05/0.1064, allocations: 7.891 kB / 334.7 MB, free: 5.055 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.064e-05/0.1065, allocations: 4 kB / 334.7 MB, free: 5.051 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.43e-05/0.1065, allocations: 7.984 kB / 334.7 MB, free: 5.043 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.127e-06/0.1065, allocations: 4 kB / 334.7 MB, free: 5.039 MB / 282.7 MB Notification: Performance of sorting global known variables: time 3.7e-05/0.1066, allocations: 75.28 kB / 334.7 MB, free: 4.965 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.1066, allocations: 4.094 kB / 334.8 MB, free: 4.961 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002611/0.1068, allocations: 20 kB / 334.8 MB, free: 4.941 MB / 282.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 10 * 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.0005279/0.1074, allocations: 0.6476 MB / 335.4 MB, free: 4.266 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001823/0.1076, allocations: 59.91 kB / 335.5 MB, free: 4.207 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.1076, allocations: 0 / 335.5 MB, free: 4.207 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 7.134e-05/0.1077, allocations: 31.94 kB / 335.5 MB, free: 4.176 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001206/0.1078, allocations: 11.94 kB / 335.5 MB, free: 4.164 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000568/0.1084, allocations: 210 kB / 335.7 MB, free: 3.91 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002523/0.1087, allocations: 0.6809 MB / 336.4 MB, free: 3.203 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.296e-05/0.1087, allocations: 15.42 kB / 336.4 MB, free: 3.188 MB / 282.7 MB Notification: Performance of SimCode: time 6.41e-07/0.1087, allocations: 4 kB / 336.4 MB, free: 3.184 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.337/2.445, allocations: 1.005 MB / 337.4 MB, free: 2.18 MB / 282.7 MB "Error: Could not read variable _derdummy in file ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.mat. Warning: Get data of variable _derdummy from file ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.mat failed! Error: Could not read variable _dummy in file ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.mat. Warning: Get data of variable _dummy from file ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.mat failed! " Variables in the reference:time,x,sqrtx,sqrtx_a,x2,x2_a,x3,x3_a,sqrtxerr,x2err,x3err Variables in the result:delta,sqrtx,sqrtx_a,sqrtxerr,time,x,x2,x2_a,x2err,x3,x3_a,x3err