Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_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.0.1/package.mo", uses=false) Using package OpenIPSL with version 3.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/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_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_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.001366/0.001366, allocations: 176.2 kB / 7.648 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.446/1.446, 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.0008456/0.0008456, allocations: 97.62 kB / 280.5 MB, free: 5.332 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.475/0.475, allocations: 78.07 MB / 409.3 MB, free: 6.359 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 1.681e-05/1.715e-05, allocations: 3.938 kB / 485 MB, free: 12.18 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1158/0.1159, allocations: 69.34 MB / 0.5414 GB, free: 6.77 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3739/0.4899, allocations: 99.53 MB / 0.6386 GB, free: 15.92 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002802/0.4902, allocations: 79.95 kB / 0.6386 GB, free: 15.84 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1499/0.6402, allocations: 41.93 MB / 0.6796 GB, free: 5.852 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.332e-06/0.6402, allocations: 0 / 0.6796 GB, free: 5.852 MB / 490.7 MB Notification: Performance of Transformations before backend: time 8.838e-05/0.6403, allocations: 27.94 kB / 0.6796 GB, free: 5.824 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.005742/0.646, allocations: 1.721 MB / 0.6813 GB, free: 4.047 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.746e-05/0.6461, allocations: 8.031 kB / 0.6813 GB, free: 4.039 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005442/0.6516, allocations: 0.5641 MB / 0.6819 GB, free: 3.473 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002185/0.6538, allocations: 0.7996 MB / 0.6826 GB, free: 2.617 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003509/0.6541, allocations: 236.2 kB / 0.6829 GB, free: 2.352 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002005/0.6543, allocations: 48 kB / 0.6829 GB, free: 2.305 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002116/0.6565, allocations: 0.8084 MB / 0.6837 GB, free: 1.496 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002698/0.6592, allocations: 1.123 MB / 0.6848 GB, free: 348 kB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.523e-05/0.6592, allocations: 0.6562 kB / 0.6848 GB, free: 348 kB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001226/0.6594, allocations: 4 kB / 0.6848 GB, free: 344 kB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.157e-05/0.6594, allocations: 19.94 kB / 0.6848 GB, free: 324 kB / 490.7 MB 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.00919/0.6686, allocations: 3.541 MB / 0.6883 GB, free: 12.61 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01036/0.679, allocations: 2.808 MB / 0.691 GB, free: 9.672 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001431/0.6805, allocations: 0.5993 MB / 0.6916 GB, free: 9.066 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001442/0.6806, allocations: 20.83 kB / 0.6916 GB, free: 9.043 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001298/0.6819, allocations: 0.5896 MB / 0.6922 GB, free: 8.434 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=115): time 4.519e-06/0.6819, allocations: 0 / 0.6922 GB, free: 8.434 MB / 0.4948 GB Notification: Performance of matching and sorting (n=115): time 0.01777/0.6997, allocations: 4.047 MB / 0.6962 GB, free: 4.371 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002091/0.7, allocations: 183 kB / 0.6963 GB, free: 4.156 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002046/0.702, allocations: 0.8113 MB / 0.6971 GB, free: 3.332 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0002571/0.7023, allocations: 29.7 kB / 0.6972 GB, free: 3.297 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.000529/0.7029, allocations: 0.4937 MB / 0.6976 GB, free: 2.797 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004618/0.7033, allocations: 311.6 kB / 0.6979 GB, free: 2.488 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.56e-05/0.7034, allocations: 0 / 0.6979 GB, free: 2.488 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001639/0.7036, allocations: 349.9 kB / 0.6983 GB, free: 2.141 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001045/0.7047, allocations: 418.6 kB / 0.6987 GB, free: 1.734 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001276/0.7059, allocations: 0.7158 MB / 0.6994 GB, free: 0.8789 MB / 0.4948 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.002449/0.7084, allocations: 1.059 MB / 0.7004 GB, free: 15.74 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.064e-05/0.7084, allocations: 7.938 kB / 0.7004 GB, free: 15.73 MB / 0.5105 GB Notification: Performance of matching and sorting (n=148) (initialization): time 0.01672/0.7252, allocations: 4.026 MB / 0.7043 GB, free: 11.7 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 7.26e-05/0.7253, allocations: 59.41 kB / 0.7044 GB, free: 11.62 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.536e-05/0.7253, allocations: 12 kB / 0.7044 GB, free: 11.61 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006816/0.7321, allocations: 1.445 MB / 0.7058 GB, free: 10.16 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001248/0.7334, allocations: 207.7 kB / 0.706 GB, free: 9.961 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02005/0.7535, allocations: 6.386 MB / 0.7123 GB, free: 3.445 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001824/0.7553, allocations: 175.1 kB / 0.7124 GB, free: 3.273 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001554/0.7555, allocations: 57 kB / 0.7125 GB, free: 3.219 MB / 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.0004808/0.756, allocations: 180 kB / 0.7126 GB, free: 3.031 MB / 0.5105 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01393/0.77, allocations: 4.208 MB / 0.7168 GB, free: 14.8 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000646/0.7706, allocations: 131.6 kB / 0.7169 GB, free: 14.67 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0134/0.7841, allocations: 4.32 MB / 0.7211 GB, free: 10.33 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.999e-05/0.7841, allocations: 12 kB / 0.7211 GB, free: 10.32 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.451e-05/0.7842, allocations: 13.61 kB / 0.7211 GB, free: 10.31 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.9e-05/0.7842, allocations: 7.984 kB / 0.7211 GB, free: 10.3 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.01333/0.7975, allocations: 5.287 MB / 0.7263 GB, free: 4.91 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.56e-05/0.7976, allocations: 0 / 0.7263 GB, free: 4.91 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006762/0.7983, allocations: 111.8 kB / 0.7264 GB, free: 4.801 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00514/0.8034, allocations: 1.59 MB / 0.728 GB, free: 3.203 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001518/0.8036, allocations: 19.94 kB / 0.728 GB, free: 3.184 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01595/0.8195, allocations: 9.81 MB / 0.7376 GB, free: 9.027 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.447e-06/0.8196, allocations: 0 / 0.7376 GB, free: 9.027 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01401/0.8336, allocations: 5.153 MB / 0.7426 GB, free: 3.828 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004564/0.8341, allocations: 232.2 kB / 0.7428 GB, free: 3.582 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001827/0.8343, allocations: 8 kB / 0.7428 GB, free: 3.574 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001207/0.8355, allocations: 135.8 kB / 0.7429 GB, free: 3.441 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004737/0.836, allocations: 176.4 kB / 0.7431 GB, free: 3.266 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.814e-05/0.8361, allocations: 33.38 kB / 0.7431 GB, free: 3.234 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0008307/0.8369, allocations: 0.6179 MB / 0.7437 GB, free: 2.609 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.7e-07/0.8369, allocations: 4 kB / 0.7438 GB, free: 2.605 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.001379/0.8383, allocations: 411.4 kB / 0.7441 GB, free: 2.203 MB / 0.5417 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,(19,24.4%) 13} * Non-linear torn systems: 1 {4 17} Notification: Performance of Backend phase and start with SimCode phase: time 0.01428/0.8526, allocations: 5.955 MB / 0.75 GB, free: 12.18 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.004726/0.8574, allocations: 2.062 MB / 0.752 GB, free: 10.09 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.8574, allocations: 1.875 kB / 0.752 GB, free: 10.09 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.003553/0.8609, allocations: 1.339 MB / 0.7533 GB, free: 8.734 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001513/0.8625, allocations: 0.5249 MB / 0.7538 GB, free: 8.184 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003885/0.8664, allocations: 1.922 MB / 0.7557 GB, free: 6.211 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006794/0.8671, allocations: 1.191 MB / 0.7568 GB, free: 4.988 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0003662/0.8674, allocations: 97.16 kB / 0.7569 GB, free: 4.891 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005736/0.868, allocations: 479.3 kB / 0.7574 GB, free: 4.422 MB / 0.5573 GB Notification: Performance of SimCode: time 5.62e-07/0.868, allocations: 0 / 0.7574 GB, free: 4.422 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.288/1.156, allocations: 29.22 MB / 0.7859 GB, free: 145.5 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001432/1.156, allocations: 175.6 kB / 0.7861 GB, free: 145.3 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_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_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_FMU.o OpenIPSL_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_FMU.c In file included from OpenIPSL_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_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_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_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous.o OpenIPSL_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous.c In file included from OpenIPSL_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous.c:7: In file included from ./OpenIPSL_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_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_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_functions.o OpenIPSL_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_functions.c In file included from OpenIPSL_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_functions.c:1: In file included from ./OpenIPSL_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_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_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_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_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_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_records.o OpenIPSL_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_records.c In file included from OpenIPSL_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_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_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_01exo.o OpenIPSL_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_01exo.c In file included from OpenIPSL_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_01exo.c:2: In file included from ./OpenIPSL_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_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_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_02nls.o OpenIPSL_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_02nls.c In file included from OpenIPSL_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_02nls.c:2: In file included from ./OpenIPSL_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_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_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_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_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_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_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_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_02nls.o] Error 1