Notification: Performance of loadModel(Modelica): time 1.647/1.647, allocations: 194.5 MB / 200.7 MB, free: 5.156 MB / 168.6 MB Notification: Performance of FrontEnd - loaded program: time 1.236e-05/1.243e-05, allocations: 2.188 kB / 247.3 MB, free: 4.703 MB / 200.6 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06133/0.06143, allocations: 44.36 MB / 291.7 MB, free: 9.289 MB / 248.6 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2251/0.2866, allocations: 75.13 MB / 366.8 MB, free: 7 MB / 296.6 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002164/0.2869, allocations: 73.58 kB / 366.9 MB, free: 6.996 MB / 296.6 MB Notification: Performance of FrontEnd: time 0.02688/0.3139, allocations: 6.33 MB / 373.2 MB, free: 6.047 MB / 296.6 MB Notification: Performance of Transformations before backend: time 2.479e-05/0.314, allocations: 7.906 kB / 373.2 MB, free: 6.047 MB / 296.6 MB Notification: Performance of Generate backend data structure: time 0.001364/0.3154, allocations: 0.6662 MB / 373.9 MB, free: 5.531 MB / 296.6 MB Notification: Performance of prepare preOptimizeDAE: time 3.988e-05/0.3155, allocations: 15.53 kB / 373.9 MB, free: 5.527 MB / 296.6 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001166/0.3157, allocations: 42.69 kB / 374 MB, free: 5.504 MB / 296.6 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003878/0.3161, allocations: 289.3 kB / 374.2 MB, free: 5.242 MB / 296.6 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.569e-05/0.3162, allocations: 14.62 kB / 374.3 MB, free: 5.242 MB / 296.6 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.856e-05/0.3164, allocations: 22.97 kB / 374.3 MB, free: 5.238 MB / 296.6 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008097/0.3173, allocations: 360.6 kB / 374.6 MB, free: 5.195 MB / 296.6 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007288/0.3181, allocations: 348.6 kB / 375 MB, free: 5.086 MB / 296.6 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.528e-05/0.3181, allocations: 0 / 375 MB, free: 5.086 MB / 296.6 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.741e-05/0.3183, allocations: 0 / 375 MB, free: 5.086 MB / 296.6 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.018e-05/0.3183, allocations: 15.58 kB / 375 MB, free: 5.082 MB / 296.6 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003215/0.3216, allocations: 1.239 MB / 376.2 MB, free: 4.41 MB / 296.6 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005571/0.3223, allocations: 250.2 kB / 376.5 MB, free: 4.371 MB / 296.6 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000395/0.3227, allocations: 205.8 kB / 376.7 MB, free: 4.352 MB / 296.6 MB Notification: Performance of preOpt evalFunc (simulation): time 6.761e-05/0.3228, allocations: 12.12 kB / 376.7 MB, free: 4.352 MB / 296.6 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.893e-05/0.3229, allocations: 38.81 kB / 376.7 MB, free: 4.312 MB / 296.6 MB Notification: Performance of pre-optimization done (n=47): time 4.26e-06/0.323, allocations: 0 / 376.7 MB, free: 4.312 MB / 296.6 MB Notification: Performance of matching and sorting (n=51): time 0.00474/0.3278, allocations: 1.5 MB / 378.2 MB, free: 3.594 MB / 296.6 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.479e-05/0.3279, allocations: 63.7 kB / 378.3 MB, free: 3.523 MB / 296.6 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001888/0.3281, allocations: 185.4 kB / 378.5 MB, free: 3.41 MB / 296.6 MB Notification: Performance of collectPreVariables (initialization): time 6.586e-05/0.3283, allocations: 33.48 kB / 378.5 MB, free: 3.379 MB / 296.6 MB Notification: Performance of collectInitialEqns (initialization): time 9.429e-05/0.3284, allocations: 148.1 kB / 378.6 MB, free: 19.24 MB / 312.6 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001312/0.3286, allocations: 167.9 kB / 378.8 MB, free: 19.12 MB / 312.6 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.575e-05/0.3287, allocations: 3.906 kB / 378.8 MB, free: 19.12 MB / 312.6 MB Notification: Performance of setup shared object (initialization): time 0.0002628/0.329, allocations: 334.5 kB / 379.1 MB, free: 18.8 MB / 312.6 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000398/0.3295, allocations: 181.7 kB / 379.3 MB, free: 18.8 MB / 312.6 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000434/0.33, allocations: 247 kB / 379.6 MB, free: 18.73 MB / 312.6 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006055/0.3306, allocations: 150.3 kB / 379.7 MB, free: 18.7 MB / 312.6 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.19e-06/0.3307, allocations: 0 / 379.7 MB, free: 18.7 MB / 312.6 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002187/0.333, allocations: 0.6579 MB / 380.4 MB, free: 18.54 MB / 312.6 MB Notification: Performance of prepare postOptimizeDAE: time 1.823e-05/0.3331, allocations: 3.906 kB / 380.4 MB, free: 18.54 MB / 312.6 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.277e-05/0.3331, allocations: 3.969 kB / 380.4 MB, free: 18.54 MB / 312.6 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00117/0.3344, allocations: 434.5 kB / 380.8 MB, free: 18.41 MB / 312.6 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000413/0.3348, allocations: 70.39 kB / 380.9 MB, free: 18.4 MB / 312.6 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003293/0.3382, allocations: 3.362 MB / 384.2 MB, free: 15.37 MB / 312.6 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007896/0.3391, allocations: 101.8 kB / 384.3 MB, free: 15.34 MB / 312.6 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.662e-05/0.3392, allocations: 26.73 kB / 384.4 MB, free: 15.33 MB / 312.6 MB Warning: There are iteration variables with default zero start attribute. For more information set -d=initialization. In OMEdit Tools->Options->Simulation->OMCFlags, in OMNotebook call setCommandLineOptions("-d=initialization"). Notification: Performance of prepare postOptimizeDAE: time 0.0001279/0.3394, allocations: 75.28 kB / 384.4 MB, free: 15.25 MB / 312.6 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001171/0.3396, allocations: 38.75 kB / 384.5 MB, free: 15.23 MB / 312.6 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001998/0.3417, allocations: 0.6752 MB / 385.1 MB, free: 15.02 MB / 312.6 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.848e-06/0.3417, allocations: 3.938 kB / 385.1 MB, free: 15.02 MB / 312.6 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.638e-06/0.3418, allocations: 11.88 kB / 385.2 MB, free: 15.01 MB / 312.6 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.66e-06/0.3419, allocations: 3.984 kB / 385.2 MB, free: 15.01 MB / 312.6 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002335/0.3443, allocations: 1.064 MB / 386.2 MB, free: 14.52 MB / 312.6 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.168e-06/0.3443, allocations: 0 / 386.2 MB, free: 14.52 MB / 312.6 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004251/0.3448, allocations: 66.59 kB / 386.3 MB, free: 14.5 MB / 312.6 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001076/0.346, allocations: 408.5 kB / 386.7 MB, free: 14.39 MB / 312.6 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.95e-05/0.3461, allocations: 11.83 kB / 386.7 MB, free: 14.39 MB / 312.6 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003026/0.3492, allocations: 3.326 MB / 390 MB, free: 11.36 MB / 312.6 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.889e-06/0.3493, allocations: 0 / 390 MB, free: 11.36 MB / 312.6 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002088/0.3514, allocations: 0.8584 MB / 390.9 MB, free: 11.11 MB / 312.6 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002488/0.3518, allocations: 153.5 kB / 391 MB, free: 10.97 MB / 312.6 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001269/0.352, allocations: 19.23 kB / 391.1 MB, free: 10.96 MB / 312.6 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000726/0.3527, allocations: 97.94 kB / 391.1 MB, free: 10.93 MB / 312.6 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002399/0.353, allocations: 97.62 kB / 391.2 MB, free: 10.87 MB / 312.6 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.068e-05/0.3532, allocations: 36.19 kB / 391.3 MB, free: 10.86 MB / 312.6 MB Notification: Performance of sort global known variables: time 0.0001532/0.3534, allocations: 155.9 kB / 391.4 MB, free: 10.76 MB / 312.6 MB Notification: Performance of remove unused functions: time 0.0006775/0.3541, allocations: 111.8 kB / 391.5 MB, free: 10.75 MB / 312.6 MB Notification: Performance of Backend phase and start with SimCode phase: time 0.0003218/0.3545, allocations: 90.53 kB / 391.6 MB, free: 10.69 MB / 312.6 MB Notification: Performance of simCode: created initialization part: time 0.001418/0.356, allocations: 0.7279 MB / 392.4 MB, free: 10.38 MB / 312.6 MB Notification: Performance of simCode: created event and clocks part: time 3.422e-06/0.3561, allocations: 3.938 kB / 392.4 MB, free: 10.38 MB / 312.6 MB Notification: Performance of simCode: created simulation system equations: time 0.0008363/0.3569, allocations: 469.8 kB / 392.8 MB, free: 10.15 MB / 312.6 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005268/0.3575, allocations: 45.03 kB / 392.9 MB, free: 10.13 MB / 312.6 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002342/0.3599, allocations: 0.7527 MB / 393.6 MB, free: 9.707 MB / 312.6 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000375/0.3604, allocations: 0.8425 MB / 394.5 MB, free: 8.938 MB / 312.6 MB Notification: Performance of SimCode: time 2.095e-06/0.3605, allocations: 4 kB / 394.5 MB, free: 8.934 MB / 312.6 MB Notification: Performance of Templates: time 0.05598/0.4165, allocations: 8.711 MB / 403.2 MB, free: 4.477 MB / 312.6 MB make -j1 -f Modelica_3.2.2_-O2_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.makefile clang -fPIC -O2 -march=native -I"/var/lib/hudson/slave/workspace/OpenModelica_TEST_LIBS/OpenModelica/OMCompiler/build/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_3_2_2_-O2_Modelica_Mechanics_Rotational_Examples_SimpleGearShift -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=4 -DOMC_NUM_NONLINEAR_SYSTEMS=2 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o Modelica_3.2.2_-O2_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.o Modelica_3.2.2_-O2_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.c In file included from Modelica_3.2.2_-O2_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.c:2: ./Modelica_3.2.2_-O2_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_model.h:2:29: error: missing ')' after 'defined' #if !defined(Modelica_3_2_2_-O2_Modelica_Mechanics_Rotational_Examples_SimpleGearShift__MODEL_H) ^ ./Modelica_3.2.2_-O2_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_model.h:2:13: note: to match this '(' #if !defined(Modelica_3_2_2_-O2_Modelica_Mechanics_Rotational_Examples_SimpleGearShift__MODEL_H) ^ In file included from Modelica_3.2.2_-O2_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.c:6: /var/lib/hudson/slave/workspace/OpenModelica_TEST_LIBS/OpenModelica/OMCompiler/build/include/omc/c/simulation/solver/perform_simulation.c:64:13: error: variable has incomplete type 'void' static void prefixedName_updateContinuousSystem(DATA *data, threadData_t *threadData) ^ Modelica_3.2.2_-O2_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.c:5:45: note: expanded from macro 'prefixedName_updateContinuousSystem' #define prefixedName_updateContinuousSystem Modelica_3_2_2_-O2_Modelica_Mechanics_Rotational_Examples_SimpleGearShift_updateContinuousSystem ^ In file included from Modelica_3.2.2_-O2_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.c:6: /var/lib/hudson/slave/workspace/OpenModelica_TEST_LIBS/OpenModelica/OMCompiler/build/include/omc/c/simulation/solver/perform_simulation.c:64:13: error: expected ';' after top level declarator Modelica_3.2.2_-O2_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.c:5:60: note: expanded from macro 'prefixedName_updateContinuousSystem' #define prefixedName_updateContinuousSystem Modelica_3_2_2_-O2_Modelica_Mechanics_Rotational_Examples_SimpleGearShift_updateContinuousSystem ^ In file included from Modelica_3.2.2_-O2_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.c:6: /var/lib/hudson/slave/workspace/OpenModelica_TEST_LIBS/OpenModelica/OMCompiler/build/include/omc/c/simulation/solver/perform_simulation.c:171:33: error: unknown type name 'MEASURE_TIME' static void fmtInit(DATA* data, MEASURE_TIME* mt) ^ /var/lib/hudson/slave/workspace/OpenModelica_TEST_LIBS/OpenModelica/OMCompiler/build/include/omc/c/simulation/solver/perform_simulation.c:175:6: error: use of undeclared identifier 'measure_time_flag' if(measure_time_flag) ^ /var/lib/hudson/slave/workspace/OpenModelica_TEST_LIBS/OpenModelica/OMCompiler/build/include/omc/c/simulation/solver/perform_simulation.c:198:63: error: unknown type name 'MEASURE_TIME' static void fmtEmitStep(DATA* data, threadData_t *threadData, MEASURE_TIME* mt, SOLVER_INFO* solverInfo) ^ /var/lib/hudson/slave/workspace/OpenModelica_TEST_LIBS/OpenModelica/OMCompiler/build/include/omc/c/simulation/solver/perform_simulation.c:239:5: warning: implicit declaration of function 'overwriteOldSimulationData' is invalid in C99 [-Wimplicit-function-declaration] overwriteOldSimulationData(data); ^ /var/lib/hudson/slave/workspace/OpenModelica_TEST_LIBS/OpenModelica/OMCompiler/build/include/omc/c/simulation/solver/perform_simulation.c:240:5: warning: implicit declaration of function 'storePreValues' is invalid in C99 [-Wimplicit-function-declaration] storePreValues(data); // Maybe?? ^ /var/lib/hudson/slave/workspace/OpenModelica_TEST_LIBS/OpenModelica/OMCompiler/build/include/omc/c/simulation/solver/perform_simulation.c:241:5: warning: implicit declaration of function 'storeOldValues' is invalid in C99 [-Wimplicit-function-declaration] storeOldValues(data); // Maybe?? ^ /var/lib/hudson/slave/workspace/OpenModelica_TEST_LIBS/OpenModelica/OMCompiler/build/include/omc/c/simulation/solver/perform_simulation.c:259:3: warning: implicit declaration of function 'printAllVarsDebug' is invalid in C99 [-Wimplicit-function-declaration] printAllVarsDebug(data, 0, LOG_DEBUG); /* ??? */ ^ /var/lib/hudson/slave/workspace/OpenModelica_TEST_LIBS/OpenModelica/OMCompiler/build/include/omc/c/simulation/solver/perform_simulation.c:263:22: error: unknown type name 'MEASURE_TIME' static void fmtClose(MEASURE_TIME* mt) ^ /var/lib/hudson/slave/workspace/OpenModelica_TEST_LIBS/OpenModelica/OMCompiler/build/include/omc/c/simulation/solver/perform_simulation.c:291:6: error: use of undeclared identifier 'measure_time_flag' if(measure_time_flag) ^ /var/lib/hudson/slave/workspace/OpenModelica_TEST_LIBS/OpenModelica/OMCompiler/build/include/omc/c/simulation/solver/perform_simulation.c:308:3: warning: implicit declaration of function 'restoreOldValues' is invalid in C99 [-Wimplicit-function-declaration] restoreOldValues(data); ^ /var/lib/hudson/slave/workspace/OpenModelica_TEST_LIBS/OpenModelica/OMCompiler/build/include/omc/c/simulation/solver/perform_simulation.c:311:3: warning: implicit declaration of function 'updateDiscreteSystem' is invalid in C99 [-Wimplicit-function-declaration] updateDiscreteSystem(data, threadData); ^ /var/lib/hudson/slave/workspace/OpenModelica_TEST_LIBS/OpenModelica/OMCompiler/build/include/omc/c/simulation/solver/perform_simulation.c:335:5: error: non-static declaration of 'Modelica_3_2_2_' follows static declaration int prefixedName_performSimulation(DATA* data, threadData_t *threadData, SOLVER_INFO* solverInfo) ^ Modelica_3.2.2_-O2_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.c:4:40: note: expanded from macro 'prefixedName_performSimulation' #define prefixedName_performSimulation Modelica_3_2_2_-O2_Modelica_Mechanics_Rotational_Examples_SimpleGearShift_performSimulation ^ /var/lib/hudson/slave/workspace/OpenModelica_TEST_LIBS/OpenModelica/OMCompiler/build/include/omc/c/simulation/solver/perform_simulation.c:64:13: note: previous definition is here static void prefixedName_updateContinuousSystem(DATA *data, threadData_t *threadData) ^ Modelica_3.2.2_-O2_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.c:5:45: note: expanded from macro 'prefixedName_updateContinuousSystem' #define prefixedName_updateContinuousSystem Modelica_3_2_2_-O2_Modelica_Mechanics_Rotational_Examples_SimpleGearShift_updateContinuousSystem ^ In file included from Modelica_3.2.2_-O2_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.c:6: /var/lib/hudson/slave/workspace/OpenModelica_TEST_LIBS/OpenModelica/OMCompiler/build/include/omc/c/simulation/solver/perform_simulation.c:335:5: error: expected ';' after top level declarator int prefixedName_performSimulation(DATA* data, threadData_t *threadData, SOLVER_INFO* solverInfo) ^ Modelica_3.2.2_-O2_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.c:4:55: note: expanded from macro 'prefixedName_performSimulation' #define prefixedName_performSimulation Modelica_3_2_2_-O2_Modelica_Mechanics_Rotational_Examples_SimpleGearShift_performSimulation ^ In file included from Modelica_3.2.2_-O2_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.c:9: /var/lib/hudson/slave/workspace/OpenModelica_TEST_LIBS/OpenModelica/OMCompiler/build/include/omc/c/simulation/solver/perform_qss_simulation.c:71:5: error: non-static declaration of 'Modelica_3_2_2_' follows static declaration int prefixedName_performQSSSimulation(DATA* data, threadData_t *threadData, SOLVER_INFO* solverInfo) ^ Modelica_3.2.2_-O2_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.c:8:43: note: expanded from macro 'prefixedName_performQSSSimulation' #define prefixedName_performQSSSimulation Modelica_3_2_2_-O2_Modelica_Mechanics_Rotational_Examples_SimpleGearShift_performQSSSimulation ^ /var/lib/hudson/slave/workspace/OpenModelica_TEST_LIBS/OpenModelica/OMCompiler/build/include/omc/c/simulation/solver/perform_simulation.c:64:13: note: previous definition is here static void prefixedName_updateContinuousSystem(DATA *data, threadData_t *threadData) ^ Modelica_3.2.2_-O2_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.c:5:45: note: expanded from macro 'prefixedName_updateContinuousSystem' #define prefixedName_updateContinuousSystem Modelica_3_2_2_-O2_Modelica_Mechanics_Rotational_Examples_SimpleGearShift_updateContinuousSystem ^ In file included from Modelica_3.2.2_-O2_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.c:9: /var/lib/hudson/slave/workspace/OpenModelica_TEST_LIBS/OpenModelica/OMCompiler/build/include/omc/c/simulation/solver/perform_qss_simulation.c:71:5: error: expected ';' after top level declarator int prefixedName_performQSSSimulation(DATA* data, threadData_t *threadData, SOLVER_INFO* solverInfo) ^ Modelica_3.2.2_-O2_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.c:8:58: note: expanded from macro 'prefixedName_performQSSSimulation' #define prefixedName_performQSSSimulation Modelica_3_2_2_-O2_Modelica_Mechanics_Rotational_Examples_SimpleGearShift_performQSSSimulation ^ Modelica_3.2.2_-O2_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.c:18:5: error: non-static declaration of 'Modelica_3_2_2_' follows static declaration int Modelica_3_2_2_-O2_Modelica_Mechanics_Rotational_Examples_SimpleGearShift_input_function(DATA *data, threadData_t *threadData) ^ /var/lib/hudson/slave/workspace/OpenModelica_TEST_LIBS/OpenModelica/OMCompiler/build/include/omc/c/simulation/solver/perform_simulation.c:64:13: note: previous definition is here static void prefixedName_updateContinuousSystem(DATA *data, threadData_t *threadData) ^ Modelica_3.2.2_-O2_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.c:5:45: note: expanded from macro 'prefixedName_updateContinuousSystem' #define prefixedName_updateContinuousSystem Modelica_3_2_2_-O2_Modelica_Mechanics_Rotational_Examples_SimpleGearShift_updateContinuousSystem ^ Modelica_3.2.2_-O2_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.c:18:20: error: expected ';' after top level declarator int Modelica_3_2_2_-O2_Modelica_Mechanics_Rotational_Examples_SimpleGearShift_input_function(DATA *data, threadData_t *threadData) ^ ; Modelica_3.2.2_-O2_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.c:304:6: error: variable has incomplete type 'void' void Modelica_3_2_2_-O2_Modelica_Mechanics_Rotational_Examples_SimpleGearShift_eqFunction_94(DATA*,threadData_t*); ^ Modelica_3.2.2_-O2_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.c:304:21: error: expected ';' after top level declarator void Modelica_3_2_2_-O2_Modelica_Mechanics_Rotational_Examples_SimpleGearShift_eqFunction_94(DATA*,threadData_t*); ^ ; Modelica_3.2.2_-O2_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.c:305:6: error: variable has incomplete type 'void' void Modelica_3_2_2_-O2_Modelica_Mechanics_Rotational_Examples_SimpleGearShift_eqFunction_95(DATA*,threadData_t*); ^ Modelica_3.2.2_-O2_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.c:305:21: error: expected ';' after top level declarator void Modelica_3_2_2_-O2_Modelica_Mechanics_Rotational_Examples_SimpleGearShift_eqFunction_95(DATA*,threadData_t*); ^ ; Modelica_3.2.2_-O2_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.c:306:6: error: variable has incomplete type 'void' void Modelica_3_2_2_-O2_Modelica_Mechanics_Rotational_Examples_SimpleGearShift_eqFunction_96(DATA*,threadData_t*); ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 6 warnings and 20 errors generated. : recipe for target 'Modelica_3.2.2_-O2_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.o' failed make: *** [Modelica_3.2.2_-O2_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.o] Error 1