Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary,fileNamePrefix="Modelica_3_1_cpp_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStationary",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.014/1.014, allocations: 111.2 MB / 123.8 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.644e-05/2.653e-05, allocations: 4 kB / 151.5 MB, free: 15.48 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1692/0.1692, allocations: 25.15 MB / 176.6 MB, free: 15.91 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07957/0.2488, allocations: 45.46 MB / 222.1 MB, free: 3.852 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002583/0.2492, allocations: 63.97 kB / 222.2 MB, free: 3.789 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3429/0.5921, allocations: 42.97 MB / 265.1 MB, free: 48.12 MB / 218.7 MB Notification: Performance of FrontEnd: time 2.615e-06/0.5922, allocations: 3.391 kB / 265.1 MB, free: 48.12 MB / 218.7 MB Notification: Performance of Transformations before backend: time 0.0001992/0.5924, allocations: 54.41 kB / 265.2 MB, free: 48.12 MB / 218.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 510 * Number of variables: 510 Notification: Performance of Generate backend data structure: time 0.008756/0.6012, allocations: 2.251 MB / 267.5 MB, free: 47.08 MB / 218.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.991e-05/0.6012, allocations: 6.875 kB / 267.5 MB, free: 47.08 MB / 218.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001005/0.6023, allocations: 283.7 kB / 267.7 MB, free: 47.04 MB / 218.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009999/0.6033, allocations: 284 kB / 268 MB, free: 46.89 MB / 218.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00362/0.6069, allocations: 1.239 MB / 269.3 MB, free: 46.48 MB / 218.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002001/0.6072, allocations: 158.4 kB / 269.4 MB, free: 46.46 MB / 218.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007556/0.608, allocations: 202.1 kB / 269.6 MB, free: 46.46 MB / 218.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006539/0.6145, allocations: 2.046 MB / 271.6 MB, free: 46.35 MB / 218.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.646e-05/0.6147, allocations: 3.25 kB / 271.7 MB, free: 46.35 MB / 218.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003956/0.6151, allocations: 84.59 kB / 271.7 MB, free: 46.35 MB / 218.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.263e-05/0.6151, allocations: 46.84 kB / 271.8 MB, free: 46.35 MB / 218.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006217/0.6213, allocations: 1.797 MB / 273.6 MB, free: 46.34 MB / 218.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0223/0.6437, allocations: 7.385 MB / 281 MB, free: 43.32 MB / 218.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005323/0.6491, allocations: 2.24 MB / 283.2 MB, free: 42.2 MB / 218.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003937/0.6531, allocations: 1.361 MB / 284.6 MB, free: 41.73 MB / 218.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003851/0.6535, allocations: 121.4 kB / 284.7 MB, free: 41.63 MB / 218.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.383e-05/0.6536, allocations: 57.69 kB / 284.7 MB, free: 41.57 MB / 218.7 MB Notification: Performance of pre-optimization done (n=220): time 5.27e-06/0.6536, allocations: 0 / 284.7 MB, free: 41.57 MB / 218.7 MB Notification: Performance of matching and sorting (n=345): time 0.1101/0.7637, allocations: 17.23 MB / 302 MB, free: 29.43 MB / 218.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.1745/0.9382, allocations: 33.25 MB / 335.2 MB, free: 12.8 MB / 234.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Magnetic/FluxTubes.mo:3057:9-3059:53:writable] Warning: Parameter advancedSolenoid.g_mFePole.r_i has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003652/0.9419, allocations: 1.391 MB / 336.6 MB, free: 11.41 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007583/0.9427, allocations: 81.7 kB / 336.7 MB, free: 11.32 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001066/0.9438, allocations: 0.8866 MB / 337.6 MB, free: 10.43 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001918/0.9458, allocations: 1.134 MB / 338.7 MB, free: 9.305 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004721/0.9463, allocations: 72.03 kB / 338.8 MB, free: 9.234 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0003183/0.9466, allocations: 425.5 kB / 339.2 MB, free: 8.809 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004917/0.9515, allocations: 1.44 MB / 340.6 MB, free: 7.367 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005429/0.957, allocations: 1.701 MB / 342.3 MB, free: 5.613 MB / 234.7 MB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.0434/1, allocations: 4.857 MB / 347.2 MB, free: 0.7891 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.047e-05/1, allocations: 0 / 347.2 MB, free: 0.7891 MB / 234.7 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.1743/1.175, allocations: 4.27 MB / 351.5 MB, free: 55.74 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.629e-05/1.175, allocations: 7.781 kB / 351.5 MB, free: 55.74 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.517e-05/1.175, allocations: 4.594 kB / 351.5 MB, free: 55.74 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02801/1.203, allocations: 1.512 MB / 353 MB, free: 55.68 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009383/1.212, allocations: 0.6118 MB / 353.6 MB, free: 55.68 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01579/1.228, allocations: 9.873 MB / 363.5 MB, free: 48.18 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007339/1.236, allocations: 168.1 kB / 363.6 MB, free: 48.18 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009504/1.237, allocations: 151.1 kB / 363.8 MB, free: 48.18 MB / 234.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: advancedSolenoid.armature.mass.v = $START.advancedSolenoid.armature.mass.v. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 5 (advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact,comparisonWithFEA.tableID) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (298): * Single equations (assignments): 289 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 3,(1,100.0%) 7} * Non-linear torn systems: 2 {3 37,3 45} Notification: Performance of prepare postOptimizeDAE: time 0.001112/1.238, allocations: 268.5 kB / 364 MB, free: 48.07 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009641/1.239, allocations: 255.1 kB / 364.3 MB, free: 48.07 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01461/1.253, allocations: 4.618 MB / 368.9 MB, free: 47.82 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01255/1.266, allocations: 3.998 MB / 372.9 MB, free: 46.97 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.415e-05/1.266, allocations: 3.406 kB / 372.9 MB, free: 46.97 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.016e-05/1.266, allocations: 17.58 kB / 372.9 MB, free: 46.97 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03831/1.305, allocations: 9.884 MB / 382.8 MB, free: 42.46 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.07e-05/1.305, allocations: 3.375 kB / 382.8 MB, free: 42.46 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007852/1.313, allocations: 0.5133 MB / 383.3 MB, free: 42.44 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02556/1.338, allocations: 1.565 MB / 384.9 MB, free: 42.14 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008258/1.339, allocations: 95.69 kB / 385 MB, free: 42.1 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01035/1.349, allocations: 9.882 MB / 394.9 MB, free: 32.27 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.1586/1.508, allocations: 28.89 MB / 423.8 MB, free: 6.621 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02999/1.538, allocations: 6.937 MB / 430.7 MB, free: 15.81 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004085/1.542, allocations: 0.7218 MB / 431.4 MB, free: 15.07 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00171/1.544, allocations: 64 kB / 431.5 MB, free: 15.01 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007621/1.552, allocations: 167.5 kB / 431.6 MB, free: 14.85 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001548/1.553, allocations: 234.1 kB / 431.9 MB, free: 14.62 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001114/1.554, allocations: 135.3 kB / 432 MB, free: 14.49 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.004661/1.559, allocations: 1.07 MB / 433.1 MB, free: 13.43 MB / 250.7 MB Notification: Performance of sort global known variables: time 1.483e-06/1.559, allocations: 0 / 433.1 MB, free: 13.43 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.007741/1.567, allocations: 0.8488 MB / 433.9 MB, free: 12.59 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 7 ($STATESET2.x[2],$STATESET2.x[1],$STATESET1.x,advancedSolenoid.c_par1.v,advancedSolenoid.c_par2.v,simpleFeed_x.s,simpleFeed_x.v) * Number of discrete variables: 5 (advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact,comparisonWithFEA.tableID) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (240): * Single equations (assignments): 232 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 3,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 4,(1,100.0%) 6} * Non-linear torn systems: 2 {3 38,4 47} Notification: Performance of Backend phase and start with SimCode phase: time 0.03509/1.602, allocations: 8.346 MB / 442.3 MB, free: 4.066 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.2474/1.85, allocations: 4.101 MB / 446.4 MB, free: 69.18 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.875e-05/1.85, allocations: 1.781 kB / 446.4 MB, free: 69.18 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01219/1.862, allocations: 2.573 MB / 448.9 MB, free: 68.67 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004953/1.867, allocations: 332.8 kB / 449.3 MB, free: 68.66 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02268/1.89, allocations: 6.139 MB / 455.4 MB, free: 67.03 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001626/1.891, allocations: 1.747 MB / 457.2 MB, free: 66.28 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003365/1.895, allocations: 1.133 MB / 458.3 MB, free: 66.28 MB / 250.7 MB Notification: Performance of SimCode: time 1.382e-06/1.895, allocations: 0 / 458.3 MB, free: 66.28 MB / 250.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 OMCppModelica_3_1_cpp_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStationaryCalcHelperMain.o OMCppModelica_3_1_cpp_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStationaryCalcHelperMain.cpp In file included from OMCppModelica_3_1_cpp_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStationaryCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_1_cpp_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStationaryFMU.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 generated. clang++ -shared -o Modelica_3_1_cpp_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStationary.so OMCppModelica_3_1_cpp_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStationaryCalcHelperMain.o -L"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/cpp" -Wl,--no-undefined -lOMCppSystem_static -lOMCppMath_static -lOMCppModelicaUtilities_static -lOMCppFMU_static -lOMCppNewton_static -lOMCppDgesvSolver_static -lOMCppSolver_static -lOMCppExtensionUtilities_static -L"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Magnetic" "-L/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc" "-L/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/" "-L/var/lib/hudson/.openmodelica/binaries/Modelica" -Wl,-rpath="/var/lib/hudson/.openmodelica/binaries/Modelica" "-L/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Resources/Library/x86_64-linux" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Resources/Library/x86_64-linux" "-L/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Resources/Library/linux64" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Resources/Library/linux64" "-L/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Resources/Library" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Resources/Library" -lModelicaExternalC -lOMCppModelicaUtilities_static -lOMCppDgesv_static OMCppModelica_3_1_cpp_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStationaryCalcHelperMain.o: In function `Functions::Modelica_Blocks_Tables__omcQuot_436F6D62695461626C6531447324636F6D70617269736F6E57697468464541_tableInit(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, BaseArray&, int, int&)': /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Modelica_3.1_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary/./OMCppModelica_3_1_cpp_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStationaryFunctions.cpp:53: undefined reference to `ModelicaTables_CombiTable1D_init' OMCppModelica_3_1_cpp_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStationaryCalcHelperMain.o: In function `Functions::Modelica_Blocks_Tables__omcQuot_436F6D62695461626C6531447324636F6D70617269736F6E57697468464541_tableIpo(int, int, double, double&)': /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Modelica_3.1_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary/./OMCppModelica_3_1_cpp_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStationaryFunctions.cpp:80: undefined reference to `ModelicaTables_CombiTable1D_interpolate' clang: error: linker command failed with exit code 1 (use -v to see invocation) Modelica_3_1_cpp_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStationary_FMU.makefile:93: recipe for target 'Modelica_3_1_cpp_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStationary.fmu' failed make: *** [Modelica_3_1_cpp_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStationary.fmu] Error 1