Notification: Performance of loadModel(Modelica): time 1.531/1.531, allocations: 194.5 MB / 200.7 MB, free: 5.145 MB / 168.6 MB Notification: Performance of FrontEnd - loaded program: time 1.048e-05/1.055e-05, allocations: 1.031 kB / 247.3 MB, free: 4.754 MB / 200.6 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06237/0.06245, allocations: 44.36 MB / 291.7 MB, free: 9.309 MB / 248.6 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2269/0.2895, allocations: 75.13 MB / 366.8 MB, free: 6.863 MB / 296.6 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001903/0.2898, allocations: 75.89 kB / 366.9 MB, free: 6.859 MB / 296.6 MB Notification: Performance of FrontEnd: time 0.02689/0.3167, allocations: 6.333 MB / 373.2 MB, free: 5.918 MB / 296.6 MB Notification: Performance of Transformations before backend: time 2.458e-05/0.3168, allocations: 7.719 kB / 373.2 MB, free: 5.918 MB / 296.6 MB Notification: Performance of Generate backend data structure: time 0.001382/0.3183, allocations: 0.6683 MB / 373.9 MB, free: 5.398 MB / 296.6 MB Notification: Performance of prepare preOptimizeDAE: time 4.107e-05/0.3184, allocations: 7.844 kB / 373.9 MB, free: 5.398 MB / 296.6 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001293/0.3186, allocations: 50.56 kB / 374 MB, free: 5.371 MB / 296.6 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004212/0.3191, allocations: 284.2 kB / 374.2 MB, free: 5.113 MB / 296.6 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.534e-05/0.3192, allocations: 19.09 kB / 374.3 MB, free: 5.109 MB / 296.6 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.17e-05/0.3193, allocations: 23.12 kB / 374.3 MB, free: 5.105 MB / 296.6 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008534/0.3202, allocations: 359.5 kB / 374.6 MB, free: 5.066 MB / 296.6 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007449/0.321, allocations: 345.9 kB / 375 MB, free: 4.957 MB / 296.6 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.759e-05/0.3211, allocations: 0 / 375 MB, free: 4.957 MB / 296.6 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.804e-05/0.3213, allocations: 0 / 375 MB, free: 4.957 MB / 296.6 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.348e-05/0.3213, allocations: 7.906 kB / 375 MB, free: 4.957 MB / 296.6 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003274/0.3247, allocations: 1.249 MB / 376.2 MB, free: 4.281 MB / 296.6 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005617/0.3253, allocations: 249.5 kB / 376.5 MB, free: 4.242 MB / 296.6 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003921/0.3258, allocations: 205.3 kB / 376.7 MB, free: 4.227 MB / 296.6 MB Notification: Performance of preOpt evalFunc (simulation): time 6.6e-05/0.3259, allocations: 4.344 kB / 376.7 MB, free: 4.227 MB / 296.6 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.193e-05/0.326, allocations: 49.27 kB / 376.7 MB, free: 4.176 MB / 296.6 MB Notification: Performance of pre-optimization done (n=47): time 4.47e-06/0.326, allocations: 0 / 376.7 MB, free: 4.176 MB / 296.6 MB Notification: Performance of matching and sorting (n=51): time 0.004775/0.3309, allocations: 1.498 MB / 378.2 MB, free: 3.461 MB / 296.6 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.703e-05/0.331, allocations: 59.69 kB / 378.3 MB, free: 3.395 MB / 296.6 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001996/0.3313, allocations: 181.8 kB / 378.5 MB, free: 3.285 MB / 296.6 MB Notification: Performance of collectPreVariables (initialization): time 7.061e-05/0.3314, allocations: 36.94 kB / 378.5 MB, free: 3.25 MB / 296.6 MB Notification: Performance of collectInitialEqns (initialization): time 6.977e-05/0.3315, allocations: 154.2 kB / 378.7 MB, free: 3.113 MB / 296.6 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001368/0.3317, allocations: 168 kB / 378.8 MB, free: 2.996 MB / 296.6 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.651e-05/0.3318, allocations: 0 / 378.8 MB, free: 2.996 MB / 296.6 MB Notification: Performance of setup shared object (initialization): time 0.0001811/0.3321, allocations: 342.1 kB / 379.1 MB, free: 18.67 MB / 312.6 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004119/0.3325, allocations: 179.5 kB / 379.3 MB, free: 18.67 MB / 312.6 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004377/0.333, allocations: 238.3 kB / 379.6 MB, free: 18.6 MB / 312.6 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006077/0.3337, allocations: 157.6 kB / 379.7 MB, free: 18.57 MB / 312.6 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.702e-06/0.3338, allocations: 0 / 379.7 MB, free: 18.57 MB / 312.6 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002198/0.336, allocations: 0.655 MB / 380.4 MB, free: 18.41 MB / 312.6 MB Notification: Performance of prepare postOptimizeDAE: time 2.053e-05/0.3361, allocations: 3.875 kB / 380.4 MB, free: 18.41 MB / 312.6 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.472e-05/0.3362, allocations: 7.719 kB / 380.4 MB, free: 18.41 MB / 312.6 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00119/0.3375, allocations: 427.6 kB / 380.8 MB, free: 18.29 MB / 312.6 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000435/0.338, allocations: 80.39 kB / 380.9 MB, free: 18.27 MB / 312.6 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003701/0.3417, allocations: 3.353 MB / 384.2 MB, free: 15.24 MB / 312.6 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008059/0.3426, allocations: 106.1 kB / 384.3 MB, free: 15.21 MB / 312.6 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.493e-05/0.3428, allocations: 23.17 kB / 384.4 MB, free: 15.2 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.0001314/0.343, allocations: 75.28 kB / 384.4 MB, free: 15.13 MB / 312.6 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001197/0.3432, allocations: 42.84 kB / 384.5 MB, free: 15.11 MB / 312.6 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002081/0.3453, allocations: 0.6797 MB / 385.1 MB, free: 14.89 MB / 312.6 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.055e-05/0.3454, allocations: 3.938 kB / 385.2 MB, free: 14.89 MB / 312.6 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.591e-06/0.3455, allocations: 7.812 kB / 385.2 MB, free: 14.88 MB / 312.6 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.149e-06/0.3455, allocations: 3.984 kB / 385.2 MB, free: 14.88 MB / 312.6 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002384/0.348, allocations: 1.065 MB / 386.2 MB, free: 14.39 MB / 312.6 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.727e-06/0.348, allocations: 0 / 386.2 MB, free: 14.39 MB / 312.6 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000429/0.3485, allocations: 70.27 kB / 386.3 MB, free: 14.38 MB / 312.6 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001091/0.3497, allocations: 409.9 kB / 386.7 MB, free: 14.26 MB / 312.6 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.272e-05/0.3498, allocations: 15.47 kB / 386.7 MB, free: 14.25 MB / 312.6 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003093/0.353, allocations: 3.308 MB / 390 MB, free: 11.23 MB / 312.6 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.658e-06/0.3531, allocations: 8.062 kB / 390 MB, free: 11.22 MB / 312.6 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001969/0.3551, allocations: 0.8582 MB / 390.9 MB, free: 10.96 MB / 312.6 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002614/0.3554, allocations: 152.6 kB / 391 MB, free: 10.84 MB / 312.6 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001226/0.3556, allocations: 11.38 kB / 391 MB, free: 10.83 MB / 312.6 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007265/0.3564, allocations: 105.2 kB / 391.1 MB, free: 10.8 MB / 312.6 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002538/0.3567, allocations: 105.9 kB / 391.3 MB, free: 10.74 MB / 312.6 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.047e-05/0.3569, allocations: 23.47 kB / 391.3 MB, free: 10.73 MB / 312.6 MB Notification: Performance of sort global known variables: time 0.0001557/0.3571, allocations: 152.9 kB / 391.4 MB, free: 10.64 MB / 312.6 MB Notification: Performance of remove unused functions: time 0.0007212/0.3579, allocations: 112.3 kB / 391.5 MB, free: 10.63 MB / 312.6 MB Notification: Performance of Backend phase and start with SimCode phase: time 0.0001655/0.3581, allocations: 100.3 kB / 391.6 MB, free: 10.56 MB / 312.6 MB Notification: Performance of simCode: created initialization part: time 0.001502/0.3597, allocations: 0.727 MB / 392.4 MB, free: 10.25 MB / 312.6 MB Notification: Performance of simCode: created event and clocks part: time 3.772e-06/0.3597, allocations: 0 / 392.4 MB, free: 10.25 MB / 312.6 MB Notification: Performance of simCode: created simulation system equations: time 0.0008771/0.3607, allocations: 474.4 kB / 392.8 MB, free: 10.02 MB / 312.6 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005744/0.3613, allocations: 43.91 kB / 392.9 MB, free: 10 MB / 312.6 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002325/0.3637, allocations: 0.7476 MB / 393.6 MB, free: 9.582 MB / 312.6 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005292/0.3643, allocations: 0.8401 MB / 394.5 MB, free: 8.812 MB / 312.6 MB Notification: Performance of SimCode: time 2.165e-06/0.3644, allocations: 0 / 394.5 MB, free: 8.812 MB / 312.6 MB Notification: Performance of Templates: time 0.05652/0.421, allocations: 8.733 MB / 403.2 MB, free: 4.344 MB / 312.6 MB make -j1 -f Modelica_3.2.2_-O1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.makefile clang -fPIC -O1 -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_-O1_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_-O1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.o Modelica_3.2.2_-O1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.c In file included from Modelica_3.2.2_-O1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.c:2: ./Modelica_3.2.2_-O1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_model.h:2:29: error: missing ')' after 'defined' #if !defined(Modelica_3_2_2_-O1_Modelica_Mechanics_Rotational_Examples_SimpleGearShift__MODEL_H) ^ ./Modelica_3.2.2_-O1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_model.h:2:13: note: to match this '(' #if !defined(Modelica_3_2_2_-O1_Modelica_Mechanics_Rotational_Examples_SimpleGearShift__MODEL_H) ^ In file included from Modelica_3.2.2_-O1_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_-O1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.c:5:45: note: expanded from macro 'prefixedName_updateContinuousSystem' #define prefixedName_updateContinuousSystem Modelica_3_2_2_-O1_Modelica_Mechanics_Rotational_Examples_SimpleGearShift_updateContinuousSystem ^ In file included from Modelica_3.2.2_-O1_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_-O1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.c:5:60: note: expanded from macro 'prefixedName_updateContinuousSystem' #define prefixedName_updateContinuousSystem Modelica_3_2_2_-O1_Modelica_Mechanics_Rotational_Examples_SimpleGearShift_updateContinuousSystem ^ In file included from Modelica_3.2.2_-O1_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_-O1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.c:4:40: note: expanded from macro 'prefixedName_performSimulation' #define prefixedName_performSimulation Modelica_3_2_2_-O1_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_-O1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.c:5:45: note: expanded from macro 'prefixedName_updateContinuousSystem' #define prefixedName_updateContinuousSystem Modelica_3_2_2_-O1_Modelica_Mechanics_Rotational_Examples_SimpleGearShift_updateContinuousSystem ^ In file included from Modelica_3.2.2_-O1_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_-O1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.c:4:55: note: expanded from macro 'prefixedName_performSimulation' #define prefixedName_performSimulation Modelica_3_2_2_-O1_Modelica_Mechanics_Rotational_Examples_SimpleGearShift_performSimulation ^ In file included from Modelica_3.2.2_-O1_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_-O1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.c:8:43: note: expanded from macro 'prefixedName_performQSSSimulation' #define prefixedName_performQSSSimulation Modelica_3_2_2_-O1_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_-O1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.c:5:45: note: expanded from macro 'prefixedName_updateContinuousSystem' #define prefixedName_updateContinuousSystem Modelica_3_2_2_-O1_Modelica_Mechanics_Rotational_Examples_SimpleGearShift_updateContinuousSystem ^ In file included from Modelica_3.2.2_-O1_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_-O1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.c:8:58: note: expanded from macro 'prefixedName_performQSSSimulation' #define prefixedName_performQSSSimulation Modelica_3_2_2_-O1_Modelica_Mechanics_Rotational_Examples_SimpleGearShift_performQSSSimulation ^ Modelica_3.2.2_-O1_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_-O1_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_-O1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.c:5:45: note: expanded from macro 'prefixedName_updateContinuousSystem' #define prefixedName_updateContinuousSystem Modelica_3_2_2_-O1_Modelica_Mechanics_Rotational_Examples_SimpleGearShift_updateContinuousSystem ^ Modelica_3.2.2_-O1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.c:18:20: error: expected ';' after top level declarator int Modelica_3_2_2_-O1_Modelica_Mechanics_Rotational_Examples_SimpleGearShift_input_function(DATA *data, threadData_t *threadData) ^ ; Modelica_3.2.2_-O1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.c:304:6: error: variable has incomplete type 'void' void Modelica_3_2_2_-O1_Modelica_Mechanics_Rotational_Examples_SimpleGearShift_eqFunction_94(DATA*,threadData_t*); ^ Modelica_3.2.2_-O1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.c:304:21: error: expected ';' after top level declarator void Modelica_3_2_2_-O1_Modelica_Mechanics_Rotational_Examples_SimpleGearShift_eqFunction_94(DATA*,threadData_t*); ^ ; Modelica_3.2.2_-O1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.c:305:6: error: variable has incomplete type 'void' void Modelica_3_2_2_-O1_Modelica_Mechanics_Rotational_Examples_SimpleGearShift_eqFunction_95(DATA*,threadData_t*); ^ Modelica_3.2.2_-O1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.c:305:21: error: expected ';' after top level declarator void Modelica_3_2_2_-O1_Modelica_Mechanics_Rotational_Examples_SimpleGearShift_eqFunction_95(DATA*,threadData_t*); ^ ; Modelica_3.2.2_-O1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.c:306:6: error: variable has incomplete type 'void' void Modelica_3_2_2_-O1_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_-O1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.o' failed make: *** [Modelica_3.2.2_-O1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.o] Error 1