Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Math.TestMatrices2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Math.TestMatrices2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Math.TestMatrices2") translateModel(ModelicaTest.Math.TestMatrices2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Math.TestMatrices2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002143/0.002143, allocations: 115.9 kB / 17.08 MB, free: 5.832 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002438/0.002438, allocations: 194.4 kB / 18.01 MB, free: 4.965 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.72/4.72, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4602/0.4602, allocations: 43.52 MB / 314.8 MB, free: 468 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002902/0.002902, allocations: 67.91 kB / 442.4 MB, free: 5.68 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2151/0.218, allocations: 57.8 MB / 0.4885 GB, free: 11.81 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2): time 0.002656/0.2207, allocations: 0.4941 MB / 0.489 GB, free: 11.32 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0167/0.2375, allocations: 5.071 MB / 0.494 GB, free: 6.227 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.44e-05/0.2376, allocations: 0 / 0.494 GB, free: 6.227 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 2.197e-05/0.2376, allocations: 0 / 0.494 GB, free: 6.227 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 1.124e-05/0.2377, allocations: 4 kB / 0.494 GB, free: 6.223 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0254/0.2631, allocations: 2.987 MB / 0.4969 GB, free: 3.223 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 8.4e-05/0.2633, allocations: 0 / 0.4969 GB, free: 3.223 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.05e-05/0.2633, allocations: 0 / 0.4969 GB, free: 3.223 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.275e-05/0.2634, allocations: 4 kB / 0.4969 GB, free: 3.219 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.584e-05/0.2634, allocations: 3.938 kB / 0.4969 GB, free: 3.215 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.268e-06/0.2634, allocations: 0 / 0.4969 GB, free: 3.215 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.07062/0.3341, allocations: 18.81 MB / 0.5153 GB, free: 396 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.079e-05/0.3342, allocations: 0 / 0.5153 GB, free: 396 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.42e-05/0.3342, allocations: 11.98 kB / 0.5153 GB, free: 384 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.8081/1.142, allocations: 27.63 MB / 0.5422 GB, free: 20.95 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.405e-05/1.142, allocations: 1.062 kB / 0.5422 GB, free: 20.95 MB / 414.1 MB Notification: Performance of FrontEnd: time 3.367e-06/1.142, allocations: 0 / 0.5422 GB, free: 20.95 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.046e-05/1.143, allocations: 0 / 0.5422 GB, free: 20.95 MB / 414.1 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.02469/1.167, allocations: 0.6662 MB / 0.5429 GB, free: 20.46 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.857e-05/1.167, allocations: 13.92 kB / 0.5429 GB, free: 20.46 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.849e-05/1.167, allocations: 0.9375 kB / 0.5429 GB, free: 20.46 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001081/1.168, allocations: 165.1 kB / 0.5431 GB, free: 20.26 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.086e-05/1.168, allocations: 0.5 kB / 0.5431 GB, free: 20.26 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.307e-05/1.168, allocations: 1.312 kB / 0.5431 GB, free: 20.26 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001603/1.168, allocations: 33.34 kB / 0.5431 GB, free: 20.23 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.79e-05/1.168, allocations: 1.188 kB / 0.5431 GB, free: 20.23 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.665e-05/1.168, allocations: 6.422 kB / 0.5431 GB, free: 20.23 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.814e-06/1.168, allocations: 0 / 0.5431 GB, free: 20.23 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.018e-05/1.168, allocations: 2.297 kB / 0.5431 GB, free: 20.23 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001937/1.168, allocations: 151.3 kB / 0.5433 GB, free: 20.04 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.577e-05/1.168, allocations: 15.86 kB / 0.5433 GB, free: 20.02 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.115e-05/1.168, allocations: 9.828 kB / 0.5433 GB, free: 20.01 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.526e-05/1.168, allocations: 3.188 kB / 0.5433 GB, free: 20.01 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.475e-05/1.168, allocations: 64.44 kB / 0.5433 GB, free: 19.94 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 2.625e-06/1.168, allocations: 0 / 0.5433 GB, free: 19.94 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002796/1.169, allocations: 58.8 kB / 0.5434 GB, free: 19.88 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.193e-05/1.169, allocations: 80.86 kB / 0.5435 GB, free: 19.78 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.338e-05/1.169, allocations: 96 kB / 0.5436 GB, free: 19.68 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.805e-05/1.169, allocations: 27.27 kB / 0.5436 GB, free: 19.65 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.811e-05/1.169, allocations: 80.14 kB / 0.5437 GB, free: 19.57 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.421e-05/1.169, allocations: 4.391 kB / 0.5437 GB, free: 19.57 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.061e-05/1.169, allocations: 13.28 kB / 0.5437 GB, free: 19.55 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 7.841e-05/1.169, allocations: 313.6 kB / 0.544 GB, free: 19.24 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.146e-05/1.169, allocations: 1.281 kB / 0.544 GB, free: 19.24 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.674e-05/1.169, allocations: 3.5 kB / 0.544 GB, free: 19.24 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.425e-05/1.169, allocations: 66.89 kB / 0.5441 GB, free: 19.17 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.516e-06/1.169, allocations: 0 / 0.5441 GB, free: 19.17 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001215/1.169, allocations: 66.36 kB / 0.5441 GB, free: 19.11 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.788e-05/1.17, allocations: 30.77 kB / 0.5441 GB, free: 19.07 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.015e-05/1.17, allocations: 0 / 0.5441 GB, free: 19.07 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.133e-05/1.17, allocations: 1.938 kB / 0.5442 GB, free: 19.07 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.569e-06/1.17, allocations: 4.766 kB / 0.5442 GB, free: 19.07 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.053e-05/1.17, allocations: 5.812 kB / 0.5442 GB, free: 19.07 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.209e-05/1.17, allocations: 2.875 kB / 0.5442 GB, free: 19.07 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.417e-05/1.17, allocations: 2.656 kB / 0.5442 GB, free: 19.07 MB / 414.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001214/1.17, allocations: 137.6 kB / 0.5443 GB, free: 18.93 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.317e-05/1.17, allocations: 5.781 kB / 0.5443 GB, free: 18.93 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.448e-05/1.17, allocations: 4.906 kB / 0.5443 GB, free: 18.92 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/1.17, allocations: 0 / 0.5443 GB, free: 18.92 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.371e-05/1.17, allocations: 3.75 kB / 0.5443 GB, free: 18.92 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.086e-06/1.17, allocations: 0 / 0.5443 GB, free: 18.92 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001535/1.17, allocations: 153.7 kB / 0.5445 GB, free: 18.73 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.876e-06/1.17, allocations: 0 / 0.5445 GB, free: 18.73 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.817e-06/1.17, allocations: 0.8125 kB / 0.5445 GB, free: 18.73 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.318e-06/1.17, allocations: 3.625 kB / 0.5445 GB, free: 18.73 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.469e-05/1.17, allocations: 2.516 kB / 0.5445 GB, free: 18.73 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.617e-06/1.17, allocations: 0 / 0.5445 GB, free: 18.73 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.428e-06/1.17, allocations: 1.344 kB / 0.5445 GB, free: 18.73 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001697/1.17, allocations: 95 kB / 0.5446 GB, free: 18.63 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.928e-05/1.171, allocations: 80.44 kB / 0.5446 GB, free: 18.54 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.399e-05/1.171, allocations: 1.156 kB / 0.5446 GB, free: 18.54 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.941e-05/1.171, allocations: 3.469 kB / 0.5446 GB, free: 18.54 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.845e-05/1.171, allocations: 2.531 kB / 0.5446 GB, free: 18.54 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.985e-06/1.171, allocations: 1.219 kB / 0.5446 GB, free: 18.54 MB / 414.1 MB Notification: Performance of sorting global known variables: time 2.112e-05/1.171, allocations: 79.03 kB / 0.5447 GB, free: 18.46 MB / 414.1 MB Notification: Performance of sort global known variables: time 4.2e-07/1.171, allocations: 1.969 kB / 0.5447 GB, free: 18.46 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.04011/1.211, allocations: 3.811 MB / 0.5484 GB, free: 18.37 MB / 414.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0755/1.286, allocations: 1.004 MB / 0.5494 GB, free: 18.16 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000222/1.287, allocations: 56.25 kB / 0.5495 GB, free: 18.09 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.861e-06/1.287, allocations: 0 / 0.5495 GB, free: 18.09 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.895e-05/1.287, allocations: 61.17 kB / 0.5495 GB, free: 18.03 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002427/1.287, allocations: 11.14 kB / 0.5495 GB, free: 18.03 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003099/1.287, allocations: 121 kB / 0.5497 GB, free: 17.89 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001772/1.288, allocations: 0.669 MB / 0.5503 GB, free: 17.19 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.005e-05/1.288, allocations: 10.78 kB / 0.5503 GB, free: 17.18 MB / 414.1 MB Notification: Performance of SimCode: time 9.62e-07/1.288, allocations: 0 / 0.5503 GB, free: 17.18 MB / 414.1 MB Notification: Performance of Templates: time 0.2598/1.548, allocations: 65.42 MB / 0.6142 GB, free: 3.719 MB / 462.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Math.TestMatrices2.makefile make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Math.TestMatrices2.makefile clang++ -std=c++17 -fopenmp=libomp -Winvalid-pch -O2 -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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelicaTest_3.2.3_ModelicaTest.Math.TestMatrices2CalcHelperMain.o OMCppModelicaTest_3.2.3_ModelicaTest.Math.TestMatrices2CalcHelperMain.cpp In file included from OMCppModelicaTest_3.2.3_ModelicaTest.Math.TestMatrices2CalcHelperMain.cpp:28: ./OMCppModelicaTest_3.2.3_ModelicaTest.Math.TestMatrices2Functions.cpp:4009:3: error: unknown type name 'scalarRetType' scalarRetType tmp525; ^ ./OMCppModelicaTest_3.2.3_ModelicaTest.Math.TestMatrices2Functions.cpp:5941:5: warning: expression result unused [-Wunused-value] tmp920; ^~~~~~ ./OMCppModelicaTest_3.2.3_ModelicaTest.Math.TestMatrices2Functions.cpp:5978:5: warning: expression result unused [-Wunused-value] tmp930; ^~~~~~ 2 warnings and 1 error generated. make: *** [: OMCppModelicaTest_3.2.3_ModelicaTest.Math.TestMatrices2CalcHelperMain.o] Error 1