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.00157/0.00157, allocations: 108.7 kB / 16.64 MB, free: 6.816 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.002115/0.002116, allocations: 194.5 kB / 17.56 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.365/1.365, allocations: 205.1 MB / 223.4 MB, free: 12.45 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.206/0.206, allocations: 43.52 MB / 314.3 MB, free: 0.7109 MB / 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.001808/0.001808, allocations: 70.8 kB / 382.9 MB, free: 56.88 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08936/0.09118, allocations: 57.8 MB / 440.7 MB, free: 7.383 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2): time 0.001568/0.0928, allocations: 0.5544 MB / 441.2 MB, free: 6.82 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005724/0.09854, allocations: 5.103 MB / 446.3 MB, free: 1.695 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.608e-05/0.0986, allocations: 4 kB / 446.3 MB, free: 1.691 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.2e-05/0.09863, allocations: 0 / 446.3 MB, free: 1.691 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 5.119e-06/0.09867, allocations: 0 / 446.3 MB, free: 1.691 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00629/0.105, allocations: 2.779 MB / 449.1 MB, free: 14.91 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 5.276e-05/0.105, allocations: 3.984 kB / 449.1 MB, free: 14.91 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.157e-05/0.1051, allocations: 8 kB / 449.1 MB, free: 14.9 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.504e-05/0.1052, allocations: 0 / 449.1 MB, free: 14.9 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.764e-05/0.1052, allocations: 0 / 449.1 MB, free: 14.9 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.362e-06/0.1052, allocations: 4 kB / 449.1 MB, free: 14.9 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02518/0.1304, allocations: 18.99 MB / 468.1 MB, free: 11.89 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.263e-05/0.1304, allocations: 0 / 468.1 MB, free: 11.89 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.7e-05/0.1305, allocations: 7.984 kB / 468.1 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02346/0.1539, allocations: 20.49 MB / 488.6 MB, free: 7.359 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.514e-06/0.154, allocations: 0 / 488.6 MB, free: 7.359 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.154, allocations: 0 / 488.6 MB, free: 7.359 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.394e-06/0.154, allocations: 0 / 488.6 MB, free: 7.359 MB / 366.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.007085/0.1611, allocations: 0.6573 MB / 489.3 MB, free: 6.648 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.752e-05/0.1612, allocations: 15.88 kB / 489.3 MB, free: 6.633 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.819e-05/0.1612, allocations: 4.938 kB / 489.3 MB, free: 6.629 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.286e-05/0.1613, allocations: 163.2 kB / 489.4 MB, free: 6.43 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.14e-05/0.1613, allocations: 0 / 489.4 MB, free: 6.43 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.256e-06/0.1614, allocations: 4 kB / 489.4 MB, free: 6.426 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.277e-05/0.1615, allocations: 33.69 kB / 489.5 MB, free: 6.387 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.584e-06/0.1615, allocations: 0 / 489.5 MB, free: 6.387 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.726e-06/0.1615, allocations: 0 / 489.5 MB, free: 6.387 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.719e-06/0.1615, allocations: 4 kB / 489.5 MB, free: 6.383 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.154e-05/0.1615, allocations: 0 / 489.5 MB, free: 6.383 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001335/0.1617, allocations: 161.5 kB / 489.6 MB, free: 6.176 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.253e-05/0.1617, allocations: 18.61 kB / 489.7 MB, free: 6.148 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.46e-05/0.1617, allocations: 4.859 kB / 489.7 MB, free: 6.141 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.025e-06/0.1617, allocations: 0 / 489.7 MB, free: 6.141 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.332e-05/0.1618, allocations: 60.27 kB / 489.7 MB, free: 6.066 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 1.012e-06/0.1618, allocations: 0 / 489.7 MB, free: 6.066 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001701/0.162, allocations: 67.48 kB / 489.8 MB, free: 5.988 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.319e-05/0.162, allocations: 85.14 kB / 489.9 MB, free: 5.887 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.591e-05/0.1621, allocations: 89.86 kB / 490 MB, free: 5.789 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.053e-05/0.1621, allocations: 25.7 kB / 490 MB, free: 5.758 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.814e-05/0.1621, allocations: 80.14 kB / 490.1 MB, free: 5.676 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.189e-05/0.1622, allocations: 0 / 490.1 MB, free: 5.676 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.148e-05/0.1622, allocations: 17.72 kB / 490.1 MB, free: 5.652 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001033/0.1623, allocations: 314.8 kB / 490.4 MB, free: 5.336 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.185e-05/0.1623, allocations: 3.984 kB / 490.4 MB, free: 5.332 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.873e-06/0.1623, allocations: 4 kB / 490.4 MB, free: 5.328 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.943e-05/0.1624, allocations: 64.2 kB / 490.5 MB, free: 5.25 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.993e-06/0.1624, allocations: 0 / 490.5 MB, free: 5.25 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.58e-05/0.1625, allocations: 67.34 kB / 490.5 MB, free: 5.172 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.324e-05/0.1625, allocations: 33.69 kB / 490.6 MB, free: 5.133 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.999e-06/0.1625, allocations: 0 / 490.6 MB, free: 5.133 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.615e-05/0.1626, allocations: 8 kB / 490.6 MB, free: 5.125 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.72e-07/0.1626, allocations: 0 / 490.6 MB, free: 5.125 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.639e-06/0.1626, allocations: 4.094 kB / 490.6 MB, free: 5.121 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.097e-05/0.1626, allocations: 0 / 490.6 MB, free: 5.121 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.618e-06/0.1626, allocations: 3.938 kB / 490.6 MB, free: 5.117 MB / 366.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 8.402e-05/0.1627, allocations: 136.6 kB / 490.7 MB, free: 4.969 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.062e-05/0.1627, allocations: 0 / 490.7 MB, free: 4.969 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.126e-05/0.1628, allocations: 7.109 kB / 490.7 MB, free: 4.965 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.1628, allocations: 0 / 490.7 MB, free: 4.965 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.1628, allocations: 0 / 490.7 MB, free: 4.965 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.904e-06/0.1628, allocations: 0 / 490.7 MB, free: 4.965 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.87e-05/0.1629, allocations: 153.6 kB / 490.9 MB, free: 4.766 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.1629, allocations: 4 kB / 490.9 MB, free: 4.762 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.91e-07/0.1629, allocations: 0 / 490.9 MB, free: 4.762 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.308e-06/0.1629, allocations: 0 / 490.9 MB, free: 4.762 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.113e-06/0.1629, allocations: 3.938 kB / 490.9 MB, free: 4.758 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.1629, allocations: 0 / 490.9 MB, free: 4.758 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.1629, allocations: 0 / 490.9 MB, free: 4.758 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.87e-05/0.163, allocations: 102.7 kB / 491 MB, free: 4.633 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.452e-05/0.1631, allocations: 81.14 kB / 491 MB, free: 4.535 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.377e-05/0.1631, allocations: 4 kB / 491.1 MB, free: 4.531 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.716e-06/0.1631, allocations: 0 / 491.1 MB, free: 4.531 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.369e-05/0.1631, allocations: 3.984 kB / 491.1 MB, free: 4.527 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.796e-06/0.1631, allocations: 0 / 491.1 MB, free: 4.527 MB / 366.1 MB Notification: Performance of sorting global known variables: time 2.49e-05/0.1631, allocations: 79.22 kB / 491.1 MB, free: 4.449 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1631, allocations: 0 / 491.1 MB, free: 4.449 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.01024/0.1734, allocations: 3.812 MB / 494.9 MB, free: 0.6367 MB / 366.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.01857/0.192, allocations: 1 MB / 495.9 MB, free: 15.64 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001437/0.1922, allocations: 67.33 kB / 496 MB, free: 15.56 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.1922, allocations: 4.062 kB / 496 MB, free: 15.56 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 3.378e-05/0.1922, allocations: 55.41 kB / 496.1 MB, free: 15.49 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001466/0.1924, allocations: 0 / 496.1 MB, free: 15.49 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002021/0.1926, allocations: 106.6 kB / 496.2 MB, free: 15.36 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002106/0.1928, allocations: 0.6729 MB / 496.8 MB, free: 14.66 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.513e-05/0.1928, allocations: 11.44 kB / 496.9 MB, free: 14.64 MB / 382.1 MB Notification: Performance of SimCode: time 4.41e-07/0.1928, allocations: 0 / 496.9 MB, free: 14.64 MB / 382.1 MB Notification: Performance of Templates: time 0.303/0.4958, allocations: 65.42 MB / 0.5491 GB, free: 37 MB / 414.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++14 -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:4010:3: error: unknown type name 'scalarRetType' scalarRetType tmp525; ^ ./OMCppModelicaTest_3.2.3_ModelicaTest.Math.TestMatrices2Functions.cpp:5942:5: warning: expression result unused [-Wunused-value] tmp920; ^~~~~~ ./OMCppModelicaTest_3.2.3_ModelicaTest.Math.TestMatrices2Functions.cpp:5979: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