Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.RAM,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Digital_Examples_RAM",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.949/1.949, allocations: 194.9 MB / 208.4 MB, free: 3.172 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.172e-05/3.196e-05, allocations: 0 / 255.4 MB, free: 3.109 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09544/0.09549, allocations: 44.5 MB / 299.9 MB, free: 6.539 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4297/0.5252, allocations: 80.05 MB / 380 MB, free: 12.74 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002722/0.5255, allocations: 73.33 kB / 380 MB, free: 12.74 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1251/0.6506, allocations: 39.24 MB / 419.3 MB, free: 4.98 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.432e-06/0.6506, allocations: 0 / 419.3 MB, free: 4.98 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.481e-05/0.6507, allocations: 11.62 kB / 419.3 MB, free: 4.98 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.001392/0.6521, allocations: 1.346 MB / 420.6 MB, free: 3.848 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.626e-05/0.6522, allocations: 11.75 kB / 420.7 MB, free: 3.848 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.632e-05/0.6523, allocations: 52.92 kB / 420.7 MB, free: 3.805 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001693/0.6524, allocations: 124.3 kB / 420.8 MB, free: 3.742 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007897/0.6532, allocations: 471.2 kB / 421.3 MB, free: 3.406 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.654e-05/0.6533, allocations: 26.36 kB / 421.3 MB, free: 3.398 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.991e-05/0.6534, allocations: 17.53 kB / 421.3 MB, free: 3.398 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009503/0.6544, allocations: 0.5705 MB / 421.9 MB, free: 3.273 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.272e-05/0.6544, allocations: 3.984 kB / 421.9 MB, free: 3.27 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.249e-05/0.6545, allocations: 19.3 kB / 421.9 MB, free: 3.262 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.602e-06/0.6545, allocations: 3.875 kB / 421.9 MB, free: 3.262 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006845/0.6552, allocations: 453.5 kB / 422.4 MB, free: 3.215 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002009/0.6572, allocations: 0.9255 MB / 423.3 MB, free: 2.715 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008857/0.6581, allocations: 0.7223 MB / 424 MB, free: 2.637 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008903/0.659, allocations: 0.7093 MB / 424.7 MB, free: 2.578 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.561e-05/0.659, allocations: 3.75 kB / 424.7 MB, free: 2.578 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001023/0.6601, allocations: 0.7332 MB / 425.5 MB, free: 2.281 MB / 314.7 MB Notification: Performance of pre-optimization done (n=41): time 3.336e-06/0.6601, allocations: 0 / 425.5 MB, free: 2.281 MB / 314.7 MB Notification: Performance of matching and sorting (n=41): time 0.002331/0.6624, allocations: 1.556 MB / 427 MB, free: 1.762 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001445/0.6626, allocations: 331.7 kB / 427.3 MB, free: 1.41 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002434/0.665, allocations: 1.303 MB / 428.6 MB, free: 0.9492 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.053e-05/0.6651, allocations: 36.58 kB / 428.7 MB, free: 0.918 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002418/0.6654, allocations: 286.4 kB / 429 MB, free: 0.7617 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001273/0.6655, allocations: 92.22 kB / 429 MB, free: 0.707 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.436e-05/0.6656, allocations: 9.75 kB / 429.1 MB, free: 0.707 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.126e-05/0.6657, allocations: 327.7 kB / 429.4 MB, free: 400 kB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007068/0.6664, allocations: 468 kB / 429.8 MB, free: 340 kB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000684/0.6671, allocations: 467.2 kB / 430.3 MB, free: 288 kB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007922/0.6679, allocations: 0.6538 MB / 430.9 MB, free: 15.93 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.125e-06/0.6679, allocations: 0 / 430.9 MB, free: 15.93 MB / 330.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.002262/0.6702, allocations: 1.473 MB / 432.4 MB, free: 15.42 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002638/0.6705, allocations: 303.9 kB / 432.7 MB, free: 15.11 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.306e-06/0.6705, allocations: 3.75 kB / 432.7 MB, free: 15.11 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.952e-05/0.6705, allocations: 0 / 432.7 MB, free: 15.11 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.988e-05/0.6706, allocations: 0 / 432.7 MB, free: 15.11 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.085e-06/0.6706, allocations: 0 / 432.7 MB, free: 15.11 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005953/0.6712, allocations: 38.3 kB / 432.8 MB, free: 15.09 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001662/0.6714, allocations: 99.08 kB / 432.9 MB, free: 15.08 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 45 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,dLATRAM.dataIn[1],dLATRAM.dataIn[2],dLATRAM.mem[1,1],dLATRAM.mem[1,2],dLATRAM.mem[2,1],dLATRAM.mem[2,2],dLATRAM.mem[3,1],dLATRAM.mem[3,2],dLATRAM.mem[4,1],dLATRAM.mem[4,2],dLATRAM.nextstate[1],dLATRAM.nextstate[2],dLATRAM.mem_word[1],dLATRAM.mem_word[2],dLATRAM.int_addr,dLATRAM.yy[1],dLATRAM.yy[2],$PRE.dLATRAM.inertialDelaySensitive[1].x,dLATRAM.inertialDelaySensitive[1].x,$PRE.dLATRAM.inertialDelaySensitive[1].y,dLATRAM.inertialDelaySensitive[1].y,dLATRAM.inertialDelaySensitive[1].delayTime,dLATRAM.inertialDelaySensitive[1].y_auxiliary,dLATRAM.inertialDelaySensitive[1].y_old,dLATRAM.inertialDelaySensitive[1].lh,dLATRAM.inertialDelaySensitive[1].t_next,$PRE.dLATRAM.inertialDelaySensitive[2].x,dLATRAM.inertialDelaySensitive[2].x,$PRE.dLATRAM.inertialDelaySensitive[2].y,dLATRAM.inertialDelaySensitive[2].y,dLATRAM.inertialDelaySensitive[2].delayTime,dLATRAM.inertialDelaySensitive[2].y_auxiliary,dLATRAM.inertialDelaySensitive[2].y_old,dLATRAM.inertialDelaySensitive[2].lh,dLATRAM.inertialDelaySensitive[2].t_next,addr_1.y,data_1.y,data_0.y,WE.y,addr_0.y,RE.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 9 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005023/0.6719, allocations: 473.8 kB / 433.3 MB, free: 14.63 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002059/0.6721, allocations: 133.3 kB / 433.4 MB, free: 14.57 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005459/0.6727, allocations: 194 kB / 433.6 MB, free: 14.45 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.43e-06/0.6727, allocations: 6.844 kB / 433.6 MB, free: 14.45 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.112e-06/0.6727, allocations: 0 / 433.6 MB, free: 14.45 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.6727, allocations: 0 / 433.6 MB, free: 14.45 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004227/0.677, allocations: 2.417 MB / 436.1 MB, free: 11.94 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.927e-06/0.677, allocations: 4 kB / 436.1 MB, free: 11.94 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.4e-05/0.677, allocations: 0 / 436.1 MB, free: 11.94 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.091e-06/0.677, allocations: 0 / 436.1 MB, free: 11.94 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001019/0.6771, allocations: 39.97 kB / 436.1 MB, free: 11.9 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.897e-06/0.6772, allocations: 0 / 436.1 MB, free: 11.9 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.6772, allocations: 0 / 436.1 MB, free: 11.9 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003191/0.6804, allocations: 1.826 MB / 437.9 MB, free: 10 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001312/0.6817, allocations: 0.5068 MB / 438.4 MB, free: 9.473 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002919/0.682, allocations: 67.91 kB / 438.5 MB, free: 9.406 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005761/0.6826, allocations: 27.97 kB / 438.5 MB, free: 9.379 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002085/0.6847, allocations: 0.6358 MB / 439.2 MB, free: 8.742 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002051/0.6849, allocations: 107.9 kB / 439.3 MB, free: 8.637 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.002345/0.6873, allocations: 1.068 MB / 440.3 MB, free: 7.562 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.01e-07/0.6873, allocations: 0 / 440.3 MB, free: 7.562 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000901/0.6882, allocations: 195.8 kB / 440.5 MB, free: 7.375 MB / 330.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: 41 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,dLATRAM.dataIn[1],dLATRAM.dataIn[2],dLATRAM.mem[1,1],dLATRAM.mem[1,2],dLATRAM.mem[2,1],dLATRAM.mem[2,2],dLATRAM.mem[3,1],dLATRAM.mem[3,2],dLATRAM.mem[4,1],dLATRAM.mem[4,2],dLATRAM.nextstate[1],dLATRAM.nextstate[2],dLATRAM.mem_word[1],dLATRAM.mem_word[2],dLATRAM.int_addr,dLATRAM.yy[1],dLATRAM.yy[2],dLATRAM.inertialDelaySensitive[1].x,dLATRAM.inertialDelaySensitive[1].y,dLATRAM.inertialDelaySensitive[1].delayTime,dLATRAM.inertialDelaySensitive[1].y_auxiliary,dLATRAM.inertialDelaySensitive[1].y_old,dLATRAM.inertialDelaySensitive[1].lh,dLATRAM.inertialDelaySensitive[1].t_next,dLATRAM.inertialDelaySensitive[2].x,dLATRAM.inertialDelaySensitive[2].y,dLATRAM.inertialDelaySensitive[2].delayTime,dLATRAM.inertialDelaySensitive[2].y_auxiliary,dLATRAM.inertialDelaySensitive[2].y_old,dLATRAM.inertialDelaySensitive[2].lh,dLATRAM.inertialDelaySensitive[2].t_next,addr_1.y,data_1.y,data_0.y,WE.y,addr_0.y,RE.y) * Number of discrete states: 39 (addr_1.y,data_1.y,data_0.y,WE.y,addr_0.y,RE.y,dLATRAM.yy[2],dLATRAM.yy[1],dLATRAM.nextstate[2],dLATRAM.nextstate[1],dLATRAM.mem_word[2],dLATRAM.mem_word[1],dLATRAM.int_addr,dLATRAM.mem[4,2],dLATRAM.mem[4,1],dLATRAM.mem[3,2],dLATRAM.mem[3,1],dLATRAM.mem[2,2],dLATRAM.mem[2,1],dLATRAM.mem[1,2],dLATRAM.mem[1,1],dLATRAM.inertialDelaySensitive[1].y,dLATRAM.inertialDelaySensitive[1].y_auxiliary,dLATRAM.inertialDelaySensitive[1].t_next,dLATRAM.inertialDelaySensitive[1].delayTime,dLATRAM.inertialDelaySensitive[1].lh,dLATRAM.inertialDelaySensitive[1].y_old,$whenCondition4,$whenCondition3,dLATRAM.inertialDelaySensitive[1].x,dLATRAM.inertialDelaySensitive[2].y,dLATRAM.inertialDelaySensitive[2].y_auxiliary,dLATRAM.inertialDelaySensitive[2].t_next,dLATRAM.inertialDelaySensitive[2].delayTime,dLATRAM.inertialDelaySensitive[2].lh,dLATRAM.inertialDelaySensitive[2].y_old,$whenCondition2,$whenCondition1,dLATRAM.inertialDelaySensitive[2].x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 9 * Record equations: 0 * When equations: 0 * 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.004434/0.6926, allocations: 2.653 MB / 443.2 MB, free: 4.684 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003016/0.6957, allocations: 2.079 MB / 445.3 MB, free: 2.496 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.6957, allocations: 0 / 445.3 MB, free: 2.496 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002043/0.6978, allocations: 1.58 MB / 446.8 MB, free: 0.8047 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004708/0.7025, allocations: 0.7136 MB / 447.6 MB, free: 112 kB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006073/0.7086, allocations: 2.599 MB / 450.2 MB, free: 13.46 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001263/0.7099, allocations: 1.147 MB / 451.3 MB, free: 12.29 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003231/0.7102, allocations: 211.4 kB / 451.5 MB, free: 12.08 MB / 346.7 MB Notification: Performance of SimCode: time 1.092e-06/0.7102, allocations: 0 / 451.5 MB, free: 12.08 MB / 346.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_2_2_cpp_Modelica_Electrical_Digital_Examples_RAMCalcHelperMain.o OMCppModelica_3_2_2_cpp_Modelica_Electrical_Digital_Examples_RAMCalcHelperMain.cpp In file included from OMCppModelica_3_2_2_cpp_Modelica_Electrical_Digital_Examples_RAMCalcHelperMain.cpp:29: ./OMCppModelica_3_2_2_cpp_Modelica_Electrical_Digital_Examples_RAMInitializeParameter.cpp:221:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp364; ^ ./OMCppModelica_3_2_2_cpp_Modelica_Electrical_Digital_Examples_RAMInitializeParameter.cpp:222:16: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Resources/Data/Electrical/Digital/Memory_Matrix.txt", tmp364); ~~~~~~~~~~ ^ In file included from OMCppModelica_3_2_2_cpp_Modelica_Electrical_Digital_Examples_RAMCalcHelperMain.cpp:31: ./OMCppModelica_3_2_2_cpp_Modelica_Electrical_Digital_Examples_RAMInitialize.cpp:101:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp187; ^ ./OMCppModelica_3_2_2_cpp_Modelica_Electrical_Digital_Examples_RAMInitialize.cpp:102:16: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Resources/Data/Electrical/Digital/Memory_Matrix.txt", tmp187); ~~~~~~~~~~ ^ ./OMCppModelica_3_2_2_cpp_Modelica_Electrical_Digital_Examples_RAMInitialize.cpp:1282:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp264; ^ ./OMCppModelica_3_2_2_cpp_Modelica_Electrical_Digital_Examples_RAMInitialize.cpp:1283:15: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource(_functions->_OMC_LIT11, tmp264); ~~~~~~~~~~ ^ In file included from OMCppModelica_3_2_2_cpp_Modelica_Electrical_Digital_Examples_RAMCalcHelperMain.cpp:34: ./OMCppModelica_3_2_2_cpp_Modelica_Electrical_Digital_Examples_RAM.cpp:2970:26: error: use of undeclared identifier 'tmp68' _dLATRAM_P_fileName_ = tmp68; ^ In file included from OMCppModelica_3_2_2_cpp_Modelica_Electrical_Digital_Examples_RAMCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_2_cpp_Modelica_Electrical_Digital_Examples_RAMFMU.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 7 errors generated. : recipe for target 'OMCppModelica_3_2_2_cpp_Modelica_Electrical_Digital_Examples_RAMCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_2_cpp_Modelica_Electrical_Digital_Examples_RAMCalcHelperMain.o] Error 1