Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Math.TestMatrices3.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) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.Math.TestMatrices3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Math.TestMatrices3") Notification: Performance of loadModel(ModelicaTest): time 2.455/2.455, allocations: 234.9 MB / 250.5 MB, free: 9.602 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004376/0.0004378, allocations: 12 kB / 314.3 MB, free: 9.656 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2941/0.2946, allocations: 54.86 MB / 369.2 MB, free: 12.66 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices3): time 0.0005783/0.2952, allocations: 220.4 kB / 369.4 MB, free: 12.44 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002476/0.2977, allocations: 1.467 MB / 370.8 MB, free: 10.96 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.628e-05/0.2977, allocations: 4 kB / 370.9 MB, free: 10.95 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.32e-05/0.2978, allocations: 0 / 370.9 MB, free: 10.95 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.78e-06/0.2978, allocations: 4 kB / 370.9 MB, free: 10.95 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008714/0.2987, allocations: 191.4 kB / 371 MB, free: 10.76 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 2.228e-05/0.2987, allocations: 4 kB / 371 MB, free: 10.76 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.03e-05/0.2988, allocations: 3.984 kB / 371.1 MB, free: 10.75 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.278e-05/0.2988, allocations: 0 / 371.1 MB, free: 10.75 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.876e-05/0.2988, allocations: 4 kB / 371.1 MB, free: 10.75 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.648e-06/0.2988, allocations: 4 kB / 371.1 MB, free: 10.75 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001112/0.3, allocations: 0.6519 MB / 371.7 MB, free: 10.09 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.849e-06/0.3, allocations: 4 kB / 371.7 MB, free: 10.09 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.036e-05/0.3, allocations: 25.7 kB / 371.7 MB, free: 10.06 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005921/0.3006, allocations: 451.3 kB / 372.2 MB, free: 9.617 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.009e-06/0.3007, allocations: 0 / 372.2 MB, free: 9.617 MB / 298.7 MB Notification: Performance of FrontEnd: time 4.804e-06/0.3007, allocations: 0 / 372.2 MB, free: 9.617 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.942e-06/0.3007, allocations: 3.938 kB / 372.2 MB, free: 9.613 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0004907/0.3012, allocations: 365.1 kB / 372.5 MB, free: 9.203 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.796e-05/0.3012, allocations: 12.03 kB / 372.6 MB, free: 9.191 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.125e-05/0.3013, allocations: 0 / 372.6 MB, free: 9.191 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001291/0.3014, allocations: 159.1 kB / 372.7 MB, free: 8.996 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.102e-06/0.3014, allocations: 0 / 372.7 MB, free: 8.996 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.158e-05/0.3015, allocations: 0 / 372.7 MB, free: 8.996 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.974e-05/0.3016, allocations: 37.67 kB / 372.7 MB, free: 8.953 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.049e-05/0.3016, allocations: 3.953 kB / 372.8 MB, free: 8.949 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.677e-06/0.3016, allocations: 0 / 372.8 MB, free: 8.949 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.333e-06/0.3016, allocations: 0 / 372.8 MB, free: 8.949 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.931e-05/0.3016, allocations: 8 kB / 372.8 MB, free: 8.941 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001626/0.3018, allocations: 149.7 kB / 372.9 MB, free: 8.746 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.35e-05/0.3019, allocations: 18.52 kB / 372.9 MB, free: 8.719 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.764e-06/0.3019, allocations: 0 / 372.9 MB, free: 8.719 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.697e-05/0.302, allocations: 64.34 kB / 373 MB, free: 8.641 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 1.86e-06/0.302, allocations: 0 / 373 MB, free: 8.641 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.000177/0.3022, allocations: 71.39 kB / 373.1 MB, free: 8.559 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.894e-05/0.3022, allocations: 88.98 kB / 373.1 MB, free: 8.453 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.422e-05/0.3023, allocations: 89.86 kB / 373.2 MB, free: 8.355 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.93e-05/0.3023, allocations: 25.7 kB / 373.3 MB, free: 8.324 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.648e-05/0.3024, allocations: 154.6 kB / 373.4 MB, free: 8.172 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.445e-05/0.3024, allocations: 3.938 kB / 373.4 MB, free: 8.168 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.29e-06/0.3025, allocations: 0 / 373.4 MB, free: 8.168 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001581/0.3026, allocations: 318.8 kB / 373.7 MB, free: 7.848 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.139e-06/0.3026, allocations: 0 / 373.7 MB, free: 7.848 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.144e-06/0.3027, allocations: 4 kB / 373.7 MB, free: 7.844 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.141e-05/0.3027, allocations: 29.7 kB / 373.8 MB, free: 7.809 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.49e-06/0.3027, allocations: 4 kB / 373.8 MB, free: 7.805 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.976e-05/0.3028, allocations: 55.41 kB / 373.8 MB, free: 7.738 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.524e-05/0.3029, allocations: 37.69 kB / 373.8 MB, free: 7.695 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.241e-06/0.3029, allocations: 0 / 373.8 MB, free: 7.695 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.188e-05/0.3029, allocations: 0 / 373.8 MB, free: 7.695 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.568e-06/0.3029, allocations: 0 / 373.8 MB, free: 7.695 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.08e-05/0.303, allocations: 7.938 kB / 373.9 MB, free: 7.688 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.246e-05/0.303, allocations: 4.094 kB / 373.9 MB, free: 7.684 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.696e-06/0.303, allocations: 3.938 kB / 373.9 MB, free: 7.68 MB / 298.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: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0001109/0.3031, allocations: 135.5 kB / 374 MB, free: 7.531 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.855e-06/0.3031, allocations: 0 / 374 MB, free: 7.531 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.764e-06/0.3032, allocations: 3.125 kB / 374 MB, free: 7.531 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.218e-06/0.3032, allocations: 0 / 374 MB, free: 7.531 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.724e-06/0.3032, allocations: 4 kB / 374 MB, free: 7.527 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.884e-06/0.3032, allocations: 7.938 kB / 374 MB, free: 7.52 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001277/0.3033, allocations: 149.7 kB / 374.2 MB, free: 7.324 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.908e-06/0.3033, allocations: 0 / 374.2 MB, free: 7.324 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.274e-06/0.3034, allocations: 4 kB / 374.2 MB, free: 7.32 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.415e-06/0.3034, allocations: 0 / 374.2 MB, free: 7.32 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.511e-06/0.3034, allocations: 4 kB / 374.2 MB, free: 7.316 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.952e-06/0.3034, allocations: 0 / 374.2 MB, free: 7.316 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.651e-06/0.3034, allocations: 0 / 374.2 MB, free: 7.316 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001227/0.3035, allocations: 90.78 kB / 374.3 MB, free: 7.203 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.353e-05/0.3036, allocations: 81.11 kB / 374.3 MB, free: 7.105 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.39e-05/0.3036, allocations: 4.031 kB / 374.3 MB, free: 7.102 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.464e-05/0.3037, allocations: 0 / 374.3 MB, free: 7.102 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.548e-05/0.3037, allocations: 11.86 kB / 374.3 MB, free: 7.09 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.402e-06/0.3037, allocations: 0 / 374.3 MB, free: 7.09 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.353e-05/0.3038, allocations: 75.28 kB / 374.4 MB, free: 7.016 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.51e-07/0.3038, allocations: 4 kB / 374.4 MB, free: 7.012 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005527/0.3043, allocations: 112 kB / 374.5 MB, free: 6.902 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: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0008585/0.3052, allocations: 185.2 kB / 374.7 MB, free: 6.723 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001121/0.3053, allocations: 55.41 kB / 374.8 MB, free: 6.656 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.3053, allocations: 0 / 374.8 MB, free: 6.656 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.507e-05/0.3054, allocations: 59.34 kB / 374.8 MB, free: 6.586 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001054/0.3055, allocations: 9.797 kB / 374.8 MB, free: 6.578 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002098/0.3057, allocations: 109.2 kB / 374.9 MB, free: 6.441 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003357/0.3061, allocations: 0.6692 MB / 375.6 MB, free: 5.746 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.477e-05/0.3061, allocations: 7.438 kB / 375.6 MB, free: 5.738 MB / 298.7 MB Notification: Performance of SimCode: time 1.534e-06/0.3061, allocations: 3.938 kB / 375.6 MB, free: 5.734 MB / 298.7 MB Notification: Performance of Templates: time 0.007492/0.3136, allocations: 3.367 MB / 379 MB, free: 2.363 MB / 298.7 MB make -j1 -f ModelicaTest_3.2.2_cpp_ModelicaTest.Math.TestMatrices3.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 OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Math.TestMatrices3CalcHelperMain.o OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Math.TestMatrices3CalcHelperMain.cpp\nIn file included from OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Math.TestMatrices3CalcHelperMain.cpp:28:\n./OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Math.TestMatrices3Functions.cpp:123:50: error: use of undeclared identifier \'_omcQ_24i1_\'\n _omcQ_24tmpVar2_ = std::abs(A_(_omcQ_24i1_,i_));\n ^\n./OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Math.TestMatrices3Functions.cpp:198:57: error: use of undeclared identifier \'_omcQ_24i1_\'\n _omcQ_24tmpVar0_ = std::abs(A_(i_,_omcQ_24i1_));\n ^\n2 errors generated.\n: recipe for target \'OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Math.TestMatrices3CalcHelperMain.o\' failed\nmake: *** [OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Math.TestMatrices3CalcHelperMain.o] Error 1\n'