Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Logical,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Blocks_Logical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.604/2.604, allocations: 270 MB / 282.6 MB, free: 1.863 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.08e-05/3.09e-05, allocations: 4 kB / 347.1 MB, free: 3.145 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3993/0.3993, allocations: 61.87 MB / 408.9 MB, free: 10.67 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1846/0.584, allocations: 94.36 MB / 0.4915 GB, free: 12.18 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002757/0.5844, allocations: 63.97 kB / 0.4915 GB, free: 12.11 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05983/0.6442, allocations: 13.02 MB / 0.5043 GB, free: 15.07 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.6443, allocations: 0 / 0.5043 GB, free: 15.07 MB / 442.7 MB Notification: Performance of Transformations before backend: time 5.187e-05/0.6443, allocations: 16 kB / 0.5043 GB, free: 15.05 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.002357/0.6467, allocations: 0.853 MB / 0.5051 GB, free: 14.13 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.374e-05/0.6468, allocations: 12.03 kB / 0.5051 GB, free: 14.12 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000141/0.6469, allocations: 74.53 kB / 0.5052 GB, free: 14.04 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002043/0.6471, allocations: 67.23 kB / 0.5053 GB, free: 13.97 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001001/0.6481, allocations: 406 kB / 0.5056 GB, free: 13.54 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.731e-05/0.6482, allocations: 44.95 kB / 0.5057 GB, free: 13.49 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001048/0.6483, allocations: 40 kB / 0.5057 GB, free: 13.45 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001036/0.6494, allocations: 425.8 kB / 0.5061 GB, free: 13.02 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.696e-05/0.6494, allocations: 0 / 0.5061 GB, free: 13.02 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.953e-05/0.6495, allocations: 23.97 kB / 0.5062 GB, free: 13 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.78e-05/0.6495, allocations: 12 kB / 0.5062 GB, free: 12.98 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000808/0.6504, allocations: 262 kB / 0.5064 GB, free: 12.73 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003335/0.6537, allocations: 1.122 MB / 0.5075 GB, free: 11.55 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001728/0.6555, allocations: 458.4 kB / 0.5079 GB, free: 11.09 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004529/0.6559, allocations: 158.2 kB / 0.5081 GB, free: 10.94 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.677e-05/0.656, allocations: 4.438 kB / 0.5081 GB, free: 10.93 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007107/0.6567, allocations: 268.3 kB / 0.5084 GB, free: 10.66 MB / 442.7 MB Notification: Performance of pre-optimization done (n=52): time 3.015e-06/0.6567, allocations: 0 / 0.5084 GB, free: 10.66 MB / 442.7 MB Notification: Performance of matching and sorting (n=52): time 0.001301/0.6581, allocations: 411.5 kB / 0.5087 GB, free: 10.25 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001102/0.6582, allocations: 133 kB / 0.5089 GB, free: 10.09 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009784/0.6592, allocations: 478.8 kB / 0.5093 GB, free: 9.613 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 9.81e-05/0.6593, allocations: 53.62 kB / 0.5094 GB, free: 9.555 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002565/0.6596, allocations: 279.9 kB / 0.5097 GB, free: 9.281 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001772/0.6597, allocations: 130.4 kB / 0.5098 GB, free: 9.152 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.035e-05/0.6598, allocations: 8 kB / 0.5098 GB, free: 9.145 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001755/0.66, allocations: 334.8 kB / 0.5101 GB, free: 8.809 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004451/0.6604, allocations: 141.1 kB / 0.5102 GB, free: 8.672 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005685/0.661, allocations: 231.8 kB / 0.5105 GB, free: 8.426 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004484/0.6615, allocations: 123.2 kB / 0.5106 GB, free: 8.305 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.974e-06/0.6615, allocations: 4 kB / 0.5106 GB, free: 8.301 MB / 442.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001469/0.663, allocations: 439.8 kB / 0.511 GB, free: 7.859 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.2e-05/0.663, allocations: 11.94 kB / 0.511 GB, free: 7.848 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.289e-05/0.6631, allocations: 4.062 kB / 0.511 GB, free: 7.844 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002152/0.6633, allocations: 44.78 kB / 0.5111 GB, free: 7.797 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004526/0.6637, allocations: 55.84 kB / 0.5111 GB, free: 7.742 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001874/0.6656, allocations: 1.432 MB / 0.5125 GB, free: 6.172 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008812/0.6666, allocations: 83.88 kB / 0.5126 GB, free: 6.09 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.297e-05/0.6666, allocations: 16 kB / 0.5126 GB, free: 6.074 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 58 ($whenCondition2,$PRE.table2.combiTimeTable.nextTimeEvent,$whenCondition1,$PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition4,$whenCondition3,table1.combiTimeTable.nextTimeEvent,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent,$PRE.table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEventScaled,and1.u1,and1.u2,and1.y,nor.u1,nand.u1,$PRE.pre1.u,pre1.u,$PRE.edge1.u,edge1.u,edge1.y,fallingEdge.y,$PRE.fallingEdge.not_u,fallingEdge.not_u,$PRE.change1.u,change1.u,change1.y,greaterEqualThreshold.y,lessThreshold.y,lessEqualThreshold.y,greater.y,greaterEqual.y,less.y,lessEqual.y,zeroCrossing.y,$PRE.zeroCrossing.enable,zeroCrossing.enable,$PRE.zeroCrossing.disable,zeroCrossing.disable,$PRE.zeroCrossing.u_pos,zeroCrossing.u_pos,logicalSwitch.u1,logicalSwitch.u2,logicalSwitch.y,$PRE.hysteresis.y,hysteresis.y,$PRE.onOffController.y,onOffController.y,triggeredTrapezoid.endValue,triggeredTrapezoid.rate,triggeredTrapezoid.T,$PRE.timer.entryTime,timer.entryTime,rSFlipFlop.Q,rSFlipFlop.QI,$PRE.rSFlipFlop.pre.u,rSFlipFlop.pre.u) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 65 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0002561/0.6669, allocations: 158.2 kB / 0.5128 GB, free: 5.914 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001414/0.6671, allocations: 51.39 kB / 0.5128 GB, free: 5.863 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001398/0.6685, allocations: 465.3 kB / 0.5132 GB, free: 5.406 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.058e-05/0.6685, allocations: 4 kB / 0.5133 GB, free: 5.402 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.6685, allocations: 0 / 0.5133 GB, free: 5.402 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.09e-05/0.6685, allocations: 7.984 kB / 0.5133 GB, free: 5.395 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002683/0.6712, allocations: 1.076 MB / 0.5143 GB, free: 4.258 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.859e-06/0.6713, allocations: 0 / 0.5143 GB, free: 4.258 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003419/0.6716, allocations: 47.91 kB / 0.5144 GB, free: 4.211 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.357e-06/0.6716, allocations: 4 kB / 0.5144 GB, free: 4.207 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.455e-05/0.6717, allocations: 15.98 kB / 0.5144 GB, free: 4.191 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.01e-05/0.6717, allocations: 8 kB / 0.5144 GB, free: 4.184 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.444e-06/0.6717, allocations: 0 / 0.5144 GB, free: 4.184 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001231/0.673, allocations: 0.5112 MB / 0.5149 GB, free: 3.66 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002072/0.6732, allocations: 144.4 kB / 0.515 GB, free: 3.5 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001273/0.6733, allocations: 15.94 kB / 0.515 GB, free: 3.484 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007164/0.6741, allocations: 75.94 kB / 0.5151 GB, free: 3.41 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002538/0.6743, allocations: 68.31 kB / 0.5152 GB, free: 3.344 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.337e-05/0.6744, allocations: 27.92 kB / 0.5152 GB, free: 3.316 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0007026/0.6751, allocations: 349.2 kB / 0.5155 GB, free: 2.977 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.6751, allocations: 0 / 0.5155 GB, free: 2.977 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0007817/0.6759, allocations: 135.8 kB / 0.5157 GB, free: 2.844 MB / 442.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: 43 (and1.u2,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEventScaled,and1.u1,and1.y,nor.u1,nand.u1,pre1.u,edge1.u,edge1.y,fallingEdge.y,fallingEdge.not_u,change1.u,change1.y,greaterEqualThreshold.y,lessThreshold.y,lessEqualThreshold.y,greater.y,greaterEqual.y,less.y,lessEqual.y,zeroCrossing.y,zeroCrossing.enable,zeroCrossing.disable,zeroCrossing.u_pos,logicalSwitch.u1,logicalSwitch.u2,logicalSwitch.y,hysteresis.y,onOffController.y,triggeredTrapezoid.endValue,triggeredTrapezoid.rate,triggeredTrapezoid.T,timer.entryTime,rSFlipFlop.Q,rSFlipFlop.QI,rSFlipFlop.pre.u) * Number of discrete states: 15 (table2.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEvent,pre1.u,zeroCrossing.u_pos,zeroCrossing.enable,zeroCrossing.disable,hysteresis.y,onOffController.y,rSFlipFlop.pre.u,table2.combiTimeTable.nextTimeEventScaled,triggeredTrapezoid.y,table1.combiTimeTable.nextTimeEventScaled,change1.u,fallingEdge.not_u,edge1.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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.002865/0.6788, allocations: 1.401 MB / 0.517 GB, free: 1.547 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001406/0.6803, allocations: 0.4906 MB / 0.5175 GB, free: 1.051 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.6803, allocations: 0 / 0.5175 GB, free: 1.051 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005646/0.6809, allocations: 201.6 kB / 0.5177 GB, free: 0.8516 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000774/0.6816, allocations: 74.31 kB / 0.5178 GB, free: 0.7812 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002593/0.6843, allocations: 0.8534 MB / 0.5186 GB, free: 15.88 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006885/0.685, allocations: 0.8805 MB / 0.5195 GB, free: 14.96 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005245/0.6855, allocations: 195.4 kB / 0.5197 GB, free: 14.78 MB / 458.7 MB Notification: Performance of SimCode: time 1.362e-06/0.6855, allocations: 0 / 0.5197 GB, free: 14.78 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 OMCppModelicaTest_trunk_cpp_ModelicaTest_Blocks_LogicalCalcHelperMain.o OMCppModelicaTest_trunk_cpp_ModelicaTest_Blocks_LogicalCalcHelperMain.cpp In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Blocks_LogicalCalcHelperMain.cpp:28: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Blocks_LogicalFunctions.cpp:291:33: error: no matching function for call to 'ModelicaStandardTables_CombiTimeTable_init2' externalCombiTimeTable__ext = ModelicaStandardTables_CombiTimeTable_init2(fileName_.c_str(), tableName_.c_str(), tmp54.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 OMCppModelicaTest_trunk_cpp_ModelicaTest_Blocks_LogicalCalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Blocks_LogicalFMU.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 'OMCppModelicaTest_trunk_cpp_ModelicaTest_Blocks_LogicalCalcHelperMain.o' failed make: *** [OMCppModelicaTest_trunk_cpp_ModelicaTest_Blocks_LogicalCalcHelperMain.o] Error 1