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.904/1.904, allocations: 194.9 MB / 208.4 MB, free: 3.242 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.326e-05/3.332e-05, allocations: 8 kB / 255.5 MB, free: 3.09 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08987/0.08994, allocations: 44.51 MB / 300 MB, free: 6.531 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4249/0.5148, allocations: 80.04 MB / 380 MB, free: 12.43 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000257/0.5152, allocations: 73.48 kB / 380.1 MB, free: 12.43 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1286/0.6438, allocations: 39.24 MB / 419.3 MB, free: 4.672 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.552e-06/0.6438, allocations: 0 / 419.3 MB, free: 4.672 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.488e-05/0.6439, allocations: 11.41 kB / 419.3 MB, free: 4.672 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.001436/0.6453, allocations: 1.342 MB / 420.7 MB, free: 3.543 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.699e-05/0.6454, allocations: 15.62 kB / 420.7 MB, free: 3.539 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001063/0.6455, allocations: 57.34 kB / 420.7 MB, free: 3.492 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001849/0.6457, allocations: 120.6 kB / 420.9 MB, free: 3.43 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008211/0.6465, allocations: 476.3 kB / 421.3 MB, free: 3.094 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.027e-05/0.6466, allocations: 19.38 kB / 421.3 MB, free: 3.09 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.007e-05/0.6467, allocations: 18.44 kB / 421.4 MB, free: 3.09 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000965/0.6477, allocations: 0.5709 MB / 421.9 MB, free: 2.961 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.133e-05/0.6477, allocations: 3.938 kB / 421.9 MB, free: 2.957 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.233e-05/0.6478, allocations: 7.688 kB / 421.9 MB, free: 2.957 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.094e-06/0.6478, allocations: 3.875 kB / 421.9 MB, free: 2.957 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007296/0.6485, allocations: 462.7 kB / 422.4 MB, free: 2.902 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001953/0.6505, allocations: 0.9256 MB / 423.3 MB, free: 2.406 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009022/0.6514, allocations: 0.7172 MB / 424 MB, free: 2.336 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008646/0.6523, allocations: 0.705 MB / 424.7 MB, free: 2.277 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.84e-05/0.6524, allocations: 7.141 kB / 424.8 MB, free: 2.273 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009937/0.6534, allocations: 0.7292 MB / 425.5 MB, free: 1.973 MB / 314.7 MB Notification: Performance of pre-optimization done (n=41): time 3.347e-06/0.6534, allocations: 0 / 425.5 MB, free: 1.973 MB / 314.7 MB Notification: Performance of matching and sorting (n=41): time 0.002371/0.6558, allocations: 1.558 MB / 427 MB, free: 1.457 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001629/0.656, allocations: 335.6 kB / 427.4 MB, free: 1.102 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00243/0.6584, allocations: 1.298 MB / 428.7 MB, free: 0.6445 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001305/0.6586, allocations: 41.86 kB / 428.7 MB, free: 0.6133 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002179/0.6588, allocations: 292.6 kB / 429 MB, free: 460 kB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001433/0.659, allocations: 87.61 kB / 429.1 MB, free: 412 kB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.463e-05/0.659, allocations: 10.41 kB / 429.1 MB, free: 408 kB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.05e-05/0.6591, allocations: 328.5 kB / 429.4 MB, free: 84 kB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007466/0.6599, allocations: 462.8 kB / 429.9 MB, free: 28 kB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008633/0.6608, allocations: 471.4 kB / 430.3 MB, free: 0 / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000946/0.6617, allocations: 0.6514 MB / 431 MB, free: 15.66 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.119e-06/0.6617, allocations: 3.875 kB / 431 MB, free: 15.66 MB / 330.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.002293/0.664, allocations: 1.472 MB / 432.4 MB, free: 15.19 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002827/0.6644, allocations: 304.5 kB / 432.7 MB, free: 14.89 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.126e-06/0.6644, allocations: 4 kB / 432.7 MB, free: 14.88 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.252e-05/0.6644, allocations: 7.875 kB / 432.8 MB, free: 14.88 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.113e-05/0.6645, allocations: 0 / 432.8 MB, free: 14.88 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.807e-06/0.6645, allocations: 0 / 432.8 MB, free: 14.88 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006384/0.6651, allocations: 39.66 kB / 432.8 MB, free: 14.87 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001646/0.6653, allocations: 95.28 kB / 432.9 MB, free: 14.86 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.0005492/0.6659, allocations: 483.3 kB / 433.4 MB, free: 14.43 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000228/0.6661, allocations: 124.2 kB / 433.5 MB, free: 14.37 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005717/0.6667, allocations: 190.1 kB / 433.7 MB, free: 14.28 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.549e-06/0.6667, allocations: 0 / 433.7 MB, free: 14.28 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.057e-06/0.6667, allocations: 3.984 kB / 433.7 MB, free: 14.28 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.625e-06/0.6668, allocations: 3.984 kB / 433.7 MB, free: 14.27 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00466/0.6714, allocations: 2.414 MB / 436.1 MB, free: 11.9 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.125e-06/0.6715, allocations: 3.938 kB / 436.1 MB, free: 11.9 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.573e-05/0.6715, allocations: 3.953 kB / 436.1 MB, free: 11.89 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.216e-06/0.6715, allocations: 3.938 kB / 436.1 MB, free: 11.89 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000102/0.6717, allocations: 35.98 kB / 436.1 MB, free: 11.86 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.622e-06/0.6717, allocations: 4 kB / 436.1 MB, free: 11.85 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.6717, allocations: 0 / 436.1 MB, free: 11.85 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003402/0.6751, allocations: 1.83 MB / 438 MB, free: 9.949 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001441/0.6766, allocations: 0.5031 MB / 438.5 MB, free: 9.426 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003117/0.6769, allocations: 71.84 kB / 438.5 MB, free: 9.355 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005823/0.6775, allocations: 27.98 kB / 438.6 MB, free: 9.328 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002097/0.6796, allocations: 0.6272 MB / 439.2 MB, free: 8.703 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002287/0.6799, allocations: 119.9 kB / 439.3 MB, free: 8.586 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.002581/0.6825, allocations: 1.068 MB / 440.4 MB, free: 7.512 MB / 330.7 MB Notification: Performance of sort global known variables: time 9.52e-07/0.6825, allocations: 4 kB / 440.4 MB, free: 7.508 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001069/0.6836, allocations: 184 kB / 440.6 MB, free: 7.328 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.004804/0.6884, allocations: 2.643 MB / 443.2 MB, free: 4.645 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003262/0.6917, allocations: 2.072 MB / 445.3 MB, free: 2.461 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.649e-06/0.6918, allocations: 0 / 445.3 MB, free: 2.461 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00225/0.6941, allocations: 1.588 MB / 446.9 MB, free: 0.7617 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004842/0.6989, allocations: 0.7164 MB / 447.6 MB, free: 60 kB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007608/0.7066, allocations: 2.591 MB / 450.2 MB, free: 13.41 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002156/0.7088, allocations: 1.151 MB / 451.3 MB, free: 12.24 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000551/0.7094, allocations: 211.3 kB / 451.5 MB, free: 12.03 MB / 346.7 MB Notification: Performance of SimCode: time 4.658e-06/0.7094, allocations: 0 / 451.5 MB, free: 12.03 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