Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Math.Random.TestSpecial.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.Random.TestSpecial,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestSpecial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.454/2.454, allocations: 235 MB / 248.1 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.512e-05/3.528e-05, allocations: 8 kB / 309.8 MB, free: 1.23 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.401/0.4011, allocations: 54.85 MB / 364.6 MB, free: 5.406 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1503/0.5515, allocations: 81.6 MB / 446.2 MB, free: 14.77 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002555/0.5518, allocations: 65.56 kB / 446.3 MB, free: 14.71 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.25/1.802, allocations: 48.6 MB / 494.9 MB, free: 14.07 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.833e-06/1.802, allocations: 0 / 494.9 MB, free: 14.07 MB / 426.7 MB Notification: Performance of Transformations before backend: time 6.052e-06/1.802, allocations: 0 / 494.9 MB, free: 14.07 MB / 426.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.004355/1.806, allocations: 447.8 kB / 495.3 MB, free: 13.58 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.807e-05/1.806, allocations: 8.031 kB / 495.3 MB, free: 13.57 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.165e-05/1.806, allocations: 38.52 kB / 495.4 MB, free: 13.53 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.974e-05/1.806, allocations: 4 kB / 495.4 MB, free: 13.52 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001016/1.806, allocations: 159.1 kB / 495.5 MB, free: 13.33 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.264e-05/1.806, allocations: 0 / 495.5 MB, free: 13.33 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.315e-05/1.806, allocations: 0 / 495.5 MB, free: 13.33 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001025/1.807, allocations: 41.62 kB / 495.6 MB, free: 13.28 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.706e-06/1.807, allocations: 0 / 495.6 MB, free: 13.28 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.025e-06/1.807, allocations: 0 / 495.6 MB, free: 13.28 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.163e-06/1.807, allocations: 3.953 kB / 495.6 MB, free: 13.28 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.445e-05/1.807, allocations: 8 kB / 495.6 MB, free: 13.27 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002522/1.807, allocations: 229.5 kB / 495.8 MB, free: 13 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.555e-05/1.807, allocations: 20.02 kB / 495.8 MB, free: 12.97 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.061e-05/1.807, allocations: 12.86 kB / 495.8 MB, free: 12.95 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.175e-05/1.807, allocations: 0 / 495.8 MB, free: 12.95 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.664e-05/1.807, allocations: 68.27 kB / 495.9 MB, free: 12.87 MB / 426.7 MB Notification: Performance of pre-optimization done (n=2): time 1.533e-06/1.807, allocations: 0 / 495.9 MB, free: 12.87 MB / 426.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001977/1.807, allocations: 67.34 kB / 496 MB, free: 12.79 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.672e-05/1.807, allocations: 77.11 kB / 496.1 MB, free: 12.7 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.78e-05/1.807, allocations: 85 kB / 496.1 MB, free: 12.61 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 1.78e-05/1.807, allocations: 33.7 kB / 496.2 MB, free: 12.57 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.471e-05/1.808, allocations: 150.6 kB / 496.3 MB, free: 12.42 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.283e-05/1.808, allocations: 3.906 kB / 496.3 MB, free: 12.42 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.916e-06/1.808, allocations: 0 / 496.3 MB, free: 12.42 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001135/1.808, allocations: 314.9 kB / 496.6 MB, free: 12.1 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.491e-05/1.808, allocations: 4 kB / 496.6 MB, free: 12.1 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.241e-05/1.808, allocations: 3.938 kB / 496.6 MB, free: 12.09 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.035e-05/1.808, allocations: 30.36 kB / 496.7 MB, free: 12.06 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/1.808, allocations: 0 / 496.7 MB, free: 12.06 MB / 426.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 9.991e-05/1.808, allocations: 67.39 kB / 496.7 MB, free: 11.98 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.079e-05/1.808, allocations: 33.7 kB / 496.8 MB, free: 11.94 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.294e-06/1.808, allocations: 3.984 kB / 496.8 MB, free: 11.94 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.507e-05/1.808, allocations: 4.094 kB / 496.8 MB, free: 11.93 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.871e-05/1.808, allocations: 7.891 kB / 496.8 MB, free: 11.93 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.891e-06/1.808, allocations: 0.5625 kB / 496.8 MB, free: 11.93 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.036e-05/1.808, allocations: 0 / 496.8 MB, free: 11.93 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.279e-05/1.808, allocations: 4 kB / 496.8 MB, free: 11.92 MB / 426.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: 2 (result,$outputAlias_result) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 1 * 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 9.306e-05/1.808, allocations: 130.7 kB / 496.9 MB, free: 11.78 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.967e-05/1.808, allocations: 4 kB / 496.9 MB, free: 11.78 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.379e-05/1.808, allocations: 11.08 kB / 496.9 MB, free: 11.77 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/1.808, allocations: 0.6562 kB / 496.9 MB, free: 11.77 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/1.808, allocations: 7.953 kB / 496.9 MB, free: 11.76 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.427e-06/1.808, allocations: 0 / 496.9 MB, free: 11.76 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002944/1.809, allocations: 292.3 kB / 497.2 MB, free: 11.41 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.003e-06/1.809, allocations: 8 kB / 497.2 MB, free: 11.4 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.142e-06/1.809, allocations: 0 / 497.2 MB, free: 11.4 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.929e-06/1.809, allocations: 3.984 kB / 497.2 MB, free: 11.4 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.895e-06/1.809, allocations: 0.6562 kB / 497.2 MB, free: 11.4 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.178e-06/1.809, allocations: 3.953 kB / 497.2 MB, free: 11.39 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/1.809, allocations: 0 / 497.2 MB, free: 11.39 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001646/1.809, allocations: 173.2 kB / 497.4 MB, free: 11.2 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.283e-05/1.809, allocations: 81.09 kB / 497.5 MB, free: 11.11 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.591e-05/1.809, allocations: 0 / 497.5 MB, free: 11.11 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.027e-05/1.809, allocations: 0 / 497.5 MB, free: 11.11 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.535e-05/1.809, allocations: 9.172 kB / 497.5 MB, free: 11.1 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.741e-06/1.809, allocations: 0 / 497.5 MB, free: 11.1 MB / 426.7 MB Notification: Performance of sorting global known variables: time 3.419e-05/1.809, allocations: 79.28 kB / 497.6 MB, free: 11.02 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.71e-07/1.809, allocations: 4.031 kB / 497.6 MB, free: 11.02 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007159/1.816, allocations: 1.32 MB / 498.9 MB, free: 9.695 MB / 426.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: 2 (result,$outputAlias_result) * Number of discrete states: 1 ($outputAlias_result) * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 1 * 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.01124/1.828, allocations: 1.804 MB / 0.489 GB, free: 7.871 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0001607/1.828, allocations: 63.39 kB / 0.489 GB, free: 7.797 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.481e-06/1.828, allocations: 4 kB / 0.489 GB, free: 7.793 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 5.369e-05/1.828, allocations: 55.41 kB / 0.4891 GB, free: 7.727 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001501/1.828, allocations: 12.89 kB / 0.4891 GB, free: 7.715 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002727/1.831, allocations: 196.8 kB / 0.4893 GB, free: 7.48 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003044/1.831, allocations: 0.677 MB / 0.4899 GB, free: 6.777 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.356e-05/1.831, allocations: 11.44 kB / 0.49 GB, free: 6.766 MB / 426.7 MB Notification: Performance of SimCode: time 1.372e-06/1.831, allocations: 0 / 0.49 GB, free: 6.766 MB / 426.7 MB Error: Error building simulator. Build log: clang++ -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DSUNDIALS_MAJOR_VERSION=2 -DSUNDIALS_MINOR_VERSION=6 -DPMC_USE_SUNDIALS -DFMU_BUILD -DRUNTIME_STATIC_LINKING -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp" -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -I"." -DUSE_LOGGER -c -o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestSpecialCalcHelperMain.o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestSpecialCalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestSpecialCalcHelperMain.cpp:28: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestSpecialFunctions.cpp:8911:35: error: use of undeclared identifier 'D_24tmpVar2_'; did you mean 'D_24tmpVar3_'? D_24tmpVar3_ = std::abs(D_24tmpVar2_); ^~~~~~~~~~~~ D_24tmpVar3_ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestSpecialFunctions.cpp:8886:14: note: 'D_24tmpVar3_' declared here double D_24tmpVar3_; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestSpecialFunctions.cpp:8964:40: error: use of undeclared identifier 'D_24tmpVar5_'; did you mean 'D_24tmpVar6_'? Modelica_Math_Special_erfInv(D_24tmpVar5_,tmp2059); ^~~~~~~~~~~~ D_24tmpVar6_ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestSpecialFunctions.cpp:8941:14: note: 'D_24tmpVar6_' declared here double D_24tmpVar6_; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestSpecialFunctions.cpp:9004:58: error: use of undeclared identifier 'D_24tmpVar8_'; did you mean 'D_24tmpVar9_'? ModelicaTest_Math_Random_Internal_erfInvSimple(D_24tmpVar8_,tmp2065); ^~~~~~~~~~~~ D_24tmpVar9_ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestSpecialFunctions.cpp:8981:14: note: 'D_24tmpVar9_' declared here double D_24tmpVar9_; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestSpecialFunctions.cpp:9046:36: error: use of undeclared identifier 'D_24tmpVar11_'; did you mean 'D_24tmpVar12_'? D_24tmpVar12_ = std::abs(D_24tmpVar11_); ^~~~~~~~~~~~~ D_24tmpVar12_ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestSpecialFunctions.cpp:9021:14: note: 'D_24tmpVar12_' declared here double D_24tmpVar12_; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestSpecialFunctions.cpp:10103:40: error: use of undeclared identifier 'D_24tmpVar14_'; did you mean 'D_24tmpVar15_'? Modelica_Math_Special_erfInv(D_24tmpVar14_,tmp3080); ^~~~~~~~~~~~~ D_24tmpVar15_ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestSpecialFunctions.cpp:10080:14: note: 'D_24tmpVar15_' declared here double D_24tmpVar15_; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestSpecialFunctions.cpp:12175:36: error: use of undeclared identifier 'D_24tmpVar17_'; did you mean 'D_24tmpVar18_'? D_24tmpVar18_ = std::abs(D_24tmpVar17_); ^~~~~~~~~~~~~ D_24tmpVar18_ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestSpecialFunctions.cpp:12150:14: note: 'D_24tmpVar18_' declared here double D_24tmpVar18_; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestSpecialFunctions.cpp:13232:41: error: use of undeclared identifier 'D_24tmpVar20_'; did you mean 'D_24tmpVar21_'? Modelica_Math_Special_erfcInv(D_24tmpVar20_,tmp6102); ^~~~~~~~~~~~~ D_24tmpVar21_ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestSpecialFunctions.cpp:13209:14: note: 'D_24tmpVar21_' declared here double D_24tmpVar21_; ^ In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestSpecialCalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestSpecialFMU.cpp:11: /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/FMU2/FMU2Wrapper.cpp:93:11: warning: 6 enumeration values not handled in switch: 'LC_INIT', 'LC_LS', 'LC_SOLVER'... [-Wswitch] switch (cat) { ^ 1 warning and 7 errors generated. : recipe for target 'OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestSpecialCalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Math_Random_TestSpecialCalcHelperMain.o] Error 1