Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,fileNamePrefix="Modelica_trunk_cpp_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.03/2.03, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.741e-05/3.745e-05, allocations: 4 kB / 292.2 MB, free: 8.734 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1058/0.1058, allocations: 50.41 MB / 342.6 MB, free: 6.301 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4436/0.5495, allocations: 96.02 MB / 438.7 MB, free: 13.95 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003068/0.5499, allocations: 89.88 kB / 438.7 MB, free: 13.91 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3432/0.8931, allocations: 79.42 MB / 0.506 GB, free: 2.387 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.8931, allocations: 3.938 kB / 0.506 GB, free: 2.383 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.001049/0.8942, allocations: 116 kB / 0.5061 GB, free: 2.27 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: 528 * Number of variables: 528 Notification: Performance of Generate backend data structure: time 0.01643/0.9106, allocations: 5.54 MB / 0.5115 GB, free: 12.65 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.025e-05/0.9107, allocations: 8.031 kB / 0.5116 GB, free: 12.64 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001071/0.9118, allocations: 291.4 kB / 0.5118 GB, free: 12.35 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002282/0.9141, allocations: 0.8648 MB / 0.5127 GB, free: 11.47 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01249/0.9266, allocations: 3.597 MB / 0.5162 GB, free: 7.809 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002069/0.9268, allocations: 160.1 kB / 0.5163 GB, free: 7.648 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00058/0.9274, allocations: 211.9 kB / 0.5165 GB, free: 7.441 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005768/0.9332, allocations: 1.987 MB / 0.5185 GB, free: 5.395 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.487e-05/0.9333, allocations: 4 kB / 0.5185 GB, free: 5.391 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003176/0.9337, allocations: 87.94 kB / 0.5186 GB, free: 5.305 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.57e-05/0.9337, allocations: 52 kB / 0.5186 GB, free: 5.254 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005463/0.9392, allocations: 1.758 MB / 0.5203 GB, free: 3.492 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3307/1.27, allocations: 10.12 MB / 0.5302 GB, free: 106.8 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005808/1.276, allocations: 2.264 MB / 0.5324 GB, free: 106.5 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004241/1.28, allocations: 1.317 MB / 0.5337 GB, free: 106.4 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003078/1.28, allocations: 42.61 kB / 0.5338 GB, free: 106.4 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003484/1.284, allocations: 1.097 MB / 0.5348 GB, free: 106.3 MB / 442.7 MB Notification: Performance of pre-optimization done (n=246): time 9.447e-06/1.284, allocations: 1.125 kB / 0.5348 GB, free: 106.3 MB / 442.7 MB Notification: Performance of matching and sorting (n=382): time 0.09064/1.375, allocations: 19.1 MB / 0.5535 GB, free: 101.7 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.1142/1.489, allocations: 30.8 MB / 0.5836 GB, free: 85.11 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1615/1.65, allocations: 13.36 MB / 0.5966 GB, free: 78.96 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007843/1.651, allocations: 92.23 kB / 0.5967 GB, free: 78.86 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00449/1.656, allocations: 2.866 MB / 0.5995 GB, free: 76.12 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001691/1.657, allocations: 1.261 MB / 0.6007 GB, free: 75.15 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004873/1.658, allocations: 72.78 kB / 0.6008 GB, free: 75.08 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001962/1.658, allocations: 438.3 kB / 0.6012 GB, free: 74.68 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003782/1.662, allocations: 1.274 MB / 0.6025 GB, free: 73.43 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004173/1.666, allocations: 1.598 MB / 0.604 GB, free: 71.83 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00462/1.671, allocations: 1.474 MB / 0.6055 GB, free: 70.48 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.217e-05/1.671, allocations: 7.609 kB / 0.6055 GB, free: 70.47 MB / 442.7 MB Notification: Performance of matching and sorting (n=445) (initialization): time 0.01842/1.689, allocations: 4.579 MB / 0.6099 GB, free: 66.32 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.25e-05/1.689, allocations: 8 kB / 0.6099 GB, free: 66.31 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.756e-05/1.689, allocations: 4 kB / 0.6099 GB, free: 66.31 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009858/1.699, allocations: 1.43 MB / 0.6113 GB, free: 65.12 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00567/1.705, allocations: 0.574 MB / 0.6119 GB, free: 64.64 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03873/1.744, allocations: 22.26 MB / 0.6336 GB, free: 42.56 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006622/1.75, allocations: 198.3 kB / 0.6338 GB, free: 42.4 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008872/1.751, allocations: 128.5 kB / 0.634 GB, free: 42.3 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,$PRE.comparisonWithFEA.nextTimeEvent,comparisonWithFEA.nextTimeEvent,$PRE.comparisonWithFEA.nextTimeEventScaled,comparisonWithFEA.nextTimeEventScaled,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact,advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (318): * Single equations (assignments): 307 * 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: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 3,(1,100.0%) 7,(1,100.0%) 4} * Non-linear torn systems: 2 {2 43,3 51} Notification: Performance of prepare postOptimizeDAE: time 0.000879/1.752, allocations: 282.4 kB / 0.6342 GB, free: 42.02 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002436/1.755, allocations: 0.8526 MB / 0.6351 GB, free: 41.16 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01973/1.775, allocations: 5.471 MB / 0.6404 GB, free: 36.38 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008601/1.783, allocations: 2.39 MB / 0.6427 GB, free: 34.23 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.158e-05/1.783, allocations: 4 kB / 0.6427 GB, free: 34.23 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.667e-05/1.783, allocations: 17.2 kB / 0.6427 GB, free: 34.23 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0414/1.825, allocations: 14.1 MB / 0.6565 GB, free: 22.89 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.287e-05/1.825, allocations: 7.828 kB / 0.6565 GB, free: 22.89 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005121/1.83, allocations: 0.4886 MB / 0.657 GB, free: 22.48 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01003/1.84, allocations: 1.436 MB / 0.6584 GB, free: 21.31 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008107/1.841, allocations: 90.95 kB / 0.6585 GB, free: 21.23 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03486/1.876, allocations: 20.36 MB / 0.6784 GB, free: 0.918 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.4644/2.34, allocations: 27.24 MB / 0.705 GB, free: 105.4 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03761/2.378, allocations: 7.856 MB / 0.7127 GB, free: 104.2 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00771/2.386, allocations: 1.6 MB / 0.7142 GB, free: 103.8 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003209/2.389, allocations: 86.48 kB / 0.7143 GB, free: 103.8 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008166/2.397, allocations: 175.3 kB / 0.7145 GB, free: 103.8 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001831/2.399, allocations: 295 kB / 0.7148 GB, free: 103.8 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007153/2.4, allocations: 105.6 kB / 0.7149 GB, free: 103.8 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.02901/2.429, allocations: 10.76 MB / 0.7254 GB, free: 103.5 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.512e-06/2.429, allocations: 3.25 kB / 0.7254 GB, free: 103.5 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.008397/2.437, allocations: 1.762 MB / 0.7271 GB, free: 103.5 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 9 ($STATESET2.x[2],$STATESET2.x[1],advancedSolenoid.x,advancedSolenoid.armature.stopper_xMin.v_rel,advancedSolenoid.c_par1.v,advancedSolenoid.c_par2.v,$STATESET1.x,simpleSolenoid.x,simpleSolenoid.armature.stopper_xMin.v_rel) * Number of discrete variables: 7 (advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact,$whenCondition1,comparisonWithFEA.nextTimeEvent,comparisonWithFEA.nextTimeEventScaled) * Number of discrete states: 2 (comparisonWithFEA.nextTimeEvent,comparisonWithFEA.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (265): * Single equations (assignments): 254 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 4,(1,100.0%) 6,(1,100.0%) 3,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 2 {4 53,3 43} Notification: Performance of Backend phase and start with SimCode phase: time 0.02658/2.464, allocations: 9.151 MB / 0.736 GB, free: 100 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01181/2.476, allocations: 4.735 MB / 0.7406 GB, free: 97.48 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.097e-06/2.476, allocations: 3.875 kB / 0.7406 GB, free: 97.48 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007895/2.484, allocations: 3.286 MB / 0.7439 GB, free: 95.59 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005222/2.489, allocations: 494.8 kB / 0.7443 GB, free: 95.31 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04939/2.538, allocations: 19.45 MB / 0.7633 GB, free: 88.16 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008617/2.547, allocations: 4.208 MB / 0.7674 GB, free: 85.2 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008371/2.555, allocations: 3.465 MB / 0.7708 GB, free: 82.02 MB / 458.7 MB Notification: Performance of SimCode: time 1.623e-06/2.555, allocations: 0 / 0.7708 GB, free: 82.02 MB / 458.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_ComparisonPullInStrokeCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStrokeCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStrokeCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStrokeFunctions.cpp:204:33: error: no matching function for call to 'ModelicaStandardTables_CombiTimeTable_init2' externalCombiTimeTable__ext = ModelicaStandardTables_CombiTimeTable_init2(fileName_.c_str(), tableName_.c_str(), tmp48.getData(), table_.getDim(1), table_.getDim(2), startTime__ext, ConstArray(columns_).getData(), columns_.getDim(1), smoothness__ext, extrapolation__ext, shiftTime__ext, timeEvents__ext, verboseRead__ext); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources/ModelicaStandardTables.h:142:23: note: candidate function not viable: 7th argument ('const int *') would lose const qualifier MODELICA_EXPORT void* ModelicaStandardTables_CombiTimeTable_init2(_In_z_ const char* fileName, ^ In file included from OMCppModelica_trunk_cpp_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStrokeCalcHelperMain.cpp:35: In file included from ./OMCppModelica_trunk_cpp_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStrokeFMU.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_ComparisonPullInStrokeCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStrokeCalcHelperMain.o] Error 1