Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo", uses=false) Using package OpenIPSL with version 3.1.0-dev (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001471/0.001471, allocations: 172.5 kB / 7.647 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.304/1.304, allocations: 221.5 MB / 229.6 MB, free: 7.582 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009446/0.0009446, allocations: 96.5 kB / 280.5 MB, free: 5.324 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4489/0.4489, allocations: 78.94 MB / 410.2 MB, free: 5.949 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.28e-05/2.271e-05, allocations: 3.984 kB / 486 MB, free: 11.45 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1203/0.1204, allocations: 69.52 MB / 0.5425 GB, free: 5.82 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3353/0.4557, allocations: 100.2 MB / 0.6404 GB, free: 13.75 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001899/0.4559, allocations: 82.41 kB / 0.6405 GB, free: 13.68 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.117/0.5729, allocations: 42.88 MB / 0.6823 GB, free: 2.758 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.573, allocations: 0 / 0.6823 GB, free: 2.758 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.000126/0.5731, allocations: 40.81 kB / 0.6824 GB, free: 2.719 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 198 * Number of variables: 198 Notification: Performance of Generate backend data structure: time 0.004697/0.5778, allocations: 1.716 MB / 0.6841 GB, free: 0.9453 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.729e-05/0.5779, allocations: 8.031 kB / 0.6841 GB, free: 0.9375 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003534/0.5814, allocations: 0.5641 MB / 0.6846 GB, free: 380 kB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001881/0.5833, allocations: 0.7957 MB / 0.6854 GB, free: 15.52 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002999/0.5836, allocations: 240.2 kB / 0.6856 GB, free: 15.25 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002369/0.5839, allocations: 44 kB / 0.6857 GB, free: 15.21 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001739/0.5856, allocations: 0.8123 MB / 0.6865 GB, free: 14.39 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002091/0.5877, allocations: 1.125 MB / 0.6876 GB, free: 13.24 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.059e-05/0.5878, allocations: 0 / 0.6876 GB, free: 13.24 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.648e-05/0.5879, allocations: 8.125 kB / 0.6876 GB, free: 13.23 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.548e-05/0.5879, allocations: 16 kB / 0.6876 GB, free: 13.22 MB / 0.4948 GB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006996/0.5949, allocations: 3.569 MB / 0.6911 GB, free: 9.477 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007175/0.6021, allocations: 2.797 MB / 0.6938 GB, free: 6.551 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00086/0.6029, allocations: 0.5925 MB / 0.6944 GB, free: 5.949 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001174/0.6031, allocations: 24.83 kB / 0.6944 GB, free: 5.922 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008857/0.604, allocations: 0.5838 MB / 0.695 GB, free: 5.316 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=115): time 5.23e-06/0.604, allocations: 3.984 kB / 0.695 GB, free: 5.312 MB / 0.4948 GB Notification: Performance of matching and sorting (n=115): time 0.01253/0.6165, allocations: 4.043 MB / 0.6989 GB, free: 1.254 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001472/0.6167, allocations: 182.9 kB / 0.6991 GB, free: 1.039 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001438/0.6181, allocations: 0.8151 MB / 0.6999 GB, free: 216 kB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001063/0.6182, allocations: 29.7 kB / 0.6999 GB, free: 180 kB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003948/0.6187, allocations: 0.4959 MB / 0.7004 GB, free: 15.67 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.000352/0.619, allocations: 307.6 kB / 0.7007 GB, free: 15.37 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.694e-05/0.6191, allocations: 4 kB / 0.7007 GB, free: 15.36 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.000152/0.6193, allocations: 349.9 kB / 0.701 GB, free: 15.02 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006879/0.62, allocations: 422.6 kB / 0.7014 GB, free: 14.61 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009165/0.6209, allocations: 0.7163 MB / 0.7021 GB, free: 13.75 MB / 0.5105 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/BackEnd/BackendEquation.mo:2416:7-2416:76:writable] Error: Internal error function solveEquation failed Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/BackEnd/BackendEquation.mo:2416:7-2416:76:writable] Error: Internal error function solveEquation failed Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.001886/0.6228, allocations: 1.06 MB / 0.7032 GB, free: 12.61 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.054e-05/0.6228, allocations: 4 kB / 0.7032 GB, free: 12.61 MB / 0.5105 GB Notification: Performance of matching and sorting (n=148) (initialization): time 0.01234/0.6351, allocations: 4.022 MB / 0.7071 GB, free: 8.574 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 6.7e-05/0.6352, allocations: 63.41 kB / 0.7072 GB, free: 8.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.825e-05/0.6353, allocations: 8 kB / 0.7072 GB, free: 8.492 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005076/0.6404, allocations: 1.449 MB / 0.7086 GB, free: 7.039 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008804/0.6412, allocations: 203.7 kB / 0.7088 GB, free: 6.84 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01336/0.6546, allocations: 6.384 MB / 0.715 GB, free: 332 kB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001631/0.6563, allocations: 179.1 kB / 0.7152 GB, free: 152 kB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002029/0.6565, allocations: 51.98 kB / 0.7152 GB, free: 100 kB / 0.5105 GB Warning: Assuming fixed start value for the following 3 variables: order4.e1d:VARIABLE(start = order4.e1d0 unit = "1" ) "d-axis transient voltage" type: Real order4.e1q:VARIABLE(start = order4.e1q0 unit = "1" ) "q-axis transient voltage" type: Real order4.delta:VARIABLE(start = order4.delta0 unit = "rad" ) "Rotor angle" type: Real Warning: The initial conditions are over specified. The following 4 initial equations are redundant, so they are removed from the initialization sytem: $DER.aVRTypeII.firstOrder2.y = 0.0 $DER.aVRTypeII.derivativeBlock.x = 0.0 aVRTypeII.simpleLagLim.state = 0.0 aVRTypeII.ExcitationSystem.y = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (117): * Single equations (assignments): 114 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {18 14} Notification: Performance of prepare postOptimizeDAE: time 0.0005118/0.657, allocations: 190.6 kB / 0.7154 GB, free: 15.9 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01314/0.6702, allocations: 4.208 MB / 0.7195 GB, free: 11.67 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003988/0.6706, allocations: 135.1 kB / 0.7197 GB, free: 11.54 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01289/0.6835, allocations: 4.304 MB / 0.7239 GB, free: 7.215 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.518e-05/0.6835, allocations: 16 kB / 0.7239 GB, free: 7.199 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.046e-05/0.6836, allocations: 12 kB / 0.7239 GB, free: 7.188 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.738e-05/0.6836, allocations: 3.984 kB / 0.7239 GB, free: 7.184 MB / 0.5261 GB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01351/0.6971, allocations: 5.299 MB / 0.7291 GB, free: 1.781 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.588e-06/0.6972, allocations: 4 kB / 0.7291 GB, free: 1.777 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005584/0.6977, allocations: 107.8 kB / 0.7292 GB, free: 1.672 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00506/0.7028, allocations: 1.602 MB / 0.7307 GB, free: 64 kB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001158/0.7029, allocations: 7.953 kB / 0.7307 GB, free: 56 kB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01691/0.7198, allocations: 9.81 MB / 0.7403 GB, free: 5.898 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.799e-06/0.7199, allocations: 1 kB / 0.7403 GB, free: 5.898 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01425/0.7341, allocations: 5.165 MB / 0.7454 GB, free: 0.6875 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004637/0.7346, allocations: 235.3 kB / 0.7456 GB, free: 448 kB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002932/0.7349, allocations: 8 kB / 0.7456 GB, free: 440 kB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001367/0.7363, allocations: 127.9 kB / 0.7457 GB, free: 312 kB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004639/0.7368, allocations: 168.5 kB / 0.7459 GB, free: 140 kB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.699e-05/0.7369, allocations: 36.92 kB / 0.7459 GB, free: 104 kB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.001041/0.7379, allocations: 0.6218 MB / 0.7465 GB, free: 15.47 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.6e-07/0.738, allocations: 8 kB / 0.7465 GB, free: 15.46 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.001636/0.7396, allocations: 395.5 kB / 0.7469 GB, free: 15.07 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (order2.delta,order2.w,order4.delta,order4.w,order4.e1q,order4.e1d) * Number of discrete variables: 2 ($whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(20,23.0%) 12} * Non-linear torn systems: 1 {4 17} Notification: Performance of Backend phase and start with SimCode phase: time 0.01463/0.7542, allocations: 5.958 MB / 0.7527 GB, free: 9.059 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.004829/0.7591, allocations: 2.04 MB / 0.7547 GB, free: 6.984 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/0.7591, allocations: 4 kB / 0.7547 GB, free: 6.98 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.003636/0.7628, allocations: 1.346 MB / 0.756 GB, free: 5.617 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001693/0.7645, allocations: 0.5442 MB / 0.7566 GB, free: 5.051 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004595/0.7691, allocations: 1.924 MB / 0.7585 GB, free: 3.078 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007731/0.7699, allocations: 1.18 MB / 0.7596 GB, free: 1.867 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.000408/0.7703, allocations: 99.41 kB / 0.7597 GB, free: 1.766 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006303/0.7709, allocations: 471.3 kB / 0.7601 GB, free: 1.305 MB / 0.5573 GB Notification: Performance of SimCode: time 6.51e-07/0.7709, allocations: 0 / 0.7601 GB, free: 1.305 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3068/1.078, allocations: 29.23 MB / 0.7887 GB, free: 143.9 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001439/1.078, allocations: 181.9 kB / 0.7889 GB, free: 143.7 MB / 0.5573 GB Error: Error building simulator. Build log: clang -Os -fPIC -falign-functions -mfpmath=sse -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -Iinclude/ -Iinclude/fmi2 -I. -DOMC_MODEL_PREFIX=OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=2 -DOMC_NUM_NONLINEAR_SYSTEMS=2 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_FMU.o OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_FMU.c In file included from OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_FMU.c:9: In file included from include/openmodelica.h:69: In file included from include/openmodelica_types.h:110: include/gc/omc_gc.h:217:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ include/gc/omc_gc.h:221:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ In file included from OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_FMU.c:54: include/fmi2/fmu2_model_interface.c:73:11: warning: enumeration value 'modelSlaveInitialized' not handled in switch [-Wswitch] switch (comp->state) ^ include/fmi2/fmu2_model_interface.c:162:16: warning: passing 'char **' to parameter of type 'const char **' discards qualifiers in nested pointer types [-Wincompatible-pointer-types-discards-qualifiers] GC_vasprintf(&str, msg, args); ^~~~ include/util/modelica_string.h:71:31: note: passing argument to parameter 'strp' here int GC_vasprintf(const char **strp, const char *fmt, va_list ap); ^ 4 warnings generated. clang -Os -fPIC -falign-functions -mfpmath=sse -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -Iinclude/ -Iinclude/fmi2 -I. -DOMC_MODEL_PREFIX=OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=2 -DOMC_NUM_NONLINEAR_SYSTEMS=2 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous.o OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous.c In file included from OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous.c:7: In file included from ./OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_model.h:5: In file included from include/openmodelica.h:69: In file included from include/openmodelica_types.h:110: include/gc/omc_gc.h:217:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ include/gc/omc_gc.h:221:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ 2 warnings generated. clang -Os -fPIC -falign-functions -mfpmath=sse -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -Iinclude/ -Iinclude/fmi2 -I. -DOMC_MODEL_PREFIX=OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=2 -DOMC_NUM_NONLINEAR_SYSTEMS=2 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_functions.o OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_functions.c In file included from OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_functions.c:1: In file included from ./OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_functions.h:3: In file included from include/meta/meta_modelica.h:49: include/gc/omc_gc.h:217:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ include/gc/omc_gc.h:221:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_functions.c:32:11: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] if((_y0 == 0.0)) ~~~~^~~~~~ OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_functions.c:32:11: note: remove extraneous parentheses around the comparison to silence this warning if((_y0 == 0.0)) ~ ^ ~ OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_functions.c:32:11: note: use '=' to turn this equality comparison into an assignment if((_y0 == 0.0)) ^~ = 3 warnings generated. clang -Os -fPIC -falign-functions -mfpmath=sse -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -Iinclude/ -Iinclude/fmi2 -I. -DOMC_MODEL_PREFIX=OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=2 -DOMC_NUM_NONLINEAR_SYSTEMS=2 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_records.o OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_records.c In file included from OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_records.c:3: In file included from include/meta/meta_modelica.h:49: include/gc/omc_gc.h:217:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ include/gc/omc_gc.h:221:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ 2 warnings generated. clang -Os -fPIC -falign-functions -mfpmath=sse -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -Iinclude/ -Iinclude/fmi2 -I. -DOMC_MODEL_PREFIX=OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=2 -DOMC_NUM_NONLINEAR_SYSTEMS=2 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_01exo.o OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_01exo.c In file included from OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_01exo.c:2: In file included from ./OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_model.h:5: In file included from include/openmodelica.h:69: In file included from include/openmodelica_types.h:110: include/gc/omc_gc.h:217:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ include/gc/omc_gc.h:221:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ 2 warnings generated. clang -Os -fPIC -falign-functions -mfpmath=sse -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -Iinclude/ -Iinclude/fmi2 -I. -DOMC_MODEL_PREFIX=OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=2 -DOMC_NUM_NONLINEAR_SYSTEMS=2 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_02nls.o OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_02nls.c In file included from OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_02nls.c:2: In file included from ./OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_model.h:5: In file included from include/openmodelica.h:69: In file included from include/openmodelica_types.h:110: include/gc/omc_gc.h:217:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ include/gc/omc_gc.h:221:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_02nls.c:290:46: error: use of undeclared identifier 'clockIndex' res[0] = (data->simulationInfo->clocksData[clockIndex].interval) * (((data->simulationInfo->clocksData[clockIndex].cnt == 0)?0.0:data->localData[0]->realVars[19] /* der(aVRTypeII.simpleLagLim.state) variable */)) + data->localData[0]->realVars[15] /* previous(aVRTypeII.simpleLagLim.state) variable */ - data->localData[0]->realVars[46] /* aVRTypeII.simpleLagLim.state CLOCKED_STATE */; ^ OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_02nls.c:290:106: error: use of undeclared identifier 'clockIndex' res[0] = (data->simulationInfo->clocksData[clockIndex].interval) * (((data->simulationInfo->clocksData[clockIndex].cnt == 0)?0.0:data->localData[0]->realVars[19] /* der(aVRTypeII.simpleLagLim.state) variable */)) + data->localData[0]->realVars[15] /* previous(aVRTypeII.simpleLagLim.state) variable */ - data->localData[0]->realVars[46] /* aVRTypeII.simpleLagLim.state CLOCKED_STATE */; ^ OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_02nls.c:292:46: error: use of undeclared identifier 'clockIndex' res[1] = (data->simulationInfo->clocksData[clockIndex].interval) * (((data->simulationInfo->clocksData[clockIndex].cnt == 0)?0.0:data->localData[0]->realVars[17] /* der(aVRTypeII.derivativeBlock.x) variable */)) + data->localData[0]->realVars[13] /* previous(aVRTypeII.derivativeBlock.x) variable */ - data->localData[0]->realVars[35] /* aVRTypeII.derivativeBlock.x CLOCKED_STATE */; ^ OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_02nls.c:292:106: error: use of undeclared identifier 'clockIndex' res[1] = (data->simulationInfo->clocksData[clockIndex].interval) * (((data->simulationInfo->clocksData[clockIndex].cnt == 0)?0.0:data->localData[0]->realVars[17] /* der(aVRTypeII.derivativeBlock.x) variable */)) + data->localData[0]->realVars[13] /* previous(aVRTypeII.derivativeBlock.x) variable */ - data->localData[0]->realVars[35] /* aVRTypeII.derivativeBlock.x CLOCKED_STATE */; ^ OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_02nls.c:294:46: error: use of undeclared identifier 'clockIndex' res[2] = (data->simulationInfo->clocksData[clockIndex].interval) * (((data->simulationInfo->clocksData[clockIndex].cnt == 0)?0.0:data->localData[0]->realVars[16] /* der(aVRTypeII.ExcitationSystem.x_scaled[1]) variable */)) + data->localData[0]->realVars[12] /* previous(aVRTypeII.ExcitationSystem.x_scaled[1]) variable */ - data->localData[0]->realVars[27] /* aVRTypeII.ExcitationSystem.x_scaled[1] CLOCKED_STATE */; ^ OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_02nls.c:294:106: error: use of undeclared identifier 'clockIndex' res[2] = (data->simulationInfo->clocksData[clockIndex].interval) * (((data->simulationInfo->clocksData[clockIndex].cnt == 0)?0.0:data->localData[0]->realVars[16] /* der(aVRTypeII.ExcitationSystem.x_scaled[1]) variable */)) + data->localData[0]->realVars[12] /* previous(aVRTypeII.ExcitationSystem.x_scaled[1]) variable */ - data->localData[0]->realVars[27] /* aVRTypeII.ExcitationSystem.x_scaled[1] CLOCKED_STATE */; ^ 2 warnings and 6 errors generated. make: *** [: OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_02nls.o] Error 1