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.001265/0.001265, allocations: 181.8 kB / 16.41 MB, free: 5.57 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.493/1.493, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.000992/0.000992, allocations: 94.77 kB / 270.9 MB, free: 8.363 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.3821/0.3821, allocations: 43.57 MB / 362.7 MB, free: 52.15 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005044/0.0005047, allocations: 12 kB / 431.4 MB, free: 6.164 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1576/0.1581, allocations: 58.84 MB / 490.2 MB, free: 11.23 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2): time 0.0007034/0.1589, allocations: 228.3 kB / 490.5 MB, free: 11.01 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.007764/0.1667, allocations: 4.805 MB / 495.3 MB, free: 6.184 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.522e-05/0.1668, allocations: 0 / 495.3 MB, free: 6.184 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 2.219e-05/0.1668, allocations: 0 / 495.3 MB, free: 6.184 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 1.051e-05/0.1668, allocations: 0 / 495.3 MB, free: 6.184 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007583/0.1744, allocations: 2.622 MB / 497.9 MB, free: 3.559 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.939e-05/0.1745, allocations: 0 / 497.9 MB, free: 3.559 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.071e-05/0.1745, allocations: 3.984 kB / 497.9 MB, free: 3.555 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.754e-05/0.1746, allocations: 4 kB / 497.9 MB, free: 3.551 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.866e-05/0.1746, allocations: 0 / 497.9 MB, free: 3.551 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 7.394e-06/0.1746, allocations: 0 / 497.9 MB, free: 3.551 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.316/0.4906, allocations: 19.81 MB / 0.5056 GB, free: 35.94 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 9.938e-06/0.4907, allocations: 0 / 0.5056 GB, free: 35.94 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 4.016e-05/0.4907, allocations: 33.52 kB / 0.5056 GB, free: 35.91 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.04421/0.535, allocations: 20.29 MB / 0.5254 GB, free: 35.07 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.997e-06/0.535, allocations: 0 / 0.5254 GB, free: 35.07 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.775e-06/0.535, allocations: 0.8438 kB / 0.5254 GB, free: 35.07 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.145e-06/0.5351, allocations: 3.312 kB / 0.5254 GB, free: 35.07 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.02091/0.556, allocations: 0.6692 MB / 0.5261 GB, free: 34.46 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.95e-05/0.556, allocations: 8.781 kB / 0.5261 GB, free: 34.46 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.703e-05/0.5561, allocations: 0 / 0.5261 GB, free: 34.46 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.435e-05/0.5562, allocations: 161.5 kB / 0.5262 GB, free: 34.27 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.366e-05/0.5562, allocations: 0 / 0.5262 GB, free: 34.27 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.499e-05/0.5562, allocations: 2.062 kB / 0.5262 GB, free: 34.27 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.696e-05/0.5563, allocations: 36.34 kB / 0.5263 GB, free: 34.23 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.737e-06/0.5564, allocations: 2.906 kB / 0.5263 GB, free: 34.23 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.062e-05/0.5564, allocations: 0 / 0.5263 GB, free: 34.23 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.589e-06/0.5564, allocations: 1.422 kB / 0.5263 GB, free: 34.23 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.079e-05/0.5564, allocations: 7.281 kB / 0.5263 GB, free: 34.23 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001091/0.5565, allocations: 144.8 kB / 0.5264 GB, free: 34.05 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.639e-05/0.5566, allocations: 14.58 kB / 0.5264 GB, free: 34.02 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.337e-05/0.5566, allocations: 9.922 kB / 0.5264 GB, free: 34.02 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.448e-06/0.5566, allocations: 1.031 kB / 0.5264 GB, free: 34.02 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.399e-05/0.5566, allocations: 62 kB / 0.5265 GB, free: 33.94 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.103e-06/0.5567, allocations: 0 / 0.5265 GB, free: 33.94 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001758/0.5568, allocations: 69.33 kB / 0.5266 GB, free: 33.88 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.899e-05/0.5569, allocations: 82.48 kB / 0.5266 GB, free: 33.78 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.556e-05/0.5569, allocations: 90.73 kB / 0.5267 GB, free: 33.68 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.755e-06/0.5569, allocations: 25.7 kB / 0.5268 GB, free: 33.65 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.48e-05/0.5569, allocations: 81.45 kB / 0.5268 GB, free: 33.57 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.213e-05/0.557, allocations: 10.11 kB / 0.5268 GB, free: 33.56 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.164e-06/0.557, allocations: 0 / 0.5268 GB, free: 33.56 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.529e-05/0.557, allocations: 312.4 kB / 0.5271 GB, free: 33.25 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.718e-06/0.5571, allocations: 3.469 kB / 0.5271 GB, free: 33.25 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.658e-06/0.5571, allocations: 0 / 0.5271 GB, free: 33.25 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.132e-05/0.5571, allocations: 29.77 kB / 0.5272 GB, free: 33.22 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.5571, allocations: 0 / 0.5272 GB, free: 33.22 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.159e-05/0.5572, allocations: 64.44 kB / 0.5272 GB, free: 33.16 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.991e-05/0.5572, allocations: 36.41 kB / 0.5273 GB, free: 33.12 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.559e-06/0.5572, allocations: 0 / 0.5273 GB, free: 33.12 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.634e-05/0.5572, allocations: 4.219 kB / 0.5273 GB, free: 33.12 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.82e-07/0.5572, allocations: 0 / 0.5273 GB, free: 33.12 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.302e-06/0.5572, allocations: 3.953 kB / 0.5273 GB, free: 33.11 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.742e-05/0.5573, allocations: 2.625 kB / 0.5273 GB, free: 33.11 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.893e-06/0.5573, allocations: 0 / 0.5273 GB, free: 33.11 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 6.409e-05/0.5573, allocations: 139.8 kB / 0.5274 GB, free: 32.96 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.502e-06/0.5574, allocations: 1.5 kB / 0.5274 GB, free: 32.96 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.078e-05/0.5574, allocations: 3.125 kB / 0.5274 GB, free: 32.96 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.5574, allocations: 1.438 kB / 0.5274 GB, free: 32.96 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.5574, allocations: 7.984 kB / 0.5274 GB, free: 32.96 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.5574, allocations: 3.953 kB / 0.5274 GB, free: 32.95 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.578e-05/0.5575, allocations: 143.9 kB / 0.5276 GB, free: 32.77 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.5575, allocations: 2.281 kB / 0.5276 GB, free: 32.77 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.5575, allocations: 0 / 0.5276 GB, free: 32.77 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.172e-06/0.5575, allocations: 0 / 0.5276 GB, free: 32.77 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.653e-06/0.5575, allocations: 0 / 0.5276 GB, free: 32.77 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.5575, allocations: 3.031 kB / 0.5276 GB, free: 32.77 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.72e-07/0.5575, allocations: 0 / 0.5276 GB, free: 32.77 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.45e-05/0.5576, allocations: 104.3 kB / 0.5277 GB, free: 32.66 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.335e-05/0.5576, allocations: 78.45 kB / 0.5277 GB, free: 32.57 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.259e-05/0.5576, allocations: 1.625 kB / 0.5277 GB, free: 32.57 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.027e-06/0.5577, allocations: 3.984 kB / 0.5278 GB, free: 32.56 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.498e-05/0.5577, allocations: 0 / 0.5278 GB, free: 32.56 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.235e-06/0.5577, allocations: 1.5 kB / 0.5278 GB, free: 32.56 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.531e-05/0.5577, allocations: 75.28 kB / 0.5278 GB, free: 32.49 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.042e-06/0.5577, allocations: 0 / 0.5278 GB, free: 32.49 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0298/0.5875, allocations: 3.81 MB / 0.5315 GB, free: 29.48 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.05524/0.6428, allocations: 1.008 MB / 0.5325 GB, free: 28.61 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001413/0.643, allocations: 63.41 kB / 0.5326 GB, free: 28.54 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.058e-06/0.643, allocations: 0 / 0.5326 GB, free: 28.54 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 2.555e-05/0.643, allocations: 59.08 kB / 0.5326 GB, free: 28.47 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001605/0.6432, allocations: 7.953 kB / 0.5327 GB, free: 28.46 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002127/0.6434, allocations: 96.78 kB / 0.5327 GB, free: 28.34 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001307/0.6436, allocations: 0.6809 MB / 0.5334 GB, free: 27.63 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.262e-05/0.6436, allocations: 11.44 kB / 0.5334 GB, free: 27.62 MB / 378.7 MB Notification: Performance of SimCode: time 2.8e-07/0.6436, allocations: 0 / 0.5334 GB, free: 27.62 MB / 378.7 MB Notification: Performance of Templates: time 0.1315/0.7751, allocations: 65.51 MB / 0.5974 GB, free: 10.06 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++ -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/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/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:3992:3: error: unknown type name 'scalarRetType' scalarRetType tmp521; ^ ./OMCppModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestMatrices2Functions.cpp:5953:5: warning: expression result unused [-Wunused-value] tmp924; ^~~~~~ ./OMCppModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestMatrices2Functions.cpp:5990:5: warning: expression result unused [-Wunused-value] tmp934; ^~~~~~ 2 warnings and 1 error generated. make: *** [: OMCppModelicaTest_3.2.3_cpp_ModelicaTest.Math.TestMatrices2CalcHelperMain.o] Error 1