Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Math.Nonlinear.Examples.quadratureLobatto3.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/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.2_cpp_Modelica.Math.Nonlinear.Examples.quadratureLobatto3") Notification: Performance of loadModel(Modelica): time 2.06/2.06, allocations: 194.9 MB / 211.7 MB, free: 2.988 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003503/0.0003505, allocations: 8 kB / 263.8 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07932/0.0797, allocations: 44.5 MB / 308.4 MB, free: 1.031 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Nonlinear.Examples.quadratureLobatto3): time 0.0006224/0.08037, allocations: 261.4 kB / 308.6 MB, free: 0.7734 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002217/0.0826, allocations: 1.437 MB / 310 MB, free: 15.32 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.504e-05/0.08265, allocations: 0 / 310 MB, free: 15.32 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 1.264e-05/0.08268, allocations: 0 / 310 MB, free: 15.32 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005403/0.08323, allocations: 127.5 kB / 310.2 MB, free: 15.2 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 2.519e-05/0.08327, allocations: 3.984 kB / 310.2 MB, free: 15.19 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 3.988e-05/0.08332, allocations: 7.984 kB / 310.2 MB, free: 15.18 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.985e-05/0.08338, allocations: 4 kB / 310.2 MB, free: 15.18 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.002e-05/0.08343, allocations: 4 kB / 310.2 MB, free: 15.18 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.939e-05/0.08349, allocations: 15.91 kB / 310.2 MB, free: 15.16 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.092e-05/0.08351, allocations: 0 / 310.2 MB, free: 15.16 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004289/0.08395, allocations: 215.7 kB / 310.4 MB, free: 14.95 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 1.223e-05/0.08398, allocations: 3.984 kB / 310.4 MB, free: 14.95 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 2.565e-05/0.08402, allocations: 29.7 kB / 310.4 MB, free: 14.91 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00024/0.08427, allocations: 123.8 kB / 310.6 MB, free: 14.79 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.502e-06/0.08428, allocations: 0 / 310.6 MB, free: 14.79 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.891e-06/0.0843, allocations: 0 / 310.6 MB, free: 14.79 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.275e-06/0.08431, allocations: 0 / 310.6 MB, free: 14.79 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0004616/0.08478, allocations: 355.4 kB / 310.9 MB, free: 14.39 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.697e-05/0.08483, allocations: 8.031 kB / 310.9 MB, free: 14.39 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.444e-05/0.08487, allocations: 7.906 kB / 310.9 MB, free: 14.38 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001606/0.08504, allocations: 163 kB / 311.1 MB, free: 14.18 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.091e-05/0.08507, allocations: 3.984 kB / 311.1 MB, free: 14.18 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.498e-05/0.08511, allocations: 8 kB / 311.1 MB, free: 14.17 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.381e-05/0.08521, allocations: 41.62 kB / 311.1 MB, free: 14.12 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.127e-05/0.08523, allocations: 0 / 311.1 MB, free: 14.12 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.491e-06/0.08525, allocations: 0 / 311.1 MB, free: 14.12 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.917e-06/0.08526, allocations: 0 / 311.1 MB, free: 14.12 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.706e-05/0.08531, allocations: 11.92 kB / 311.2 MB, free: 14.11 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002062/0.08553, allocations: 165.9 kB / 311.3 MB, free: 13.9 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.816e-05/0.08563, allocations: 26.58 kB / 311.3 MB, free: 13.86 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.378e-05/0.08566, allocations: 7.938 kB / 311.3 MB, free: 13.86 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.75e-05/0.08571, allocations: 42.64 kB / 311.4 MB, free: 13.8 MB / 266.7 MB Notification: Performance of pre-optimization done (n=3): time 1.869e-06/0.08572, allocations: 0 / 311.4 MB, free: 13.8 MB / 266.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001515/0.08588, allocations: 45.69 kB / 311.4 MB, free: 13.75 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.381e-05/0.08594, allocations: 51.41 kB / 311.5 MB, free: 13.69 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001002/0.08605, allocations: 97.86 kB / 311.6 MB, free: 13.59 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.259e-05/0.08609, allocations: 29.7 kB / 311.6 MB, free: 13.55 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.012e-05/0.08618, allocations: 154.6 kB / 311.8 MB, free: 13.4 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.804e-05/0.08623, allocations: 11.8 kB / 311.8 MB, free: 13.39 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.8e-06/0.08624, allocations: 0 / 311.8 MB, free: 13.39 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001621/0.08641, allocations: 318.8 kB / 312.1 MB, free: 13.07 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.273e-05/0.08645, allocations: 0 / 312.1 MB, free: 13.07 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.958e-05/0.0865, allocations: 29.64 kB / 312.1 MB, free: 13.03 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.718e-05/0.08655, allocations: 11.95 kB / 312.1 MB, free: 13.02 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.437e-06/0.08656, allocations: 0 / 312.1 MB, free: 13.02 MB / 266.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001194/0.08669, allocations: 53.69 kB / 312.2 MB, free: 12.96 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.134e-05/0.08672, allocations: 11.94 kB / 312.2 MB, free: 12.95 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.363e-06/0.08674, allocations: 3.938 kB / 312.2 MB, free: 12.95 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.23e-05/0.08676, allocations: 0 / 312.2 MB, free: 12.95 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.389e-05/0.08685, allocations: 8 kB / 312.2 MB, free: 12.94 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.633e-06/0.08687, allocations: 0 / 312.2 MB, free: 12.94 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.676e-05/0.08691, allocations: 0 / 312.2 MB, free: 12.94 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.055e-05/0.08693, allocations: 8 kB / 312.2 MB, free: 12.93 MB / 266.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.049e-05/0.08703, allocations: 109.8 kB / 312.3 MB, free: 12.81 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.533e-05/0.08706, allocations: 8.359 kB / 312.3 MB, free: 12.8 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.279e-05/0.0871, allocations: 15.48 kB / 312.3 MB, free: 12.79 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.636e-06/0.08711, allocations: 0 / 312.3 MB, free: 12.79 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.56e-06/0.08713, allocations: 0 / 312.3 MB, free: 12.79 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.794e-06/0.08714, allocations: 3.984 kB / 312.3 MB, free: 12.78 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001453/0.08729, allocations: 149.7 kB / 312.5 MB, free: 12.59 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.513e-06/0.08731, allocations: 3.953 kB / 312.5 MB, free: 12.58 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.598e-05/0.08741, allocations: 16.12 kB / 312.5 MB, free: 12.57 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.977e-06/0.08742, allocations: 0 / 312.5 MB, free: 12.57 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.197e-06/0.08744, allocations: 0 / 312.5 MB, free: 12.57 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.351e-06/0.08745, allocations: 0 / 312.5 MB, free: 12.57 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.748e-06/0.08746, allocations: 4 kB / 312.5 MB, free: 12.56 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001571/0.08763, allocations: 81.08 kB / 312.6 MB, free: 12.46 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.289e-05/0.08771, allocations: 84.97 kB / 312.7 MB, free: 12.36 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.781e-05/0.08774, allocations: 4 kB / 312.7 MB, free: 12.36 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.569e-05/0.08777, allocations: 3.938 kB / 312.7 MB, free: 12.36 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.176e-05/0.0878, allocations: 0 / 312.7 MB, free: 12.36 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.108e-06/0.08781, allocations: 4 kB / 312.7 MB, free: 12.35 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.819e-05/0.08789, allocations: 87.33 kB / 312.8 MB, free: 12.27 MB / 266.7 MB Notification: Performance of sort global known variables: time 7.73e-07/0.08791, allocations: 0 / 312.8 MB, free: 12.27 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003402/0.08826, allocations: 48 kB / 312.8 MB, free: 12.22 MB / 266.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.0003055/0.08857, allocations: 151.2 kB / 313 MB, free: 12.06 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 9.459e-05/0.08869, allocations: 19.94 kB / 313 MB, free: 12.04 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.318e-06/0.0887, allocations: 0 / 313 MB, free: 12.04 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 2.443e-05/0.08874, allocations: 7.984 kB / 313 MB, free: 12.04 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001152/0.08886, allocations: 12 kB / 313 MB, free: 12.02 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002966/0.08918, allocations: 160.5 kB / 313.2 MB, free: 11.83 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000341/0.08953, allocations: 0.677 MB / 313.8 MB, free: 11.13 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.964e-05/0.08957, allocations: 11.44 kB / 313.8 MB, free: 11.12 MB / 266.7 MB Notification: Performance of SimCode: time 1.245e-06/0.08958, allocations: 0 / 313.8 MB, free: 11.12 MB / 266.7 MB Notification: Performance of Templates: time 0.003437/0.09303, allocations: 1.23 MB / 315.1 MB, free: 9.891 MB / 266.7 MB make -j1 -f Modelica_3.2.2_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.2_cpp_Modelica.Math.Nonlinear.Examples.quadratureLobatto3CalcHelperMain.o OMCppModelica_3.2.2_cpp_Modelica.Math.Nonlinear.Examples.quadratureLobatto3CalcHelperMain.cpp\nIn file included from OMCppModelica_3.2.2_cpp_Modelica.Math.Nonlinear.Examples.quadratureLobatto3CalcHelperMain.cpp:28:\n./OMCppModelica_3.2.2_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.2_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.2_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.2_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.2_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.2_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.2_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.2_cpp_Modelica.Math.Nonlinear.Examples.quadratureLobatto3CalcHelperMain.o\' failed\nmake: *** [OMCppModelica_3.2.2_cpp_Modelica.Math.Nonlinear.Examples.quadratureLobatto3CalcHelperMain.o] Error 1\n'