Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.RAM,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Digital_Examples_RAM",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.017/2.017, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.152e-05/3.159e-05, allocations: 4 kB / 292.2 MB, free: 8.734 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1039/0.104, allocations: 50.41 MB / 342.6 MB, free: 6.301 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4422/0.5462, allocations: 86.32 MB / 428.9 MB, free: 7.41 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002753/0.5465, allocations: 75.25 kB / 429 MB, free: 7.371 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1429/0.6895, allocations: 39.83 MB / 468.8 MB, free: 4.77 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.415e-06/0.6896, allocations: 0 / 468.8 MB, free: 4.77 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.805e-05/0.6897, allocations: 12 kB / 468.8 MB, free: 4.758 MB / 378.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.002361/0.692, allocations: 1.344 MB / 470.2 MB, free: 3.312 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.823e-05/0.6921, allocations: 8.031 kB / 470.2 MB, free: 3.305 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002018/0.6923, allocations: 54.55 kB / 470.3 MB, free: 3.242 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000273/0.6926, allocations: 126.8 kB / 470.4 MB, free: 3.117 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001111/0.6937, allocations: 472.6 kB / 470.8 MB, free: 2.605 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.127e-05/0.6938, allocations: 16 kB / 470.9 MB, free: 2.59 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.31e-05/0.6939, allocations: 20 kB / 470.9 MB, free: 2.57 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001242/0.6952, allocations: 0.5716 MB / 471.4 MB, free: 1.992 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.248e-05/0.6952, allocations: 0 / 471.4 MB, free: 1.992 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.283e-05/0.6953, allocations: 19.94 kB / 471.5 MB, free: 1.973 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.304e-06/0.6954, allocations: 0 / 471.5 MB, free: 1.973 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009015/0.6963, allocations: 455.8 kB / 471.9 MB, free: 1.527 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002467/0.6988, allocations: 0.9194 MB / 472.8 MB, free: 0.5625 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001316/0.7001, allocations: 0.7133 MB / 473.5 MB, free: 15.84 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001195/0.7014, allocations: 0.7155 MB / 474.3 MB, free: 15.12 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.075e-05/0.7014, allocations: 4 kB / 474.3 MB, free: 15.12 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001333/0.7028, allocations: 0.7205 MB / 475 MB, free: 14.36 MB / 394.7 MB Notification: Performance of pre-optimization done (n=41): time 3.486e-06/0.7028, allocations: 0 / 475 MB, free: 14.36 MB / 394.7 MB Notification: Performance of matching and sorting (n=41): time 0.003047/0.7059, allocations: 1.565 MB / 476.5 MB, free: 12.73 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002555/0.7062, allocations: 338.7 kB / 476.9 MB, free: 12.33 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003227/0.7094, allocations: 1.299 MB / 478.2 MB, free: 11.02 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002043/0.7097, allocations: 37.7 kB / 478.2 MB, free: 10.98 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003232/0.71, allocations: 292.5 kB / 478.5 MB, free: 10.69 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001967/0.7102, allocations: 86.92 kB / 478.6 MB, free: 10.61 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.807e-05/0.7103, allocations: 8 kB / 478.6 MB, free: 10.6 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001498/0.7105, allocations: 330.8 kB / 478.9 MB, free: 10.27 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009045/0.7114, allocations: 460.2 kB / 479.4 MB, free: 9.812 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008632/0.7123, allocations: 468.6 kB / 479.8 MB, free: 9.355 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009829/0.7133, allocations: 0.6494 MB / 480.5 MB, free: 8.652 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.25e-06/0.7133, allocations: 0 / 480.5 MB, free: 8.652 MB / 394.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.00268/0.716, allocations: 1.469 MB / 481.9 MB, free: 7.121 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000312/0.7164, allocations: 308.7 kB / 482.2 MB, free: 6.766 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.788e-06/0.7164, allocations: 3.938 kB / 482.2 MB, free: 6.762 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.172e-05/0.7164, allocations: 0 / 482.2 MB, free: 6.762 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.709e-05/0.7165, allocations: 4 kB / 482.2 MB, free: 6.758 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.658e-06/0.7165, allocations: 0 / 482.2 MB, free: 6.758 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000678/0.7172, allocations: 35.89 kB / 482.3 MB, free: 6.723 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002195/0.7174, allocations: 103.9 kB / 482.4 MB, free: 6.621 MB / 394.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.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,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],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.0006346/0.718, allocations: 489.2 kB / 482.9 MB, free: 6.082 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002847/0.7183, allocations: 130.5 kB / 483 MB, free: 5.953 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006329/0.719, allocations: 187.6 kB / 483.2 MB, free: 5.77 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.292e-06/0.719, allocations: 4 kB / 483.2 MB, free: 5.766 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.216e-06/0.719, allocations: 3.938 kB / 483.2 MB, free: 5.762 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.893e-06/0.719, allocations: 3.984 kB / 483.2 MB, free: 5.758 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004757/0.7238, allocations: 2.412 MB / 485.6 MB, free: 3.238 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.784e-06/0.7239, allocations: 0 / 485.6 MB, free: 3.238 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.137e-05/0.7239, allocations: 0 / 485.6 MB, free: 3.238 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.453e-05/0.7239, allocations: 4 kB / 485.6 MB, free: 3.234 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001015/0.724, allocations: 35.92 kB / 485.6 MB, free: 3.199 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.468e-06/0.7241, allocations: 4 kB / 485.6 MB, free: 3.195 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.7241, allocations: 4 kB / 485.6 MB, free: 3.191 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003437/0.7275, allocations: 1.826 MB / 487.5 MB, free: 1.293 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001559/0.7291, allocations: 0.4991 MB / 488 MB, free: 0.7734 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003615/0.7295, allocations: 63.95 kB / 488 MB, free: 0.7109 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006525/0.7302, allocations: 27.98 kB / 488.1 MB, free: 0.6836 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00219/0.7324, allocations: 0.6319 MB / 488.7 MB, free: 52 kB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003059/0.7328, allocations: 107.9 kB / 488.8 MB, free: 15.95 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003059/0.7359, allocations: 1.068 MB / 489.9 MB, free: 14.87 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.81e-07/0.7359, allocations: 0 / 489.9 MB, free: 14.87 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00119/0.7372, allocations: 203.9 kB / 490.1 MB, free: 14.67 MB / 410.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.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,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],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.004851/0.742, allocations: 2.657 MB / 492.7 MB, free: 11.97 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003296/0.7454, allocations: 2.075 MB / 494.8 MB, free: 9.785 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.462e-06/0.7454, allocations: 8 kB / 494.8 MB, free: 9.777 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002246/0.7477, allocations: 1.584 MB / 496.4 MB, free: 8.082 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004733/0.7525, allocations: 0.7233 MB / 497.1 MB, free: 7.379 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006446/0.7589, allocations: 2.598 MB / 499.7 MB, free: 4.727 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001389/0.7604, allocations: 1.147 MB / 0.4891 GB, free: 3.551 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003454/0.7607, allocations: 211.4 kB / 0.4893 GB, free: 3.344 MB / 410.7 MB Notification: Performance of SimCode: time 1.242e-06/0.7607, allocations: 0 / 0.4893 GB, free: 3.344 MB / 410.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_Digital_Examples_RAMCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica_Electrical_Digital_Examples_RAMCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica_Electrical_Digital_Examples_RAMCalcHelperMain.cpp:29: ./OMCppModelica_trunk_cpp_Modelica_Electrical_Digital_Examples_RAMInitializeParameter.cpp:221:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp364; ^ ./OMCppModelica_trunk_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 trunk/Resources/Data/Electrical/Digital/Memory_Matrix.txt", tmp364); ~~~~~~~~~~ ^ In file included from OMCppModelica_trunk_cpp_Modelica_Electrical_Digital_Examples_RAMCalcHelperMain.cpp:31: ./OMCppModelica_trunk_cpp_Modelica_Electrical_Digital_Examples_RAMInitialize.cpp:101:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp187; ^ ./OMCppModelica_trunk_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 trunk/Resources/Data/Electrical/Digital/Memory_Matrix.txt", tmp187); ~~~~~~~~~~ ^ ./OMCppModelica_trunk_cpp_Modelica_Electrical_Digital_Examples_RAMInitialize.cpp:1282:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp264; ^ ./OMCppModelica_trunk_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_trunk_cpp_Modelica_Electrical_Digital_Examples_RAMCalcHelperMain.cpp:34: ./OMCppModelica_trunk_cpp_Modelica_Electrical_Digital_Examples_RAM.cpp:2970:26: error: use of undeclared identifier 'tmp68' _dLATRAM_P_fileName_ = tmp68; ^ In file included from OMCppModelica_trunk_cpp_Modelica_Electrical_Digital_Examples_RAMCalcHelperMain.cpp:35: In file included from ./OMCppModelica_trunk_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_trunk_cpp_Modelica_Electrical_Digital_Examples_RAMCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica_Electrical_Digital_Examples_RAMCalcHelperMain.o] Error 1