Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestMatrices2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_ModelicaTest.Math.TestMatrices2") translateModel(ModelicaTest.Math.TestMatrices2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestMatrices2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008531/0.0008531, allocations: 173.7 kB / 16.72 MB, free: 5.086 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.158/1.158, allocations: 205.4 MB / 222.9 MB, free: 8.945 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006949/0.0006949, allocations: 86.36 kB / 271.2 MB, free: 8.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2795/0.2795, allocations: 43.57 MB / 363.1 MB, free: 52.1 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003391/0.0003392, allocations: 20 kB / 432 MB, free: 5.84 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09128/0.09164, allocations: 58.85 MB / 490.8 MB, free: 10.9 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2): time 0.0004779/0.09215, allocations: 228.3 kB / 491 MB, free: 10.68 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.006034/0.0982, allocations: 4.802 MB / 495.8 MB, free: 5.855 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.585e-05/0.09824, allocations: 0 / 495.8 MB, free: 5.855 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.028e-05/0.09826, allocations: 3.938 kB / 495.8 MB, free: 5.852 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 6.422e-06/0.09827, allocations: 0 / 495.8 MB, free: 5.852 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005436/0.1037, allocations: 2.61 MB / 498.5 MB, free: 3.238 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 2.619e-05/0.1037, allocations: 0 / 498.5 MB, free: 3.238 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.132e-05/0.1038, allocations: 8 kB / 498.5 MB, free: 3.23 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.454e-05/0.1038, allocations: 0 / 498.5 MB, free: 3.23 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.448e-05/0.1038, allocations: 0 / 498.5 MB, free: 3.23 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 4.678e-06/0.1038, allocations: 0 / 498.5 MB, free: 3.23 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1995/0.3034, allocations: 19.82 MB / 0.5061 GB, free: 35.99 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.104e-05/0.3034, allocations: 0 / 0.5061 GB, free: 35.99 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.15e-05/0.3035, allocations: 26.41 kB / 0.5062 GB, free: 35.96 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.031/0.3345, allocations: 20.48 MB / 0.5262 GB, free: 34.88 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.594e-06/0.3345, allocations: 6.641 kB / 0.5262 GB, free: 34.88 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.645e-06/0.3345, allocations: 0 / 0.5262 GB, free: 34.88 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.721e-06/0.3346, allocations: 0.8125 kB / 0.5262 GB, free: 34.88 MB / 378.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.01359/0.3482, allocations: 0.6619 MB / 0.5268 GB, free: 34.29 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.571e-05/0.3482, allocations: 8.812 kB / 0.5268 GB, free: 34.29 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.033e-05/0.3482, allocations: 3.688 kB / 0.5268 GB, free: 34.29 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.064e-05/0.3483, allocations: 164.1 kB / 0.527 GB, free: 34.09 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.156e-05/0.3483, allocations: 0 / 0.527 GB, free: 34.09 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.06e-05/0.3483, allocations: 1.281 kB / 0.527 GB, free: 34.09 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.121e-05/0.3484, allocations: 37.08 kB / 0.527 GB, free: 34.05 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.165e-06/0.3485, allocations: 2.688 kB / 0.527 GB, free: 34.05 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.496e-06/0.3485, allocations: 1.25 kB / 0.527 GB, free: 34.05 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.837e-06/0.3485, allocations: 0 / 0.527 GB, free: 34.05 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.601e-05/0.3485, allocations: 2.062 kB / 0.527 GB, free: 34.05 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.507e-05/0.3486, allocations: 149.3 kB / 0.5272 GB, free: 33.86 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.212e-05/0.3486, allocations: 22.61 kB / 0.5272 GB, free: 33.84 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.285e-05/0.3486, allocations: 10.19 kB / 0.5272 GB, free: 33.82 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.335e-06/0.3487, allocations: 2.25 kB / 0.5272 GB, free: 33.82 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.914e-05/0.3487, allocations: 60.08 kB / 0.5273 GB, free: 33.75 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 9.22e-07/0.3487, allocations: 1.156 kB / 0.5273 GB, free: 33.75 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001358/0.3488, allocations: 61.78 kB / 0.5273 GB, free: 33.69 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.57e-05/0.3489, allocations: 81.48 kB / 0.5274 GB, free: 33.6 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.634e-05/0.3489, allocations: 93.84 kB / 0.5275 GB, free: 33.5 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.061e-06/0.3489, allocations: 26.73 kB / 0.5275 GB, free: 33.46 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.854e-06/0.3489, allocations: 81.73 kB / 0.5276 GB, free: 33.38 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.718e-05/0.3489, allocations: 1.156 kB / 0.5276 GB, free: 33.38 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.024e-06/0.349, allocations: 0 / 0.5276 GB, free: 33.38 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 3.812e-05/0.349, allocations: 315.2 kB / 0.5279 GB, free: 33.07 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.354e-06/0.349, allocations: 0 / 0.5279 GB, free: 33.07 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.669e-06/0.349, allocations: 2.188 kB / 0.5279 GB, free: 33.07 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.878e-05/0.3491, allocations: 67.58 kB / 0.528 GB, free: 33 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.362e-06/0.3491, allocations: 0 / 0.528 GB, free: 33 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.073e-05/0.3491, allocations: 65.62 kB / 0.528 GB, free: 32.93 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.51e-05/0.3492, allocations: 31.77 kB / 0.528 GB, free: 32.9 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.917e-06/0.3492, allocations: 4.812 kB / 0.5281 GB, free: 32.89 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.245e-05/0.3492, allocations: 4 kB / 0.5281 GB, free: 32.89 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.61e-07/0.3492, allocations: 1.406 kB / 0.5281 GB, free: 32.89 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.349e-06/0.3492, allocations: 0 / 0.5281 GB, free: 32.89 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.645e-05/0.3492, allocations: 0.6562 kB / 0.5281 GB, free: 32.89 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.921e-06/0.3492, allocations: 2.594 kB / 0.5281 GB, free: 32.89 MB / 378.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 4.432e-05/0.3493, allocations: 140.3 kB / 0.5282 GB, free: 32.74 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.503e-06/0.3493, allocations: 3.984 kB / 0.5282 GB, free: 32.74 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.508e-06/0.3493, allocations: 4.438 kB / 0.5282 GB, free: 32.74 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.3493, allocations: 4.609 kB / 0.5282 GB, free: 32.73 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.477e-06/0.3493, allocations: 0 / 0.5282 GB, free: 32.73 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.815e-06/0.3493, allocations: 1.25 kB / 0.5282 GB, free: 32.73 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.101e-05/0.3494, allocations: 147.1 kB / 0.5283 GB, free: 32.54 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.52e-07/0.3494, allocations: 0 / 0.5283 GB, free: 32.54 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.71e-07/0.3494, allocations: 0 / 0.5283 GB, free: 32.54 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.795e-06/0.3494, allocations: 5.578 kB / 0.5284 GB, free: 32.54 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.464e-06/0.3494, allocations: 4 kB / 0.5284 GB, free: 32.54 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.51e-07/0.3494, allocations: 2.094 kB / 0.5284 GB, free: 32.54 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.3494, allocations: 1.062 kB / 0.5284 GB, free: 32.54 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.169e-05/0.3495, allocations: 95.53 kB / 0.5285 GB, free: 32.44 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.326e-05/0.3495, allocations: 81.09 kB / 0.5285 GB, free: 32.34 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.072e-05/0.3495, allocations: 1.156 kB / 0.5285 GB, free: 32.34 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.528e-06/0.3496, allocations: 4.594 kB / 0.5285 GB, free: 32.34 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.209e-05/0.3496, allocations: 1.031 kB / 0.5285 GB, free: 32.34 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.757e-06/0.3496, allocations: 2.172 kB / 0.5285 GB, free: 32.34 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.04e-05/0.3496, allocations: 78.08 kB / 0.5286 GB, free: 32.27 MB / 378.7 MB Notification: Performance of sort global known variables: time 9e-08/0.3496, allocations: 0 / 0.5286 GB, free: 32.27 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.01717/0.3668, allocations: 3.816 MB / 0.5323 GB, free: 28.79 MB / 378.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.03396/0.4008, allocations: 1.01 MB / 0.5333 GB, free: 27.91 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001024/0.4009, allocations: 56.62 kB / 0.5334 GB, free: 27.84 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.4009, allocations: 0 / 0.5334 GB, free: 27.84 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 1.832e-05/0.4009, allocations: 58.88 kB / 0.5334 GB, free: 27.77 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001464/0.4011, allocations: 7.875 kB / 0.5334 GB, free: 27.77 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001509/0.4012, allocations: 107 kB / 0.5335 GB, free: 27.64 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.491e-05/0.4013, allocations: 0.6692 MB / 0.5342 GB, free: 26.94 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.957e-06/0.4013, allocations: 15.56 kB / 0.5342 GB, free: 26.93 MB / 378.7 MB Notification: Performance of SimCode: time 2.81e-07/0.4014, allocations: 0 / 0.5342 GB, free: 26.93 MB / 378.7 MB Notification: Performance of Templates: time 0.08289/0.4842, allocations: 65.43 MB / 0.5981 GB, free: 9.453 MB / 426.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestMatrices2.makefile make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestMatrices2.makefile clang++ -std=c++14 -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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestMatrices2CalcHelperMain.o OMCppModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestMatrices2CalcHelperMain.cpp In file included from OMCppModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestMatrices2CalcHelperMain.cpp:28: ./OMCppModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestMatrices2Functions.cpp:4010:3: error: unknown type name 'scalarRetType' scalarRetType tmp525; ^ ./OMCppModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestMatrices2Functions.cpp:5942:5: warning: expression result unused [-Wunused-value] tmp920; ^~~~~~ ./OMCppModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestMatrices2Functions.cpp:5979:5: warning: expression result unused [-Wunused-value] tmp930; ^~~~~~ 2 warnings and 1 error generated. make: *** [: OMCppModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestMatrices2CalcHelperMain.o] Error 1