Notification: Performance of loadModel(Modelica): time 1.494/1.494, allocations: 194.5 MB / 200.7 MB, free: 5.172 MB / 168.6 MB Notification: Performance of FrontEnd - loaded program: time 1.111e-05/1.117e-05, allocations: 1.438 kB / 247.3 MB, free: 4.727 MB / 200.6 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06095/0.06103, allocations: 44.36 MB / 291.7 MB, free: 9.289 MB / 248.6 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2296/0.2907, allocations: 75.13 MB / 366.8 MB, free: 7.016 MB / 296.6 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001875/0.291, allocations: 76.95 kB / 366.9 MB, free: 7.012 MB / 296.6 MB Notification: Performance of FrontEnd: time 0.02727/0.3184, allocations: 6.327 MB / 373.2 MB, free: 6.047 MB / 296.6 MB Notification: Performance of Transformations before backend: time 2.668e-05/0.3185, allocations: 11.91 kB / 373.2 MB, free: 6.043 MB / 296.6 MB Notification: Performance of Generate backend data structure: time 0.001422/0.32, allocations: 0.6721 MB / 373.9 MB, free: 5.523 MB / 296.6 MB Notification: Performance of prepare preOptimizeDAE: time 4.121e-05/0.3201, allocations: 7.75 kB / 373.9 MB, free: 5.523 MB / 296.6 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001326/0.3203, allocations: 43 kB / 374 MB, free: 5.5 MB / 296.6 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004224/0.3208, allocations: 294.4 kB / 374.3 MB, free: 5.234 MB / 296.6 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.757e-05/0.3209, allocations: 11.62 kB / 374.3 MB, free: 5.234 MB / 296.6 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.828e-05/0.321, allocations: 27.22 kB / 374.3 MB, free: 5.227 MB / 296.6 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008514/0.3219, allocations: 354.7 kB / 374.6 MB, free: 5.191 MB / 296.6 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007627/0.3227, allocations: 349 kB / 375 MB, free: 5.082 MB / 296.6 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.968e-05/0.3228, allocations: 0 / 375 MB, free: 5.082 MB / 296.6 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.818e-05/0.323, allocations: 0 / 375 MB, free: 5.082 MB / 296.6 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.439e-05/0.323, allocations: 11.78 kB / 375 MB, free: 5.078 MB / 296.6 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003569/0.3266, allocations: 1.237 MB / 376.2 MB, free: 4.41 MB / 296.6 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005987/0.3274, allocations: 254.4 kB / 376.5 MB, free: 4.371 MB / 296.6 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004123/0.3279, allocations: 207.3 kB / 376.7 MB, free: 4.352 MB / 296.6 MB Notification: Performance of preOpt evalFunc (simulation): time 7.257e-05/0.328, allocations: 8.062 kB / 376.7 MB, free: 4.352 MB / 296.6 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.879e-05/0.3281, allocations: 42.16 kB / 376.7 MB, free: 4.309 MB / 296.6 MB Notification: Performance of pre-optimization done (n=47): time 4.26e-06/0.3281, allocations: 0 / 376.7 MB, free: 4.309 MB / 296.6 MB Notification: Performance of matching and sorting (n=51): time 0.004934/0.3331, allocations: 1.499 MB / 378.2 MB, free: 3.59 MB / 296.6 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.556e-05/0.3332, allocations: 63.44 kB / 378.3 MB, free: 3.52 MB / 296.6 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002168/0.3335, allocations: 181.9 kB / 378.5 MB, free: 3.41 MB / 296.6 MB Notification: Performance of collectPreVariables (initialization): time 7.627e-05/0.3337, allocations: 32.52 kB / 378.5 MB, free: 3.379 MB / 296.6 MB Notification: Performance of collectInitialEqns (initialization): time 7.187e-05/0.3338, allocations: 152.4 kB / 378.6 MB, free: 3.246 MB / 296.6 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001472/0.334, allocations: 168 kB / 378.8 MB, free: 3.125 MB / 296.6 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.973e-05/0.3341, allocations: 0 / 378.8 MB, free: 3.125 MB / 296.6 MB Notification: Performance of setup shared object (initialization): time 0.0001592/0.3343, allocations: 344.6 kB / 379.1 MB, free: 18.8 MB / 312.6 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004209/0.3348, allocations: 175.3 kB / 379.3 MB, free: 18.8 MB / 312.6 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004658/0.3353, allocations: 245.5 kB / 379.6 MB, free: 18.73 MB / 312.6 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006267/0.336, allocations: 153 kB / 379.7 MB, free: 18.7 MB / 312.6 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.4e-06/0.3361, allocations: 0 / 379.7 MB, free: 18.7 MB / 312.6 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002227/0.3384, allocations: 0.6552 MB / 380.4 MB, free: 18.54 MB / 312.6 MB Notification: Performance of prepare postOptimizeDAE: time 2.074e-05/0.3385, allocations: 11.7 kB / 380.4 MB, free: 18.53 MB / 312.6 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.591e-05/0.3386, allocations: 48 / 380.4 MB, free: 18.53 MB / 312.6 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001225/0.3399, allocations: 434.4 kB / 380.8 MB, free: 18.41 MB / 312.6 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004312/0.3404, allocations: 69.03 kB / 380.9 MB, free: 18.4 MB / 312.6 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003665/0.3441, allocations: 3.357 MB / 384.2 MB, free: 15.37 MB / 312.6 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008127/0.345, allocations: 109.1 kB / 384.3 MB, free: 15.33 MB / 312.6 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.324e-05/0.3452, allocations: 22 kB / 384.3 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.0001383/0.3454, allocations: 83.11 kB / 384.4 MB, free: 15.25 MB / 312.6 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001326/0.3456, allocations: 35.06 kB / 384.5 MB, free: 15.23 MB / 312.6 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002162/0.3478, allocations: 0.6802 MB / 385.1 MB, free: 15.02 MB / 312.6 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.138e-05/0.3479, allocations: 3.875 kB / 385.1 MB, free: 15.02 MB / 312.6 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.241e-06/0.348, allocations: 0 / 385.1 MB, free: 15.02 MB / 312.6 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.048e-05/0.3481, allocations: 3.984 kB / 385.2 MB, free: 15.01 MB / 312.6 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002443/0.3505, allocations: 1.071 MB / 386.2 MB, free: 14.52 MB / 312.6 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.867e-06/0.3507, allocations: 0 / 386.2 MB, free: 14.52 MB / 312.6 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004322/0.3512, allocations: 69.94 kB / 386.3 MB, free: 14.5 MB / 312.6 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001139/0.3524, allocations: 411.8 kB / 386.7 MB, free: 14.39 MB / 312.6 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.199e-05/0.3525, allocations: 14.88 kB / 386.7 MB, free: 14.38 MB / 312.6 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003608/0.3562, allocations: 3.321 MB / 390 MB, free: 11.35 MB / 312.6 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.285e-06/0.3563, allocations: 0 / 390 MB, free: 11.35 MB / 312.6 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002109/0.3585, allocations: 0.8571 MB / 390.9 MB, free: 11.09 MB / 312.6 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002764/0.3589, allocations: 161.3 kB / 391 MB, free: 10.96 MB / 312.6 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001266/0.3591, allocations: 10.94 kB / 391.1 MB, free: 10.96 MB / 312.6 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007854/0.3599, allocations: 97.47 kB / 391.2 MB, free: 10.93 MB / 312.6 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002646/0.3603, allocations: 105.5 kB / 391.3 MB, free: 10.86 MB / 312.6 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.48e-05/0.3604, allocations: 23.61 kB / 391.3 MB, free: 10.86 MB / 312.6 MB Notification: Performance of sort global known variables: time 0.000184/0.3606, allocations: 156.2 kB / 391.4 MB, free: 10.77 MB / 312.6 MB Notification: Performance of remove unused functions: time 0.000735/0.3614, allocations: 112.9 kB / 391.5 MB, free: 10.76 MB / 312.6 MB Notification: Performance of Backend phase and start with SimCode phase: time 0.0001615/0.3617, allocations: 88.5 kB / 391.6 MB, free: 10.7 MB / 312.6 MB Notification: Performance of simCode: created initialization part: time 0.00158/0.3633, allocations: 0.7386 MB / 392.4 MB, free: 10.38 MB / 312.6 MB Notification: Performance of simCode: created event and clocks part: time 4.33e-06/0.3634, allocations: 0 / 392.4 MB, free: 10.38 MB / 312.6 MB Notification: Performance of simCode: created simulation system equations: time 0.0008982/0.3643, allocations: 464.5 kB / 392.8 MB, free: 10.16 MB / 312.6 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005869/0.365, allocations: 42.16 kB / 392.9 MB, free: 10.14 MB / 312.6 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002473/0.3675, allocations: 0.7535 MB / 393.6 MB, free: 9.715 MB / 312.6 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003725/0.368, allocations: 0.8373 MB / 394.4 MB, free: 8.949 MB / 312.6 MB Notification: Performance of SimCode: time 2.305e-06/0.3681, allocations: 0 / 394.4 MB, free: 8.949 MB / 312.6 MB Notification: Performance of Templates: time 0.05518/0.4233, allocations: 8.726 MB / 403.2 MB, free: 4.492 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