Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Math.Nonlinear.Examples.quadratureLobatto3.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) Running command: translateModel(Modelica.Math.Nonlinear.Examples.quadratureLobatto3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|q|qd",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Math.Nonlinear.Examples.quadratureLobatto3") Notification: Performance of loadModel(Modelica): time 1.738/1.738, allocations: 171.1 MB / 186.7 MB, free: 1.051 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003493/0.0003495, allocations: 12 kB / 233.2 MB, free: 3.055 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06858/0.06895, allocations: 38.77 MB / 271.9 MB, free: 12.2 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Nonlinear.Examples.quadratureLobatto3): time 0.0006526/0.06965, allocations: 248.5 kB / 272.2 MB, free: 11.96 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002297/0.07197, allocations: 1.433 MB / 273.6 MB, free: 10.51 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.121e-05/0.07203, allocations: 4 kB / 273.6 MB, free: 10.5 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 1.449e-05/0.07206, allocations: 0 / 273.6 MB, free: 10.5 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005394/0.07261, allocations: 115.7 kB / 273.7 MB, free: 10.39 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 2.664e-05/0.07265, allocations: 4 kB / 273.7 MB, free: 10.39 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 4.187e-05/0.07271, allocations: 11.92 kB / 273.7 MB, free: 10.38 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.349e-05/0.07276, allocations: 7.984 kB / 273.7 MB, free: 10.37 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.39e-05/0.07281, allocations: 4 kB / 273.7 MB, free: 10.36 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.377e-05/0.07287, allocations: 11.94 kB / 273.8 MB, free: 10.35 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 1.13e-05/0.0729, allocations: 0 / 273.8 MB, free: 10.35 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004206/0.07333, allocations: 215.7 kB / 274 MB, free: 10.14 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 1.687e-05/0.07336, allocations: 7.984 kB / 274 MB, free: 10.13 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 2.879e-05/0.0734, allocations: 29.64 kB / 274 MB, free: 10.1 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002433/0.07365, allocations: 115.8 kB / 274.1 MB, free: 9.984 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.234e-06/0.07367, allocations: 4 kB / 274.1 MB, free: 9.98 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.333e-06/0.07369, allocations: 0 / 274.1 MB, free: 9.98 MB / 234.7 MB Notification: Performance of Transformations before backend: time 4.678e-06/0.0737, allocations: 0 / 274.1 MB, free: 9.98 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0004685/0.07418, allocations: 356.9 kB / 274.5 MB, free: 9.586 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.707e-05/0.07423, allocations: 8.031 kB / 274.5 MB, free: 9.578 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.248e-05/0.07427, allocations: 7.922 kB / 274.5 MB, free: 9.57 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001649/0.07445, allocations: 163.1 kB / 274.6 MB, free: 9.371 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.695e-05/0.07448, allocations: 7.953 kB / 274.7 MB, free: 9.363 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.486e-05/0.07452, allocations: 11.89 kB / 274.7 MB, free: 9.352 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.74e-05/0.07461, allocations: 33.69 kB / 274.7 MB, free: 9.312 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.112e-05/0.07464, allocations: 0 / 274.7 MB, free: 9.312 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.086e-06/0.07465, allocations: 0 / 274.7 MB, free: 9.312 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.757e-06/0.07467, allocations: 4 kB / 274.7 MB, free: 9.309 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.15e-05/0.07472, allocations: 11.94 kB / 274.7 MB, free: 9.297 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002099/0.07494, allocations: 157.9 kB / 274.9 MB, free: 9.094 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.1e-05/0.07504, allocations: 34.61 kB / 274.9 MB, free: 9.051 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.344e-05/0.07507, allocations: 3.953 kB / 274.9 MB, free: 9.047 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.231e-05/0.07511, allocations: 34.56 kB / 274.9 MB, free: 9.004 MB / 234.7 MB Notification: Performance of pre-optimization done (n=3): time 4.214e-06/0.07513, allocations: 4 kB / 274.9 MB, free: 9 MB / 234.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001598/0.0753, allocations: 53.66 kB / 275 MB, free: 8.941 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.207e-05/0.07535, allocations: 51.41 kB / 275 MB, free: 8.879 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001061/0.07547, allocations: 101.8 kB / 275.1 MB, free: 8.77 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 2.663e-05/0.07552, allocations: 25.7 kB / 275.2 MB, free: 8.738 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.195e-05/0.07561, allocations: 154.6 kB / 275.3 MB, free: 8.586 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.164e-05/0.07566, allocations: 11.81 kB / 275.3 MB, free: 8.574 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.639e-06/0.07567, allocations: 0 / 275.3 MB, free: 8.574 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001619/0.07584, allocations: 314.8 kB / 275.6 MB, free: 8.258 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.496e-05/0.07588, allocations: 12 kB / 275.7 MB, free: 8.246 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.716e-05/0.07594, allocations: 17.72 kB / 275.7 MB, free: 8.223 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.309e-05/0.07598, allocations: 8 kB / 275.7 MB, free: 8.215 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.07599, allocations: 0 / 275.7 MB, free: 8.215 MB / 234.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001278/0.07613, allocations: 57.62 kB / 275.7 MB, free: 8.152 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.808e-05/0.07616, allocations: 7.953 kB / 275.7 MB, free: 8.145 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.963e-06/0.07618, allocations: 4 kB / 275.7 MB, free: 8.141 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.219e-05/0.0762, allocations: 4.031 kB / 275.7 MB, free: 8.137 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.017e-05/0.0763, allocations: 11.98 kB / 275.8 MB, free: 8.125 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.53e-06/0.07632, allocations: 0 / 275.8 MB, free: 8.125 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.786e-05/0.07636, allocations: 0 / 275.8 MB, free: 8.125 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.656e-06/0.07637, allocations: 0 / 275.8 MB, free: 8.125 MB / 234.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.548e-05/0.07648, allocations: 113.8 kB / 275.9 MB, free: 8.004 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.558e-05/0.0765, allocations: 4 kB / 275.9 MB, free: 8 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.053e-05/0.07654, allocations: 7.875 kB / 275.9 MB, free: 7.988 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.033e-06/0.07656, allocations: 4 kB / 275.9 MB, free: 7.984 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.241e-06/0.07657, allocations: 4 kB / 275.9 MB, free: 7.98 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.343e-06/0.07659, allocations: 0 / 275.9 MB, free: 7.98 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001602/0.07675, allocations: 161.6 kB / 276 MB, free: 7.773 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.349e-06/0.07677, allocations: 128 / 276 MB, free: 7.773 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.696e-05/0.07687, allocations: 19.92 kB / 276.1 MB, free: 7.754 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.984e-06/0.07689, allocations: 0 / 276.1 MB, free: 7.754 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.36e-06/0.0769, allocations: 0 / 276.1 MB, free: 7.754 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.794e-06/0.07692, allocations: 3.953 kB / 276.1 MB, free: 7.75 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.07693, allocations: 0 / 276.1 MB, free: 7.75 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001648/0.0771, allocations: 84.97 kB / 276.2 MB, free: 7.648 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.849e-05/0.07717, allocations: 81.14 kB / 276.2 MB, free: 7.551 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.427e-05/0.07721, allocations: 3.984 kB / 276.2 MB, free: 7.547 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.583e-05/0.07725, allocations: 3.938 kB / 276.2 MB, free: 7.543 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.605e-05/0.07727, allocations: 3.953 kB / 276.2 MB, free: 7.539 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.895e-06/0.07729, allocations: 4 kB / 276.2 MB, free: 7.535 MB / 234.7 MB Notification: Performance of sorting global known variables: time 6.291e-05/0.07736, allocations: 83.28 kB / 276.3 MB, free: 7.453 MB / 234.7 MB Notification: Performance of sort global known variables: time 7.06e-07/0.07737, allocations: 0 / 276.3 MB, free: 7.453 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.0003473/0.07773, allocations: 47.98 kB / 276.4 MB, free: 7.406 MB / 234.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (q,qd) * 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 (3): * Single equations (assignments): 3 * 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.0003119/0.07805, allocations: 159.3 kB / 276.5 MB, free: 7.242 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 9.607e-05/0.07817, allocations: 15.98 kB / 276.5 MB, free: 7.227 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 2.772e-06/0.07818, allocations: 0 / 276.5 MB, free: 7.227 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 2.939e-05/0.07822, allocations: 11.94 kB / 276.6 MB, free: 7.215 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001129/0.07834, allocations: 0 / 276.6 MB, free: 7.215 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003087/0.07867, allocations: 168.6 kB / 276.7 MB, free: 7.016 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000349/0.07903, allocations: 0.677 MB / 277.4 MB, free: 6.312 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.564e-05/0.07907, allocations: 11.44 kB / 277.4 MB, free: 6.301 MB / 234.7 MB Notification: Performance of SimCode: time 1.464e-06/0.07908, allocations: 0 / 277.4 MB, free: 6.301 MB / 234.7 MB Notification: Performance of Templates: time 0.003475/0.08257, allocations: 1.233 MB / 278.6 MB, free: 5.07 MB / 234.7 MB make -j1 -f Modelica_3.2.1_cpp_Modelica.Math.Nonlinear.Examples.quadratureLobatto3.makefile b'clang++ -fopenmp=libomp -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/include/omc/c/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelica_3.2.1_cpp_Modelica.Math.Nonlinear.Examples.quadratureLobatto3CalcHelperMain.o OMCppModelica_3.2.1_cpp_Modelica.Math.Nonlinear.Examples.quadratureLobatto3CalcHelperMain.cpp\nIn file included from OMCppModelica_3.2.1_cpp_Modelica.Math.Nonlinear.Examples.quadratureLobatto3CalcHelperMain.cpp:28:\n./OMCppModelica_3.2.1_cpp_Modelica.Math.Nonlinear.Examples.quadratureLobatto3Functions.cpp:175:56: error: use of undeclared identifier \'f_\'\n Modelica_Math_Nonlinear_quadratureLobatto_quadStep(f_, a_, b_, fa_, fb_, is_,tmp6);\n ^\n./OMCppModelica_3.2.1_cpp_Modelica.Math.Nonlinear.Examples.quadratureLobatto3Functions.cpp:333:58: error: use of undeclared identifier \'f_\'\n Modelica_Math_Nonlinear_quadratureLobatto_quadStep(f_, a_, mll_, fa_, fmll_, is_,tmp13);\n ^\n./OMCppModelica_3.2.1_cpp_Modelica.Math.Nonlinear.Examples.quadratureLobatto3Functions.cpp:334:58: error: use of undeclared identifier \'f_\'\n Modelica_Math_Nonlinear_quadratureLobatto_quadStep(f_, mll_, ml_, fmll_, fml_, is_,tmp14);\n ^\n./OMCppModelica_3.2.1_cpp_Modelica.Math.Nonlinear.Examples.quadratureLobatto3Functions.cpp:335:58: error: use of undeclared identifier \'f_\'\n Modelica_Math_Nonlinear_quadratureLobatto_quadStep(f_, ml_, m_, fml_, fm_, is_,tmp15);\n ^\n./OMCppModelica_3.2.1_cpp_Modelica.Math.Nonlinear.Examples.quadratureLobatto3Functions.cpp:336:58: error: use of undeclared identifier \'f_\'\n Modelica_Math_Nonlinear_quadratureLobatto_quadStep(f_, m_, mr_, fm_, fmr_, is_,tmp16);\n ^\n./OMCppModelica_3.2.1_cpp_Modelica.Math.Nonlinear.Examples.quadratureLobatto3Functions.cpp:337:58: error: use of undeclared identifier \'f_\'\n Modelica_Math_Nonlinear_quadratureLobatto_quadStep(f_, mr_, mrr_, fmr_, fmrr_, is_,tmp17);\n ^\n./OMCppModelica_3.2.1_cpp_Modelica.Math.Nonlinear.Examples.quadratureLobatto3Functions.cpp:338:58: error: use of undeclared identifier \'f_\'\n Modelica_Math_Nonlinear_quadratureLobatto_quadStep(f_, mrr_, b_, fmrr_, fb_, is_,tmp18);\n ^\n7 errors generated.\n: recipe for target \'OMCppModelica_3.2.1_cpp_Modelica.Math.Nonlinear.Examples.quadratureLobatto3CalcHelperMain.o\' failed\nmake: *** [OMCppModelica_3.2.1_cpp_Modelica.Math.Nonlinear.Examples.quadratureLobatto3CalcHelperMain.o] Error 1\n'