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 2.085/2.085, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.343e-05/2.355e-05, allocations: 4 kB / 249.7 MB, free: 15.2 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3018/0.3018, allocations: 44.5 MB / 294.2 MB, free: 14.18 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1418/0.4437, allocations: 79.38 MB / 373.6 MB, free: 2.512 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002758/0.444, allocations: 71.95 kB / 373.7 MB, free: 2.441 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1412/0.5852, allocations: 38.86 MB / 412.5 MB, free: 11.62 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.864e-06/0.5853, allocations: 4 kB / 412.5 MB, free: 11.62 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.119e-05/0.5853, allocations: 12 kB / 412.5 MB, free: 11.61 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.001957/0.5873, allocations: 1.355 MB / 413.9 MB, free: 10.15 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.078e-05/0.5873, allocations: 8.031 kB / 413.9 MB, free: 10.14 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002673/0.5876, allocations: 122.5 kB / 414 MB, free: 10.02 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009685/0.5886, allocations: 465 kB / 414.5 MB, free: 9.52 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.214e-05/0.5887, allocations: 15.95 kB / 414.5 MB, free: 9.504 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.579e-05/0.5888, allocations: 20 kB / 414.5 MB, free: 9.484 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008518/0.5896, allocations: 448.5 kB / 414.9 MB, free: 9.047 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001062/0.5907, allocations: 0.5598 MB / 415.5 MB, free: 8.48 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.328e-05/0.5907, allocations: 3.984 kB / 415.5 MB, free: 8.477 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.655e-05/0.5908, allocations: 8 kB / 415.5 MB, free: 8.469 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.905e-06/0.5908, allocations: 4 kB / 415.5 MB, free: 8.465 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00221/0.5931, allocations: 0.8791 MB / 416.4 MB, free: 7.551 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001182/0.5943, allocations: 0.7094 MB / 417.1 MB, free: 6.832 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00105/0.5953, allocations: 0.6998 MB / 417.8 MB, free: 6.129 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.513e-05/0.5954, allocations: 0 / 417.8 MB, free: 6.129 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001198/0.5966, allocations: 0.7359 MB / 418.5 MB, free: 5.355 MB / 362.7 MB Notification: Performance of pre-optimization done (n=41): time 2.514e-06/0.5966, allocations: 0 / 418.5 MB, free: 5.355 MB / 362.7 MB Notification: Performance of matching and sorting (n=41): time 0.002643/0.5993, allocations: 1.246 MB / 419.8 MB, free: 4.102 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002355/0.5995, allocations: 330.7 kB / 420.1 MB, free: 3.711 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002805/0.6023, allocations: 1.243 MB / 421.4 MB, free: 2.461 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001769/0.6026, allocations: 41.7 kB / 421.4 MB, free: 2.414 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003052/0.6029, allocations: 284.4 kB / 421.7 MB, free: 2.137 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001901/0.6031, allocations: 98.91 kB / 421.8 MB, free: 2.039 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.775e-05/0.6032, allocations: 4 kB / 421.8 MB, free: 2.035 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001566/0.6033, allocations: 326.8 kB / 422.1 MB, free: 1.707 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008369/0.6042, allocations: 452.2 kB / 422.5 MB, free: 1.262 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000804/0.605, allocations: 460.5 kB / 423 MB, free: 0.8125 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008035/0.6058, allocations: 361.8 kB / 423.3 MB, free: 472 kB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.359e-06/0.6058, allocations: 0 / 423.3 MB, free: 472 kB / 362.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.2468/0.8527, allocations: 1.148 MB / 424.5 MB, free: 104.1 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002678/0.853, allocations: 305.3 kB / 424.8 MB, free: 103.8 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.668e-06/0.853, allocations: 1.219 kB / 424.8 MB, free: 103.8 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.616e-05/0.8531, allocations: 3.281 kB / 424.8 MB, free: 103.8 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.517e-05/0.8531, allocations: 2.594 kB / 424.8 MB, free: 103.8 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.784e-06/0.8531, allocations: 3.078 kB / 424.8 MB, free: 103.8 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006551/0.8538, allocations: 29.11 kB / 424.8 MB, free: 103.8 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001985/0.854, allocations: 96.16 kB / 424.9 MB, free: 103.8 MB / 362.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.0004858/0.8545, allocations: 478.2 kB / 425.4 MB, free: 103.4 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002788/0.8573, allocations: 1.334 MB / 426.7 MB, free: 103.4 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002952/0.8577, allocations: 131.4 kB / 426.8 MB, free: 103.3 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005749/0.8583, allocations: 182.7 kB / 427 MB, free: 103.3 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.466e-06/0.8583, allocations: 3.688 kB / 427 MB, free: 103.3 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.8583, allocations: 0 / 427 MB, free: 103.3 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/0.8583, allocations: 5.156 kB / 427 MB, free: 103.3 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003848/0.8622, allocations: 1.992 MB / 429 MB, free: 102.9 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.486e-06/0.8622, allocations: 1.438 kB / 429 MB, free: 102.9 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.163e-05/0.8623, allocations: 3.344 kB / 429 MB, free: 102.9 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.494e-06/0.8623, allocations: 0 / 429 MB, free: 102.9 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.476e-05/0.8624, allocations: 33.52 kB / 429.1 MB, free: 102.9 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.062e-06/0.8624, allocations: 4.641 kB / 429.1 MB, free: 102.9 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.648e-06/0.8624, allocations: 2.969 kB / 429.1 MB, free: 102.9 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002703/0.8651, allocations: 1.436 MB / 430.5 MB, free: 102.7 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001299/0.8665, allocations: 0.507 MB / 431 MB, free: 102.5 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003235/0.8668, allocations: 62.14 kB / 431.1 MB, free: 102.5 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006784/0.8675, allocations: 30.56 kB / 431.1 MB, free: 102.5 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002046/0.8696, allocations: 0.631 MB / 431.7 MB, free: 102.5 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002297/0.8698, allocations: 112.4 kB / 431.8 MB, free: 102.5 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.002028/0.8718, allocations: 1.017 MB / 432.9 MB, free: 102.2 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.21e-07/0.8719, allocations: 4 kB / 432.9 MB, free: 102.2 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001017/0.8729, allocations: 189.7 kB / 433 MB, free: 102.2 MB / 362.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.003548/0.8765, allocations: 2.256 MB / 435.3 MB, free: 101.5 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002345/0.8788, allocations: 2.042 MB / 437.3 MB, free: 100.9 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.758e-06/0.8789, allocations: 1.969 kB / 437.3 MB, free: 100.9 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001576/0.8805, allocations: 1.57 MB / 438.9 MB, free: 100.2 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004624/0.8851, allocations: 0.7207 MB / 439.6 MB, free: 100.1 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005676/0.8909, allocations: 2.563 MB / 442.2 MB, free: 99.18 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009856/0.8919, allocations: 1.15 MB / 443.3 MB, free: 98.38 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002685/0.8922, allocations: 213.7 kB / 443.6 MB, free: 98.21 MB / 362.7 MB Notification: Performance of SimCode: time 9.52e-07/0.8922, allocations: 3.969 kB / 443.6 MB, free: 98.21 MB / 362.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=7 -DPMC_USE_SUNDIALS -DFMU_BUILD -DRUNTIME_STATIC_LINKING -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/cpp" -I"." -I"." -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/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/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/OMCompiler/build/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