Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStatic,fileNamePrefix="Modelica_trunk_cpp_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStatic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.105/2.105, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.052e-05/4.057e-05, allocations: 9.547 kB / 292.2 MB, free: 8.727 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1123/0.1124, allocations: 50.41 MB / 342.6 MB, free: 6.293 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4552/0.5676, allocations: 95.56 MB / 438.2 MB, free: 14.71 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003078/0.568, allocations: 90.44 kB / 438.3 MB, free: 14.66 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2296/0.7976, allocations: 51.32 MB / 489.6 MB, free: 15.88 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.883e-06/0.7976, allocations: 0 / 489.6 MB, free: 15.88 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000214/0.7979, allocations: 48 kB / 489.7 MB, free: 15.83 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 527 * Number of variables: 527 Notification: Performance of Generate backend data structure: time 0.009744/0.8076, allocations: 2.311 MB / 492 MB, free: 13.46 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.289e-05/0.8077, allocations: 12.03 kB / 492 MB, free: 13.45 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009632/0.8087, allocations: 287.4 kB / 492.3 MB, free: 13.16 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009381/0.8096, allocations: 293.1 kB / 492.5 MB, free: 12.87 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004677/0.8143, allocations: 1.329 MB / 493.9 MB, free: 11.48 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002039/0.8146, allocations: 156.1 kB / 494 MB, free: 11.33 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007036/0.8153, allocations: 207.9 kB / 494.2 MB, free: 11.12 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006072/0.8214, allocations: 1.76 MB / 496 MB, free: 9.316 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.866e-05/0.8215, allocations: 4 kB / 496 MB, free: 9.312 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003377/0.8219, allocations: 87.98 kB / 496.1 MB, free: 9.227 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.825e-05/0.8219, allocations: 52 kB / 496.1 MB, free: 9.176 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006428/0.8284, allocations: 1.738 MB / 497.9 MB, free: 7.43 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02425/0.8527, allocations: 7.606 MB / 0.4936 GB, free: 15.54 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005834/0.8586, allocations: 2.214 MB / 0.4958 GB, free: 13.3 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004179/0.8628, allocations: 1.284 MB / 0.497 GB, free: 12.02 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002839/0.8631, allocations: 45.95 kB / 0.4971 GB, free: 11.97 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.544e-05/0.8632, allocations: 56.56 kB / 0.4971 GB, free: 11.91 MB / 426.7 MB Notification: Performance of pre-optimization done (n=240): time 5.25e-06/0.8632, allocations: 0 / 0.4971 GB, free: 11.91 MB / 426.7 MB Notification: Performance of matching and sorting (n=372): time 0.09158/0.9548, allocations: 15.28 MB / 0.5121 GB, free: 12.51 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.4166/1.371, allocations: 30.89 MB / 0.5422 GB, free: 113.7 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00452/1.376, allocations: 1.615 MB / 0.5438 GB, free: 113.5 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000714/1.377, allocations: 87.98 kB / 0.5439 GB, free: 113.5 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007364/1.378, allocations: 0.8963 MB / 0.5448 GB, free: 112.9 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001533/1.379, allocations: 1.233 MB / 0.546 GB, free: 112.1 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005304/1.38, allocations: 70.09 kB / 0.546 GB, free: 112 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002839/1.38, allocations: 442.4 kB / 0.5465 GB, free: 111.7 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005777/1.386, allocations: 1.247 MB / 0.5477 GB, free: 111.1 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006472/1.392, allocations: 1.523 MB / 0.5492 GB, free: 110.3 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006239/1.399, allocations: 1.433 MB / 0.5506 GB, free: 109.7 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.621e-05/1.399, allocations: 0 / 0.5506 GB, free: 109.7 MB / 442.7 MB Notification: Performance of matching and sorting (n=433) (initialization): time 0.0194/1.418, allocations: 4.429 MB / 0.5549 GB, free: 108 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.461e-05/1.418, allocations: 9.906 kB / 0.5549 GB, free: 108 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.737e-05/1.418, allocations: 3.156 kB / 0.5549 GB, free: 108 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009473/1.428, allocations: 1.369 MB / 0.5562 GB, free: 107.7 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005806/1.434, allocations: 0.5775 MB / 0.5568 GB, free: 107.7 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0366/1.47, allocations: 19.24 MB / 0.5756 GB, free: 93.41 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004969/1.475, allocations: 167.5 kB / 0.5758 GB, free: 93.36 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008524/1.476, allocations: 116.8 kB / 0.5759 GB, free: 93.33 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 4 (advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (314): * Single equations (assignments): 305 * 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%) 3,(1,100.0%) 4,(1,100.0%) 7} * Non-linear torn systems: 2 {3 51,2 43} Notification: Performance of prepare postOptimizeDAE: time 0.0009515/1.477, allocations: 274 kB / 0.5761 GB, free: 93.13 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008296/1.478, allocations: 264.2 kB / 0.5764 GB, free: 92.99 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01874/1.497, allocations: 4.607 MB / 0.5809 GB, free: 91.12 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01645/1.513, allocations: 4.022 MB / 0.5848 GB, free: 89.57 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.988e-05/1.513, allocations: 3.438 kB / 0.5848 GB, free: 89.57 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001118/1.513, allocations: 15.94 kB / 0.5848 GB, free: 89.57 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03086/1.544, allocations: 9.748 MB / 0.5943 GB, free: 85.07 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.749e-05/1.544, allocations: 3.875 kB / 0.5944 GB, free: 85.07 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005206/1.55, allocations: 0.4967 MB / 0.5948 GB, free: 85.03 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009773/1.559, allocations: 1.391 MB / 0.5962 GB, free: 84.15 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000744/1.56, allocations: 78.92 kB / 0.5963 GB, free: 84.08 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03269/1.593, allocations: 17.69 MB / 0.6135 GB, free: 66.65 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.09538/1.688, allocations: 27.3 MB / 0.6402 GB, free: 41.82 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02148/1.71, allocations: 6.68 MB / 0.6467 GB, free: 35.39 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002307/1.712, allocations: 0.6978 MB / 0.6474 GB, free: 34.78 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008875/1.713, allocations: 64 kB / 0.6475 GB, free: 34.71 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00439/1.718, allocations: 163 kB / 0.6476 GB, free: 34.59 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001143/1.719, allocations: 278.7 kB / 0.6479 GB, free: 34.41 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004305/1.719, allocations: 102.9 kB / 0.648 GB, free: 34.32 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00276/1.722, allocations: 1.258 MB / 0.6492 GB, free: 33.17 MB / 442.7 MB Notification: Performance of sort global known variables: time 5.21e-07/1.722, allocations: 0 / 0.6492 GB, free: 33.17 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005726/1.728, allocations: 1.075 MB / 0.6503 GB, free: 32.1 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 9 ($STATESET2.x[2],$STATESET2.x[1],$STATESET1.x,advancedSolenoid.c_par1.v,advancedSolenoid.c_par2.v,advancedFeed_x.s,advancedFeed_x.v,simpleFeed_x.s,simpleFeed_x.v) * Number of discrete variables: 4 (advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (256): * Single equations (assignments): 249 * Array equations: 0 * 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%) 2,(1,100.0%) 2,(1,100.0%) 4,(1,100.0%) 6} * Non-linear torn systems: 2 {3 43,4 53} Notification: Performance of Backend phase and start with SimCode phase: time 0.02361/1.751, allocations: 8.559 MB / 0.6586 GB, free: 23.99 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01193/1.763, allocations: 4.41 MB / 0.6629 GB, free: 19.68 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.137e-06/1.763, allocations: 4 kB / 0.6629 GB, free: 19.68 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00786/1.771, allocations: 3.016 MB / 0.6659 GB, free: 16.76 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003019/1.774, allocations: 321.5 kB / 0.6662 GB, free: 16.48 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01973/1.794, allocations: 6.472 MB / 0.6725 GB, free: 10.54 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001968/1.796, allocations: 1.838 MB / 0.6743 GB, free: 9.066 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003535/1.8, allocations: 1.128 MB / 0.6754 GB, free: 7.996 MB / 442.7 MB Notification: Performance of SimCode: time 1.122e-06/1.8, allocations: 0 / 0.6754 GB, free: 7.996 MB / 442.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"." "-I/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources" -DUSE_LOGGER -c -o OMCppModelica_trunk_cpp_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStaticCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStaticCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStaticCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStaticFunctions.cpp:161:31: error: no matching function for call to 'ModelicaStandardTables_CombiTable1D_init2' externalCombiTable1D__ext = ModelicaStandardTables_CombiTable1D_init2(fileName_.c_str(), tableName_.c_str(), tmp49.getData(), table_.getDim(1), table_.getDim(2), ConstArray(columns_).getData(), columns_.getDim(1), smoothness__ext, extrapolation__ext, verboseRead__ext); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources/ModelicaStandardTables.h:269:23: note: candidate function not viable: 6th argument ('const int *') would lose const qualifier MODELICA_EXPORT void* ModelicaStandardTables_CombiTable1D_init2(_In_z_ const char* fileName, ^ In file included from OMCppModelica_trunk_cpp_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStaticCalcHelperMain.cpp:35: In file included from ./OMCppModelica_trunk_cpp_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStaticFMU.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 1 error generated. : recipe for target 'OMCppModelica_trunk_cpp_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStaticCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStaticCalcHelperMain.o] Error 1