Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_release_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_release_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_release_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.001488/0.001487, allocations: 173.9 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.35/1.35, allocations: 221.5 MB / 229.6 MB, free: 7.562 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.0008096/0.0008096, allocations: 89.97 kB / 280.5 MB, free: 5.316 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4533/0.4533, allocations: 78.12 MB / 409.4 MB, free: 6.457 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 1.793e-05/1.796e-05, allocations: 3.938 kB / 485.1 MB, free: 12.32 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.148/0.148, allocations: 69.36 MB / 0.5414 GB, free: 6.852 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3791/0.5272, allocations: 99.53 MB / 0.6386 GB, free: 56 kB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002355/0.5274, allocations: 84.64 kB / 0.6387 GB, free: 15.97 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1168/0.6442, allocations: 41.93 MB / 0.6796 GB, free: 5.988 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.6442, allocations: 0 / 0.6796 GB, free: 5.988 MB / 490.7 MB Notification: Performance of Transformations before backend: time 6.651e-05/0.6443, allocations: 27.94 kB / 0.6797 GB, free: 5.961 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.00417/0.6485, allocations: 1.72 MB / 0.6813 GB, free: 4.184 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.411e-05/0.6486, allocations: 8.031 kB / 0.6814 GB, free: 4.176 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003417/0.652, allocations: 0.5641 MB / 0.6819 GB, free: 3.609 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001846/0.6538, allocations: 0.7996 MB / 0.6827 GB, free: 2.754 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003255/0.6542, allocations: 236.8 kB / 0.6829 GB, free: 2.488 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001488/0.6544, allocations: 48 kB / 0.683 GB, free: 2.441 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001727/0.6561, allocations: 0.8132 MB / 0.6838 GB, free: 1.629 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00201/0.6581, allocations: 1.123 MB / 0.6848 GB, free: 488 kB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.395e-05/0.6582, allocations: 4 kB / 0.6849 GB, free: 484 kB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.167e-05/0.6582, allocations: 0 / 0.6849 GB, free: 484 kB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.633e-05/0.6583, allocations: 20 kB / 0.6849 GB, free: 464 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.006429/0.6647, allocations: 3.535 MB / 0.6883 GB, free: 12.75 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007506/0.6722, allocations: 2.811 MB / 0.6911 GB, free: 9.812 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000962/0.6732, allocations: 0.5915 MB / 0.6916 GB, free: 9.211 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001153/0.6733, allocations: 24.83 kB / 0.6917 GB, free: 9.184 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000881/0.6742, allocations: 0.5833 MB / 0.6922 GB, free: 8.578 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=115): time 2.926e-06/0.6742, allocations: 0.6562 kB / 0.6922 GB, free: 8.578 MB / 0.4948 GB Notification: Performance of matching and sorting (n=115): time 0.01282/0.6871, allocations: 4.039 MB / 0.6962 GB, free: 4.523 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001344/0.6872, allocations: 182.9 kB / 0.6964 GB, free: 4.309 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001308/0.6885, allocations: 0.8113 MB / 0.6972 GB, free: 3.484 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001591/0.6887, allocations: 33.7 kB / 0.6972 GB, free: 3.445 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003497/0.6891, allocations: 0.4937 MB / 0.6977 GB, free: 2.945 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003286/0.6894, allocations: 307.6 kB / 0.698 GB, free: 2.641 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.85e-05/0.6895, allocations: 0.8438 kB / 0.698 GB, free: 2.641 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001164/0.6896, allocations: 353.9 kB / 0.6983 GB, free: 2.289 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006835/0.6903, allocations: 418.6 kB / 0.6987 GB, free: 1.883 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00085/0.6912, allocations: 0.7158 MB / 0.6994 GB, free: 1.027 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.001806/0.693, allocations: 1.056 MB / 0.7004 GB, free: 15.89 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.734e-06/0.693, allocations: 9.125 kB / 0.7004 GB, free: 15.88 MB / 0.5105 GB Notification: Performance of matching and sorting (n=148) (initialization): time 0.01226/0.7053, allocations: 4.025 MB / 0.7044 GB, free: 11.84 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 7.359e-05/0.7054, allocations: 60.81 kB / 0.7044 GB, free: 11.77 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.305e-05/0.7054, allocations: 12 kB / 0.7044 GB, free: 11.76 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005165/0.7106, allocations: 1.449 MB / 0.7059 GB, free: 10.3 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009072/0.7115, allocations: 207.7 kB / 0.706 GB, free: 10.1 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01311/0.7246, allocations: 6.395 MB / 0.7123 GB, free: 3.582 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001712/0.7264, allocations: 179.2 kB / 0.7125 GB, free: 3.406 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001848/0.7266, allocations: 48 kB / 0.7125 GB, free: 3.359 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.000472/0.7271, allocations: 181.5 kB / 0.7127 GB, free: 3.172 MB / 0.5105 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01496/0.742, allocations: 4.213 MB / 0.7168 GB, free: 14.94 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006615/0.7428, allocations: 131.8 kB / 0.7169 GB, free: 14.81 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01417/0.7569, allocations: 4.312 MB / 0.7211 GB, free: 10.48 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.138e-05/0.757, allocations: 16 kB / 0.7212 GB, free: 10.46 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.133e-05/0.7571, allocations: 8 kB / 0.7212 GB, free: 10.45 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.979e-05/0.7571, allocations: 7.969 kB / 0.7212 GB, free: 10.45 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.01445/0.7716, allocations: 5.287 MB / 0.7263 GB, free: 5.055 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.551e-05/0.7716, allocations: 7.984 kB / 0.7263 GB, free: 5.047 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007314/0.7724, allocations: 107.8 kB / 0.7264 GB, free: 4.941 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005638/0.778, allocations: 1.598 MB / 0.728 GB, free: 3.336 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002304/0.7783, allocations: 15.94 kB / 0.728 GB, free: 3.32 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0173/0.7956, allocations: 9.801 MB / 0.7376 GB, free: 9.172 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.162e-06/0.7956, allocations: 8 kB / 0.7376 GB, free: 9.164 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01508/0.8107, allocations: 5.16 MB / 0.7426 GB, free: 3.961 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005665/0.8113, allocations: 227.3 kB / 0.7428 GB, free: 3.719 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004102/0.8118, allocations: 7.938 kB / 0.7429 GB, free: 3.711 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001498/0.8133, allocations: 137.1 kB / 0.743 GB, free: 3.578 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005407/0.8138, allocations: 172.5 kB / 0.7432 GB, free: 3.406 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001238/0.814, allocations: 43.92 kB / 0.7432 GB, free: 3.363 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.001033/0.815, allocations: 0.6101 MB / 0.7438 GB, free: 2.746 MB / 0.5417 GB Notification: Performance of sort global known variables: time 3.81e-07/0.815, allocations: 0 / 0.7438 GB, free: 2.746 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.001855/0.8169, allocations: 415.4 kB / 0.7442 GB, free: 2.34 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.01529/0.8322, allocations: 5.951 MB / 0.75 GB, free: 12.32 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.005271/0.8375, allocations: 2.054 MB / 0.752 GB, free: 10.23 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 4.949e-06/0.8375, allocations: 0 / 0.752 GB, free: 10.23 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.003841/0.8414, allocations: 1.342 MB / 0.7533 GB, free: 8.867 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002061/0.8435, allocations: 0.5367 MB / 0.7538 GB, free: 8.305 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005163/0.8487, allocations: 1.92 MB / 0.7557 GB, free: 6.336 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007616/0.8494, allocations: 1.184 MB / 0.7569 GB, free: 5.121 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0004341/0.8499, allocations: 95.41 kB / 0.757 GB, free: 5.023 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006418/0.8506, allocations: 475.3 kB / 0.7574 GB, free: 4.559 MB / 0.5573 GB Notification: Performance of SimCode: time 1.132e-06/0.8506, allocations: 0 / 0.7574 GB, free: 4.559 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3277/1.178, allocations: 29.23 MB / 0.786 GB, free: 145.1 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001636/1.178, allocations: 186 kB / 0.7861 GB, free: 144.9 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_release_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_release_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_FMU.o OpenIPSL_release_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_FMU.c In file included from OpenIPSL_release_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_release_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_release_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_release_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous.o OpenIPSL_release_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous.c In file included from OpenIPSL_release_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous.c:7: In file included from ./OpenIPSL_release_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_release_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_release_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_functions.o OpenIPSL_release_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_functions.c In file included from OpenIPSL_release_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_functions.c:1: In file included from ./OpenIPSL_release_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_release_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_release_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_release_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_release_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_release_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_records.o OpenIPSL_release_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_records.c In file included from OpenIPSL_release_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_release_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_release_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_01exo.o OpenIPSL_release_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_01exo.c In file included from OpenIPSL_release_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_01exo.c:2: In file included from ./OpenIPSL_release_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_release_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_release_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_02nls.o OpenIPSL_release_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_02nls.c In file included from OpenIPSL_release_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_02nls.c:2: In file included from ./OpenIPSL_release_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_release_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_release_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_release_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_release_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_release_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_release_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_release_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_02nls.o] Error 1