Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_CharacteristicThyristors",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.023/2.023, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.366e-05/3.377e-05, allocations: 4 kB / 292.2 MB, free: 8.758 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1116/0.1117, allocations: 50.42 MB / 342.6 MB, free: 6.312 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4769/0.5886, allocations: 84.41 MB / 427 MB, free: 9.453 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002652/0.5889, allocations: 82.44 kB / 427.1 MB, free: 9.41 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0486/0.6376, allocations: 11.31 MB / 438.4 MB, free: 15.81 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.6376, allocations: 0 / 438.4 MB, free: 15.81 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.543e-05/0.6377, allocations: 15.98 kB / 438.5 MB, free: 15.79 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001963/0.6397, allocations: 0.7922 MB / 439.2 MB, free: 14.98 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.404e-05/0.6397, allocations: 8.031 kB / 439.3 MB, free: 14.98 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000139/0.6399, allocations: 79.08 kB / 439.3 MB, free: 14.91 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002073/0.6401, allocations: 71.25 kB / 439.4 MB, free: 14.84 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009172/0.641, allocations: 397.3 kB / 439.8 MB, free: 14.46 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.533e-05/0.6411, allocations: 28.72 kB / 439.8 MB, free: 14.44 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.197e-05/0.6412, allocations: 36.56 kB / 439.9 MB, free: 14.42 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001022/0.6422, allocations: 421 kB / 440.3 MB, free: 14.11 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.862e-05/0.6423, allocations: 0 / 440.3 MB, free: 14.11 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.691e-05/0.6423, allocations: 25.02 kB / 440.3 MB, free: 14.1 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.705e-05/0.6424, allocations: 15.94 kB / 440.3 MB, free: 14.08 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008545/0.6432, allocations: 288.5 kB / 440.6 MB, free: 13.89 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004021/0.6473, allocations: 1.736 MB / 442.3 MB, free: 12.37 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008996/0.6482, allocations: 342.6 kB / 442.7 MB, free: 12.17 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004367/0.6487, allocations: 180.3 kB / 442.8 MB, free: 12.05 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.461e-05/0.6487, allocations: 7.938 kB / 442.8 MB, free: 12.05 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005749/0.6493, allocations: 252.4 kB / 443.1 MB, free: 11.83 MB / 362.7 MB Notification: Performance of pre-optimization done (n=40): time 2.996e-06/0.6493, allocations: 0 / 443.1 MB, free: 11.83 MB / 362.7 MB Notification: Performance of matching and sorting (n=40): time 0.001513/0.6508, allocations: 465 kB / 443.5 MB, free: 11.46 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001106/0.651, allocations: 187.5 kB / 443.7 MB, free: 11.24 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008625/0.6519, allocations: 439 kB / 444.2 MB, free: 10.9 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.246e-05/0.6519, allocations: 36.77 kB / 444.2 MB, free: 10.87 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000233/0.6522, allocations: 294 kB / 444.5 MB, free: 10.64 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001408/0.6523, allocations: 117.2 kB / 444.6 MB, free: 10.54 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.164e-05/0.6524, allocations: 10.81 kB / 444.6 MB, free: 10.54 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001349/0.6525, allocations: 325.5 kB / 444.9 MB, free: 10.21 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003223/0.6529, allocations: 114.5 kB / 445 MB, free: 10.15 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004328/0.6533, allocations: 203.8 kB / 445.2 MB, free: 9.973 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000339/0.6537, allocations: 117.1 kB / 445.3 MB, free: 9.898 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.153e-06/0.6537, allocations: 4 kB / 445.3 MB, free: 9.895 MB / 362.7 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.001102/0.6548, allocations: 428.5 kB / 445.8 MB, free: 9.574 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.296e-05/0.6548, allocations: 4 kB / 445.8 MB, free: 9.57 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.278e-05/0.6549, allocations: 7.953 kB / 445.8 MB, free: 9.562 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000789/0.6557, allocations: 155.2 kB / 445.9 MB, free: 9.434 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004138/0.6561, allocations: 55.72 kB / 446 MB, free: 9.383 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006484/0.6626, allocations: 5.925 MB / 451.9 MB, free: 3.312 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008087/0.6635, allocations: 58.7 kB / 452 MB, free: 3.262 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.495e-05/0.6635, allocations: 10.81 kB / 452 MB, free: 3.254 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 16 ($whenCondition2,$PRE.booleanStep1.combiTimeTable.nextTimeEvent,$whenCondition1,$PRE.IdealThyristor1.off,IdealThyristor1.off,IdealGTOThyristor1.off,IdealGTOThyristor1.fire,booleanStep1.combiTimeTable.nextTimeEvent,$PRE.booleanStep1.combiTimeTable.nextTimeEventScaled,booleanStep1.combiTimeTable.nextTimeEventScaled,$PRE.IdealThyristor2.off,IdealThyristor2.off,IdealGTOThyristor2.off,IdealGTOThyristor2.fire,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 30 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 4,1 4,1 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001994/0.6637, allocations: 139.6 kB / 452.1 MB, free: 3.125 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001265/0.6639, allocations: 55.44 kB / 452.2 MB, free: 3.07 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001476/0.6653, allocations: 488.9 kB / 452.6 MB, free: 2.715 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.829e-06/0.6654, allocations: 4.094 kB / 452.7 MB, free: 2.711 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.6654, allocations: 3.984 kB / 452.7 MB, free: 2.707 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.907e-06/0.6654, allocations: 3.984 kB / 452.7 MB, free: 2.703 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008732/0.6663, allocations: 0.5067 MB / 453.2 MB, free: 2.262 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.358e-06/0.6663, allocations: 4.125 kB / 453.2 MB, free: 2.258 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002662/0.6666, allocations: 35.92 kB / 453.2 MB, free: 2.223 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007176/0.6673, allocations: 147.7 kB / 453.3 MB, free: 2.102 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.96e-05/0.6674, allocations: 11.56 kB / 453.4 MB, free: 2.098 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00626/0.6736, allocations: 5.772 MB / 459.1 MB, free: 12.18 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.22e-06/0.6737, allocations: 3.984 kB / 459.1 MB, free: 12.18 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001512/0.6752, allocations: 499.2 kB / 459.6 MB, free: 11.77 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004105/0.6757, allocations: 172.8 kB / 459.8 MB, free: 11.6 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000116/0.6758, allocations: 11.19 kB / 459.8 MB, free: 11.59 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005553/0.6764, allocations: 35.91 kB / 459.8 MB, free: 11.56 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002509/0.6766, allocations: 54.03 kB / 459.9 MB, free: 11.52 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.316e-05/0.6767, allocations: 15.81 kB / 459.9 MB, free: 11.51 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00072/0.6774, allocations: 349.8 kB / 460.2 MB, free: 11.25 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.6774, allocations: 0 / 460.2 MB, free: 11.25 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001263/0.6787, allocations: 193.6 kB / 460.4 MB, free: 11.07 MB / 378.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: 11 ($whenCondition2,$whenCondition1,IdealThyristor1.off,IdealGTOThyristor1.off,IdealGTOThyristor1.fire,booleanStep1.combiTimeTable.nextTimeEvent,booleanStep1.combiTimeTable.nextTimeEventScaled,IdealThyristor2.off,IdealGTOThyristor2.off,IdealGTOThyristor2.fire,booleanPulse.pulseStart) * Number of discrete states: 4 (IdealThyristor1.off,IdealThyristor2.off,booleanStep1.combiTimeTable.nextTimeEvent,booleanStep1.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 4,1 4,1 4,1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.002958/0.6817, allocations: 1.339 MB / 461.8 MB, free: 9.93 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001541/0.6833, allocations: 0.76 MB / 462.5 MB, free: 9.246 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.909e-06/0.6833, allocations: 4.188 kB / 462.5 MB, free: 9.242 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009652/0.6843, allocations: 0.6109 MB / 463.2 MB, free: 8.668 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008867/0.6852, allocations: 104.3 kB / 463.3 MB, free: 8.594 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003044/0.6882, allocations: 0.8443 MB / 464.1 MB, free: 7.812 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005696/0.6888, allocations: 0.8688 MB / 465 MB, free: 6.922 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003639/0.6892, allocations: 170 kB / 465.1 MB, free: 6.773 MB / 378.7 MB Notification: Performance of SimCode: time 1.252e-06/0.6892, allocations: 4 kB / 465.1 MB, free: 6.77 MB / 378.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_Electrical_Analog_Examples_CharacteristicThyristorsCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica_Electrical_Analog_Examples_CharacteristicThyristorsCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica_Electrical_Analog_Examples_CharacteristicThyristorsCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica_Electrical_Analog_Examples_CharacteristicThyristorsFunctions.cpp:248:33: error: no matching function for call to 'ModelicaStandardTables_CombiTimeTable_init2' externalCombiTimeTable__ext = ModelicaStandardTables_CombiTimeTable_init2(fileName_.c_str(), tableName_.c_str(), tmp21.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_Electrical_Analog_Examples_CharacteristicThyristorsCalcHelperMain.cpp:35: In file included from ./OMCppModelica_trunk_cpp_Modelica_Electrical_Analog_Examples_CharacteristicThyristorsFMU.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_Electrical_Analog_Examples_CharacteristicThyristorsCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica_Electrical_Analog_Examples_CharacteristicThyristorsCalcHelperMain.o] Error 1