Notification: Performance of loadModel(Modelica): time 1.493/1.493, allocations: 194.5 MB / 200.7 MB, free: 5.16 MB / 168.6 MB Notification: Performance of FrontEnd - loaded program: time 1.062e-05/1.076e-05, allocations: 2.219 kB / 247.3 MB, free: 4.73 MB / 200.6 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06035/0.06042, allocations: 44.36 MB / 291.7 MB, free: 9.266 MB / 248.6 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.971/5.031, allocations: 2.844 GB / 3.129 GB, free: 41.01 MB / 392.6 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.02832/5.06, allocations: 10.92 MB / 3.139 GB, free: 29.98 MB / 392.6 MB Notification: Performance of FrontEnd: time 0.5764/5.636, allocations: 109.4 MB / 3.246 GB, free: 66.28 MB / 392.6 MB Notification: Performance of Transformations before backend: time 1.746e-05/5.636, allocations: 4 kB / 3.246 GB, free: 66.27 MB / 392.6 MB Notification: Performance of Generate backend data structure: time 0.004447/5.641, allocations: 1.133 MB / 3.247 GB, free: 65.17 MB / 392.6 MB Notification: Performance of prepare preOptimizeDAE: time 4.337e-05/5.641, allocations: 8.031 kB / 3.247 GB, free: 65.16 MB / 392.6 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00243/5.644, allocations: 199.6 kB / 3.247 GB, free: 65.03 MB / 392.6 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003451/5.644, allocations: 252.5 kB / 3.248 GB, free: 64.77 MB / 392.6 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.415e-05/5.644, allocations: 12 kB / 3.248 GB, free: 64.76 MB / 392.6 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.552e-05/5.644, allocations: 23.84 kB / 3.248 GB, free: 64.74 MB / 392.6 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007134/5.645, allocations: 339 kB / 3.248 GB, free: 64.44 MB / 392.6 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005147/5.646, allocations: 283.5 kB / 3.248 GB, free: 64.18 MB / 392.6 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.732e-05/5.646, allocations: 4 kB / 3.248 GB, free: 64.18 MB / 392.6 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.1e-05/5.646, allocations: 3.984 kB / 3.248 GB, free: 64.18 MB / 392.6 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.708e-06/5.646, allocations: 4 kB / 3.248 GB, free: 64.17 MB / 392.6 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001786/5.648, allocations: 1.321 MB / 3.25 GB, free: 62.88 MB / 392.6 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003801/5.648, allocations: 231.9 kB / 3.25 GB, free: 62.65 MB / 392.6 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002354/5.648, allocations: 133.1 kB / 3.25 GB, free: 62.52 MB / 392.6 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09368/5.742, allocations: 37.44 MB / 3.286 GB, free: 25.16 MB / 392.6 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.801e-05/5.742, allocations: 46.34 kB / 3.286 GB, free: 25.11 MB / 392.6 MB Notification: Performance of pre-optimization done (n=33): time 5.518e-06/5.742, allocations: 0 / 3.286 GB, free: 25.11 MB / 392.6 MB Notification: Performance of matching and sorting (n=33): time 0.002508/5.745, allocations: 0.5159 MB / 3.287 GB, free: 24.7 MB / 392.6 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.228e-05/5.745, allocations: 55.41 kB / 3.287 GB, free: 24.63 MB / 392.6 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001029/5.745, allocations: 116.8 kB / 3.287 GB, free: 24.51 MB / 392.6 MB Notification: Performance of collectPreVariables (initialization): time 3.115e-05/5.745, allocations: 25.7 kB / 3.287 GB, free: 24.48 MB / 392.6 MB Notification: Performance of collectInitialEqns (initialization): time 4.477e-05/5.745, allocations: 116.3 kB / 3.287 GB, free: 24.36 MB / 392.6 MB Notification: Performance of collectInitialBindings (initialization): time 8.255e-05/5.746, allocations: 117.5 kB / 3.287 GB, free: 24.26 MB / 392.6 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.151e-05/5.746, allocations: 0 / 3.287 GB, free: 24.26 MB / 392.6 MB Notification: Performance of setup shared object (initialization): time 5.86e-05/5.746, allocations: 322.6 kB / 3.288 GB, free: 23.94 MB / 392.6 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002243/5.746, allocations: 111.8 kB / 3.288 GB, free: 23.83 MB / 392.6 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002525/5.746, allocations: 183 kB / 3.288 GB, free: 23.63 MB / 392.6 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008572/5.747, allocations: 130 kB / 3.288 GB, free: 23.52 MB / 392.6 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.959e-06/5.747, allocations: 0 / 3.288 GB, free: 23.52 MB / 392.6 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.002489/5.75, allocations: 0.5714 MB / 3.289 GB, free: 23.06 MB / 392.6 MB Notification: Performance of prepare postOptimizeDAE: time 2.053e-05/5.75, allocations: 4 kB / 3.289 GB, free: 23.05 MB / 392.6 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.104e-05/5.75, allocations: 7.938 kB / 3.289 GB, free: 23.05 MB / 392.6 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.053e-05/5.75, allocations: 7.906 kB / 3.289 GB, free: 23.04 MB / 392.6 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004484/5.751, allocations: 87.84 kB / 3.289 GB, free: 22.96 MB / 392.6 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.055e-05/5.751, allocations: 7.578 kB / 3.289 GB, free: 22.96 MB / 392.6 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002921/5.751, allocations: 30.09 kB / 3.289 GB, free: 22.93 MB / 392.6 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.582e-05/5.751, allocations: 19.94 kB / 3.289 GB, free: 22.92 MB / 392.6 MB Notification: Performance of prepare postOptimizeDAE: time 4.973e-05/5.751, allocations: 75.28 kB / 3.289 GB, free: 22.84 MB / 392.6 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001183/5.752, allocations: 237.2 kB / 3.289 GB, free: 22.7 MB / 392.6 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003139/5.756, allocations: 2.263 MB / 3.291 GB, free: 20.63 MB / 392.6 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.422e-05/5.756, allocations: 24.38 kB / 3.291 GB, free: 20.61 MB / 392.6 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.101e-06/5.756, allocations: 4.656 kB / 3.291 GB, free: 20.61 MB / 392.6 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.083e-05/5.756, allocations: 2.109 kB / 3.291 GB, free: 20.61 MB / 392.6 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001048/5.757, allocations: 0.8457 MB / 3.292 GB, free: 19.83 MB / 392.6 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.264e-06/5.757, allocations: 5.031 kB / 3.292 GB, free: 19.83 MB / 392.6 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003978/5.758, allocations: 65.09 kB / 3.292 GB, free: 19.77 MB / 392.6 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.041e-05/5.758, allocations: 9.016 kB / 3.292 GB, free: 19.77 MB / 392.6 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.73e-05/5.758, allocations: 9.359 kB / 3.292 GB, free: 19.76 MB / 392.6 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.355e-06/5.758, allocations: 7.938 kB / 3.292 GB, free: 19.75 MB / 392.6 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.378e-06/5.758, allocations: 1.219 kB / 3.292 GB, free: 19.75 MB / 392.6 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005315/5.763, allocations: 2.516 MB / 3.295 GB, free: 17.45 MB / 392.6 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001006/5.763, allocations: 125.2 kB / 3.295 GB, free: 17.31 MB / 392.6 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.518e-05/5.764, allocations: 0.6094 kB / 3.295 GB, free: 17.31 MB / 392.6 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003149/5.764, allocations: 19.7 kB / 3.295 GB, free: 17.3 MB / 392.6 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.5e-05/5.764, allocations: 31.52 kB / 3.295 GB, free: 17.28 MB / 392.6 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.624e-05/5.764, allocations: 22.36 kB / 3.295 GB, free: 17.26 MB / 392.6 MB Notification: Performance of sort global known variables: time 5.643e-05/5.764, allocations: 93.09 kB / 3.295 GB, free: 17.17 MB / 392.6 MB Notification: Performance of remove unused functions: time 0.003736/5.768, allocations: 0.9865 MB / 3.296 GB, free: 16.21 MB / 392.6 MB Notification: Performance of Backend phase and start with SimCode phase: time 0.007583/5.776, allocations: 1.367 MB / 3.297 GB, free: 15.01 MB / 392.6 MB Notification: Performance of simCode: created initialization part: time 0.001326/5.777, allocations: 0.9944 MB / 3.298 GB, free: 14.08 MB / 392.6 MB Notification: Performance of simCode: created event and clocks part: time 4.889e-06/5.777, allocations: 0 / 3.298 GB, free: 14.08 MB / 392.6 MB Notification: Performance of simCode: created simulation system equations: time 0.001011/5.778, allocations: 1.018 MB / 3.299 GB, free: 13.12 MB / 392.6 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007548/5.779, allocations: 75.33 kB / 3.299 GB, free: 13.07 MB / 392.6 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002089/5.781, allocations: 1.319 MB / 3.301 GB, free: 11.85 MB / 392.6 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004813/5.782, allocations: 0.9162 MB / 3.302 GB, free: 10.97 MB / 392.6 MB Notification: Performance of SimCode: time 2.305e-06/5.782, allocations: 0 / 3.302 GB, free: 10.97 MB / 392.6 MB Notification: Performance of Templates: time 0.2356/6.018, allocations: 29.48 MB / 3.33 GB, free: 106.8 MB / 392.6 MB make -j1 -f Modelica_3.2.2_-O2_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.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_Media_Examples_TwoPhaseWater_TestTwoPhaseStates -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o Modelica_3.2.2_-O2_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.o Modelica_3.2.2_-O2_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.c In file included from Modelica_3.2.2_-O2_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.c:2: ./Modelica_3.2.2_-O2_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_model.h:2:29: error: missing ')' after 'defined' #if !defined(Modelica_3_2_2_-O2_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates__MODEL_H) ^ ./Modelica_3.2.2_-O2_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_model.h:2:13: note: to match this '(' #if !defined(Modelica_3_2_2_-O2_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates__MODEL_H) ^ In file included from Modelica_3.2.2_-O2_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.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.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.c:5:45: note: expanded from macro 'prefixedName_updateContinuousSystem' #define prefixedName_updateContinuousSystem Modelica_3_2_2_-O2_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates_updateContinuousSystem ^ In file included from Modelica_3.2.2_-O2_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.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.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.c:5:60: note: expanded from macro 'prefixedName_updateContinuousSystem' #define prefixedName_updateContinuousSystem Modelica_3_2_2_-O2_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates_updateContinuousSystem ^ In file included from Modelica_3.2.2_-O2_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.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.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.c:4:40: note: expanded from macro 'prefixedName_performSimulation' #define prefixedName_performSimulation Modelica_3_2_2_-O2_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates_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.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.c:5:45: note: expanded from macro 'prefixedName_updateContinuousSystem' #define prefixedName_updateContinuousSystem Modelica_3_2_2_-O2_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates_updateContinuousSystem ^ In file included from Modelica_3.2.2_-O2_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.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.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.c:4:55: note: expanded from macro 'prefixedName_performSimulation' #define prefixedName_performSimulation Modelica_3_2_2_-O2_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates_performSimulation ^ In file included from Modelica_3.2.2_-O2_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.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.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.c:8:43: note: expanded from macro 'prefixedName_performQSSSimulation' #define prefixedName_performQSSSimulation Modelica_3_2_2_-O2_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates_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.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.c:5:45: note: expanded from macro 'prefixedName_updateContinuousSystem' #define prefixedName_updateContinuousSystem Modelica_3_2_2_-O2_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates_updateContinuousSystem ^ In file included from Modelica_3.2.2_-O2_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.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.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.c:8:58: note: expanded from macro 'prefixedName_performQSSSimulation' #define prefixedName_performQSSSimulation Modelica_3_2_2_-O2_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates_performQSSSimulation ^ Modelica_3.2.2_-O2_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.c:18:5: error: non-static declaration of 'Modelica_3_2_2_' follows static declaration int Modelica_3_2_2_-O2_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates_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.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.c:5:45: note: expanded from macro 'prefixedName_updateContinuousSystem' #define prefixedName_updateContinuousSystem Modelica_3_2_2_-O2_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates_updateContinuousSystem ^ Modelica_3.2.2_-O2_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.c:18:20: error: expected ';' after top level declarator int Modelica_3_2_2_-O2_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates_input_function(DATA *data, threadData_t *threadData) ^ ; Modelica_3.2.2_-O2_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.c:882:28: error: expected ';' after top level declarator extern void Modelica_3_2_2_-O2_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates_eqFunction_84(DATA* data, threadData_t *threadData); ^ ; Modelica_3.2.2_-O2_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.c:886:19: warning: implicit declaration of function 'O2_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates_eqFunction_83' is invalid in C99 [-Wimplicit-function-declaration] Modelica_3_2_2_-O2_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates_eqFunction_83(data, threadData); ^ Modelica_3.2.2_-O2_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.c:886:18: error: invalid operands to binary expression ('void' and 'int') Modelica_3_2_2_-O2_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates_eqFunction_83(data, threadData); ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Modelica_3.2.2_-O2_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.c:888:19: warning: implicit declaration of function 'O2_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates_eqFunction_84' is invalid in C99 [-Wimplicit-function-declaration] Modelica_3_2_2_-O2_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates_eqFunction_84(data, threadData); ^ Modelica_3.2.2_-O2_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.c:888:18: error: invalid operands to binary expression ('void' and 'int') Modelica_3_2_2_-O2_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates_eqFunction_84(data, threadData); ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Modelica_3.2.2_-O2_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.c:891:5: error: redefinition of 'Modelica_3_2_2_' with a different type: 'int' vs 'void' int Modelica_3_2_2_-O2_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates_functionODE(DATA *data, threadData_t *threadData) ^ Modelica_3.2.2_-O2_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.c:882:13: note: previous declaration is here extern void Modelica_3_2_2_-O2_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates_eqFunction_84(DATA* data, threadData_t *threadData); ^ Modelica_3.2.2_-O2_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.c:891:20: error: expected ';' after top level declarator int Modelica_3_2_2_-O2_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates_functionODE(DATA *data, threadData_t *threadData) ^ ; In file included from Modelica_3.2.2_-O2_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.c:911: ./Modelica_3.2.2_-O2_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_12jac.h:7:26: warning: ISO C99 requires whitespace after the macro name [-Wc99-extensions] #define Modelica_3_2_2_-O2_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates_INDEX_JAC_A 3 ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 9 warnings and 20 errors generated. : recipe for target 'Modelica_3.2.2_-O2_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.o' failed make: *** [Modelica_3.2.2_-O2_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.o] Error 1