Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestUtilities.TestRegRootDerivative.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegRootDerivative,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestUtilities_TestRegRootDerivative",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.525/2.525, allocations: 234.9 MB / 250.5 MB, free: 9.695 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006373/0.0006376, allocations: 12 kB / 314.4 MB, free: 9.656 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3697/0.3704, allocations: 54.86 MB / 369.3 MB, free: 12.79 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRootDerivative): time 0.0007017/0.3712, allocations: 236.4 kB / 369.5 MB, free: 12.56 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000311/0.3715, allocations: 94 kB / 369.6 MB, free: 12.47 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.166e-05/0.3715, allocations: 0 / 369.6 MB, free: 12.47 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.35e-05/0.3716, allocations: 0 / 369.6 MB, free: 12.47 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 1.969e-05/0.3716, allocations: 0 / 369.6 MB, free: 12.47 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001727/0.3718, allocations: 11.98 kB / 369.6 MB, free: 12.46 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 4.449e-05/0.3718, allocations: 11.92 kB / 369.6 MB, free: 12.45 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.741e-05/0.3719, allocations: 4 kB / 369.6 MB, free: 12.44 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.669e-05/0.3719, allocations: 7.922 kB / 369.6 MB, free: 12.43 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.225e-05/0.372, allocations: 7.984 kB / 369.6 MB, free: 12.43 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.316e-05/0.372, allocations: 0 / 369.6 MB, free: 12.43 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.845e-05/0.3721, allocations: 35.97 kB / 369.7 MB, free: 12.39 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.416e-06/0.3722, allocations: 0 / 369.7 MB, free: 12.39 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.262e-05/0.3722, allocations: 25.7 kB / 369.7 MB, free: 12.36 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 7.752e-05/0.3723, allocations: 19.98 kB / 369.7 MB, free: 12.34 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.464e-06/0.3723, allocations: 0 / 369.7 MB, free: 12.34 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3723, allocations: 0 / 369.7 MB, free: 12.34 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.532e-06/0.3723, allocations: 0 / 369.7 MB, free: 12.34 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0004566/0.3728, allocations: 329 kB / 370 MB, free: 11.97 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.794e-05/0.3728, allocations: 8.031 kB / 370 MB, free: 11.96 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.349e-05/0.3729, allocations: 38.55 kB / 370.1 MB, free: 11.92 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.189e-05/0.373, allocations: 11.95 kB / 370.1 MB, free: 11.91 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000155/0.3731, allocations: 159.1 kB / 370.2 MB, free: 11.71 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.348e-05/0.3731, allocations: 0 / 370.2 MB, free: 11.71 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.642e-05/0.3732, allocations: 4 kB / 370.3 MB, free: 11.71 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001562/0.3733, allocations: 51.41 kB / 370.3 MB, free: 11.64 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.568e-06/0.3734, allocations: 0 / 370.3 MB, free: 11.64 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.214e-05/0.3734, allocations: 3.984 kB / 370.3 MB, free: 11.64 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.801e-06/0.3734, allocations: 0 / 370.3 MB, free: 11.64 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.433e-05/0.3735, allocations: 27.88 kB / 370.3 MB, free: 11.61 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000369/0.3739, allocations: 314.2 kB / 370.6 MB, free: 11.25 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.368e-05/0.3739, allocations: 30.52 kB / 370.7 MB, free: 11.21 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.632e-05/0.374, allocations: 3.938 kB / 370.7 MB, free: 11.21 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.277e-05/0.374, allocations: 30.66 kB / 370.7 MB, free: 11.17 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 1.743e-06/0.374, allocations: 4 kB / 370.7 MB, free: 11.17 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002377/0.3743, allocations: 61.53 kB / 370.8 MB, free: 11.1 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.677e-05/0.3743, allocations: 51.41 kB / 370.8 MB, free: 11.04 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.369e-05/0.3744, allocations: 97.86 kB / 370.9 MB, free: 10.93 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.734e-05/0.3745, allocations: 29.64 kB / 370.9 MB, free: 10.9 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.885e-05/0.3746, allocations: 150.6 kB / 371.1 MB, free: 10.75 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.404e-05/0.3746, allocations: 23.73 kB / 371.1 MB, free: 10.73 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.207e-06/0.3746, allocations: 0 / 371.1 MB, free: 10.73 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000139/0.3748, allocations: 319 kB / 371.4 MB, free: 10.41 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.662e-05/0.3748, allocations: 7.938 kB / 371.4 MB, free: 10.4 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.525e-05/0.3749, allocations: 21.72 kB / 371.5 MB, free: 10.37 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.44e-05/0.3749, allocations: 12 kB / 371.5 MB, free: 10.36 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.3749, allocations: 0 / 371.5 MB, free: 10.36 MB / 298.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001411/0.3751, allocations: 49.69 kB / 371.5 MB, free: 10.3 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.042e-05/0.3751, allocations: 11.92 kB / 371.5 MB, free: 10.29 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.3751, allocations: 0 / 371.5 MB, free: 10.29 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.731e-05/0.3752, allocations: 8.031 kB / 371.5 MB, free: 10.29 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001097/0.3753, allocations: 7.953 kB / 371.5 MB, free: 10.28 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.452e-06/0.3753, allocations: 0 / 371.5 MB, free: 10.28 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.532e-05/0.3753, allocations: 8 kB / 371.5 MB, free: 10.27 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.348e-06/0.3754, allocations: 0 / 371.5 MB, free: 10.27 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (5): * Single equations (assignments): 5 * 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.405e-05/0.3755, allocations: 109.8 kB / 371.7 MB, free: 10.15 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.734e-05/0.3755, allocations: 0 / 371.7 MB, free: 10.15 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000188/0.3757, allocations: 73.02 kB / 371.7 MB, free: 10.07 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.087e-06/0.3757, allocations: 4 kB / 371.7 MB, free: 10.07 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.233e-06/0.3757, allocations: 3.953 kB / 371.7 MB, free: 10.07 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.938e-06/0.3757, allocations: 0 / 371.7 MB, free: 10.07 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000208/0.376, allocations: 153.7 kB / 371.9 MB, free: 9.867 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.376, allocations: 4 kB / 371.9 MB, free: 9.863 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.693e-05/0.3761, allocations: 4 kB / 371.9 MB, free: 9.859 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.3761, allocations: 0 / 371.9 MB, free: 9.859 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.149e-05/0.3761, allocations: 0 / 371.9 MB, free: 9.859 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.547e-06/0.3761, allocations: 11.92 kB / 371.9 MB, free: 9.848 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.3761, allocations: 0 / 371.9 MB, free: 9.848 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001715/0.3763, allocations: 155.5 kB / 372.1 MB, free: 9.68 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.538e-05/0.3763, allocations: 81.05 kB / 372.1 MB, free: 9.582 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.846e-05/0.3764, allocations: 4.25 kB / 372.1 MB, free: 9.578 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.052e-05/0.3765, allocations: 7.984 kB / 372.1 MB, free: 9.57 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.991e-05/0.3765, allocations: 3.938 kB / 372.2 MB, free: 9.566 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.12e-06/0.3765, allocations: 0 / 372.2 MB, free: 9.566 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.305e-05/0.3766, allocations: 83.28 kB / 372.2 MB, free: 9.484 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.3766, allocations: 0 / 372.2 MB, free: 9.484 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002766/0.3769, allocations: 12.05 kB / 372.2 MB, free: 9.473 MB / 298.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 (5): * Single equations (assignments): 5 * 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.00051/0.3774, allocations: 0.6812 MB / 372.9 MB, free: 8.766 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001323/0.3776, allocations: 32.09 kB / 373 MB, free: 8.734 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.3776, allocations: 0 / 373 MB, free: 8.734 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.452e-05/0.3776, allocations: 20.06 kB / 373 MB, free: 8.715 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001654/0.3778, allocations: 3.984 kB / 373 MB, free: 8.711 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004731/0.3783, allocations: 162.1 kB / 373.1 MB, free: 8.504 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003219/0.3786, allocations: 0.677 MB / 373.8 MB, free: 7.801 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.028e-05/0.3787, allocations: 11.44 kB / 373.8 MB, free: 7.789 MB / 298.7 MB Notification: Performance of SimCode: time 2.776e-06/0.3787, allocations: 0 / 373.8 MB, free: 7.789 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.226/2.605, allocations: 0.7464 MB / 374.6 MB, free: 7.047 MB / 298.7 MB "Error: Could not read variable _derdummy in file ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestUtilities.TestRegRootDerivative_res.mat. Warning: Get data of variable _derdummy from file ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestUtilities.TestRegRootDerivative_res.mat failed! Error: Could not read variable _dummy in file ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestUtilities.TestRegRootDerivative_res.mat. Warning: Get data of variable _dummy from file ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestUtilities.TestRegRootDerivative_res.mat failed! " Variables in the reference:time,x,y,yd,k1,k2 Variables in the result:k1,k2,time,x,x_small,y,yd