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.0009633/0.0009633, allocations: 177.5 kB / 15.42 MB, free: 5.914 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.245/1.245, allocations: 222.8 MB / 239 MB, free: 60 kB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007747/0.0007749, allocations: 94.33 kB / 289.8 MB, free: 4.531 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.3032/0.3032, allocations: 78.44 MB / 418.9 MB, free: 48 kB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003209/0.0003209, allocations: 13.16 kB / 498.5 MB, free: 35.34 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2997/0.3, allocations: 68.74 MB / 0.554 GB, free: 10.44 MB / 378.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous): time 0.007501/0.3076, allocations: 7.067 MB / 0.5609 GB, free: 5.734 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.003102/0.3107, allocations: 2.059 MB / 0.5629 GB, free: 4.27 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003865/0.3111, allocations: 15.22 kB / 0.5629 GB, free: 4.266 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005414/0.3117, allocations: 189.4 kB / 0.5631 GB, free: 4.188 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001418/0.3131, allocations: 0.7157 MB / 0.5638 GB, free: 3.723 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/Electrical/Machines/PSAT/Order4.mo:25:3-30:9:writable] Warning: In relation order4.xq <> order4.x1q, <> on Real numbers is only allowed inside functions. Notification: Performance of NFTyping.typeClassSections: time 0.001113/0.3142, allocations: 0.6197 MB / 0.5644 GB, free: 3.379 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.001209/0.3154, allocations: 1.518 MB / 0.5659 GB, free: 2.652 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003736/0.3158, allocations: 306.1 kB / 0.5662 GB, free: 2.5 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005657/0.3164, allocations: 0.5709 MB / 0.5667 GB, free: 2.242 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007278/0.3171, allocations: 0.7582 MB / 0.5674 GB, free: 1.902 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001439/0.3173, allocations: 59.28 kB / 0.5675 GB, free: 1.902 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003979/0.3177, allocations: 191.8 kB / 0.5677 GB, free: 1.859 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000226/0.3179, allocations: 262.1 kB / 0.5679 GB, free: 1.711 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004579/0.3184, allocations: 0.6113 MB / 0.5685 GB, free: 1.312 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001508/0.3199, allocations: 1.582 MB / 0.5701 GB, free: 0.7227 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.469e-06/0.3199, allocations: 0 / 0.5701 GB, free: 0.7227 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.192e-06/0.3199, allocations: 0 / 0.5701 GB, free: 0.7227 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.838e-05/0.3199, allocations: 1.125 kB / 0.5701 GB, free: 0.7227 MB / 378.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.007513/0.3275, allocations: 2.45 MB / 0.5725 GB, free: 15.59 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.539e-05/0.3275, allocations: 9.125 kB / 0.5725 GB, free: 15.59 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001777/0.3277, allocations: 129.5 kB / 0.5726 GB, free: 15.5 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004814/0.3325, allocations: 0.7771 MB / 0.5734 GB, free: 15.34 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001352/0.3339, allocations: 0.9013 MB / 0.5742 GB, free: 14.74 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002573/0.3341, allocations: 262.2 kB / 0.5745 GB, free: 14.52 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001672/0.3343, allocations: 90.7 kB / 0.5746 GB, free: 14.48 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002625/0.337, allocations: 1.419 MB / 0.576 GB, free: 13.86 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.759e-05/0.337, allocations: 1.188 kB / 0.576 GB, free: 13.86 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.153e-05/0.3371, allocations: 34.75 kB / 0.576 GB, free: 13.84 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.78e-05/0.3371, allocations: 18.44 kB / 0.576 GB, free: 13.84 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001982/0.3391, allocations: 0.994 MB / 0.577 GB, free: 13.37 MB / 394.7 MB Warning: The model contains alias variables with redundant start and/or conflicting 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.005643/0.3447, allocations: 3.686 MB / 0.5806 GB, free: 10.36 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007256/0.352, allocations: 2.576 MB / 0.5831 GB, free: 8.867 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001427/0.3535, allocations: 0.765 MB / 0.5839 GB, free: 8.469 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001137/0.3536, allocations: 20.84 kB / 0.5839 GB, free: 8.461 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001408/0.355, allocations: 0.7574 MB / 0.5846 GB, free: 7.984 MB / 394.7 MB Notification: Performance of pre-optimization done (n=115): time 2.886e-06/0.355, allocations: 1.156 kB / 0.5846 GB, free: 7.984 MB / 394.7 MB Notification: Performance of matching and sorting (n=115): time 0.02605/0.3811, allocations: 7.178 MB / 0.5916 GB, free: 4.277 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001215/0.3812, allocations: 182.9 kB / 0.5918 GB, free: 4.062 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001604/0.3828, allocations: 1.099 MB / 0.5929 GB, free: 2.949 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001223/0.383, allocations: 49.7 kB / 0.5929 GB, free: 2.895 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000347/0.3833, allocations: 477.2 kB / 0.5934 GB, free: 2.422 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003175/0.3836, allocations: 331.6 kB / 0.5937 GB, free: 2.094 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002004/0.3839, allocations: 161.6 kB / 0.5938 GB, free: 1.93 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 8.331e-05/0.3839, allocations: 305.1 kB / 0.5941 GB, free: 1.629 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001442/0.3854, allocations: 0.7496 MB / 0.5949 GB, free: 0.8789 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001646/0.387, allocations: 1.096 MB / 0.5959 GB, free: 15.65 MB / 410.7 MB Error: Initialization problem is structural singular. Please, check the initial conditions. 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.0209/0.408, allocations: 5.968 MB / 0.6018 GB, free: 9.469 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.142e-05/0.408, allocations: 4 kB / 0.6018 GB, free: 9.465 MB / 410.7 MB Notification: Performance of matching and sorting (n=216) (initialization): time 0.01277/0.4208, allocations: 4.52 MB / 0.6062 GB, free: 4.914 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.987e-05/0.4208, allocations: 67.39 kB / 0.6062 GB, free: 4.836 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.506e-05/0.4209, allocations: 12 kB / 0.6063 GB, free: 4.824 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005734/0.4266, allocations: 1.63 MB / 0.6079 GB, free: 3.188 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001205/0.4278, allocations: 303.5 kB / 0.6081 GB, free: 2.891 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01943/0.4473, allocations: 9.633 MB / 0.6175 GB, free: 8.969 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001874/0.4492, allocations: 210.6 kB / 0.6177 GB, free: 8.762 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002008/0.4494, allocations: 67.97 kB / 0.6178 GB, free: 8.695 MB / 426.7 MB Warning: Assuming fixed start value for the following 3 variables: order2.delta:VARIABLE(flow=false start = order2.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order4.delta:VARIABLE(flow=false start = order4.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order4.e1q:VARIABLE(start = order4.e1q0 unit = "1" fixed = true ) "q-axis transient voltage" 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 = aVRTypeII.simpleLagLim.y_start order4.delta0 = Modelica.Math.atan3(order4.Vt0.im + (order4.ra * order4.I0.im + order4.xq0 * order4.I0.re) * order4.Z_MBtoSB, order4.Vt0.re + (order4.ra * order4.I0.re - order4.xq0 * order4.I0.im) * order4.Z_MBtoSB, 0.0). Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 4 (aVRTypeII.firstOrder2.y,aVRTypeII.ExcitationSystem.x_scaled[1],aVRTypeII.simpleLagLim.state,aVRTypeII.derivativeBlock.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (179): * Single equations (assignments): 175 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(18,13,25.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0008139/0.4502, allocations: 368 kB / 0.6182 GB, free: 8.324 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001956/0.4522, allocations: 0.6689 MB / 0.6188 GB, free: 7.641 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01282/0.465, allocations: 4.148 MB / 0.6229 GB, free: 3.465 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.731e-05/0.4651, allocations: 15.94 kB / 0.6229 GB, free: 3.449 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.205e-05/0.4651, allocations: 11.98 kB / 0.6229 GB, free: 3.438 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.525e-05/0.4651, allocations: 3.984 kB / 0.6229 GB, free: 3.434 MB / 426.7 MB Warning: The model contains alias variables with redundant start and/or conflicting 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.01456/0.4797, allocations: 5.689 MB / 0.6285 GB, free: 13.63 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.625e-06/0.4797, allocations: 7.969 kB / 0.6285 GB, free: 13.62 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005114/0.4802, allocations: 107.8 kB / 0.6286 GB, free: 13.52 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005694/0.4859, allocations: 1.724 MB / 0.6302 GB, free: 11.79 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001093/0.486, allocations: 24 kB / 0.6303 GB, free: 11.76 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02099/0.507, allocations: 11.14 MB / 0.6411 GB, free: 220 kB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.5071, allocations: 0 / 0.6411 GB, free: 220 kB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01527/0.5223, allocations: 5.107 MB / 0.6461 GB, free: 11.06 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005015/0.5229, allocations: 239.2 kB / 0.6464 GB, free: 10.8 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002813/0.5232, allocations: 24.09 kB / 0.6464 GB, free: 10.78 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001296/0.5245, allocations: 115.9 kB / 0.6465 GB, free: 10.67 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005553/0.525, allocations: 184.5 kB / 0.6467 GB, free: 10.49 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.469e-05/0.5251, allocations: 39.94 kB / 0.6467 GB, free: 10.45 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001102/0.5262, allocations: 0.7316 MB / 0.6474 GB, free: 9.711 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.5e-07/0.5263, allocations: 0 / 0.6474 GB, free: 9.711 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002047/0.5283, allocations: 499.5 kB / 0.6479 GB, free: 9.223 MB / 458.7 MB 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 () * Number of clocked states: 4 (aVRTypeII.ExcitationSystem.x_scaled[1],aVRTypeII.derivativeBlock.x,aVRTypeII.firstOrder2.y,aVRTypeII.simpleLagLim.state) * 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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (20,12,23.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,17)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01501/0.5433, allocations: 5.722 MB / 0.6535 GB, free: 3.445 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.006138/0.5495, allocations: 2.75 MB / 0.6562 GB, free: 0.6406 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.5495, allocations: 0 / 0.6562 GB, free: 0.6406 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003749/0.5533, allocations: 1.379 MB / 0.6575 GB, free: 15.23 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001809/0.5551, allocations: 0.6075 MB / 0.6581 GB, free: 14.6 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02543/0.5805, allocations: 11.48 MB / 0.6693 GB, free: 2.645 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006508/0.5812, allocations: 1.168 MB / 0.6705 GB, free: 1.445 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.000451/0.5817, allocations: 124.8 kB / 0.6706 GB, free: 1.32 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006151/0.5823, allocations: 487.3 kB / 0.6711 GB, free: 0.8438 MB / 474.7 MB Notification: Performance of SimCode: time 4.21e-07/0.5823, allocations: 0 / 0.6711 GB, free: 0.8438 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04928/0.6316, allocations: 31.84 MB / 0.7022 GB, free: 1.293 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001975/0.6318, allocations: 282.2 kB / 0.7024 GB, free: 0.9141 MB / 0.4948 GB Error: Error building simulator. Build log: clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality -I. -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -DOMC_FMI_RUNTIME=1 -DCMINPACK_NO_DLL=1 -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 ./openmodelica.h:71: In file included from ./gc/../openmodelica_types.h:161: ./gc/omc_gc.h:223:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:227:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ 2 warnings generated. clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality -I. -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -DOMC_FMI_RUNTIME=1 -DCMINPACK_NO_DLL=1 -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:2: In file included from ./OpenIPSL_release_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_functions.h:3: In file included from ./meta/meta_modelica.h:49: ./gc/omc_gc.h:223:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:227:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ 2 warnings generated. clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality -I. -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -DOMC_FMI_RUNTIME=1 -DCMINPACK_NO_DLL=1 -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:4: In file included from ./meta/meta_modelica.h:49: ./gc/omc_gc.h:223:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:227:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ 2 warnings generated. clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality -I. -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -DOMC_FMI_RUNTIME=1 -DCMINPACK_NO_DLL=1 -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 ./openmodelica.h:71: In file included from ./gc/../openmodelica_types.h:161: ./gc/omc_gc.h:223:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:227:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ 2 warnings generated. clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality -I. -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -DOMC_FMI_RUNTIME=1 -DCMINPACK_NO_DLL=1 -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 ./openmodelica.h:71: In file included from ./gc/../openmodelica_types.h:161: ./gc/omc_gc.h:223:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:227: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:547:46: error: use of undeclared identifier 'baseClockIndex'; did you mean 'clockIndex'? res[0] = (data->simulationInfo->baseClocks[baseClockIndex].subClocks[subClockIndex].stats.previousInterval) * (((data->simulationInfo->baseClocks[baseClockIndex].subClocks[subClockIndex].stats.count == 1)?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 */) ; ^~~~~~~~~~~~~~ clockIndex OpenIPSL_release_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_02nls.c:480:19: note: 'clockIndex' declared here int i;const int clockIndex = 1; ^ OpenIPSL_release_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_02nls.c:547:72: error: use of undeclared identifier 'subClockIndex'; did you mean 'clockIndex'? res[0] = (data->simulationInfo->baseClocks[baseClockIndex].subClocks[subClockIndex].stats.previousInterval) * (((data->simulationInfo->baseClocks[baseClockIndex].subClocks[subClockIndex].stats.count == 1)?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 */) ; ^~~~~~~~~~~~~ clockIndex OpenIPSL_release_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_02nls.c:480:19: note: 'clockIndex' declared here int i;const int clockIndex = 1; ^ OpenIPSL_release_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_02nls.c:547:149: error: use of undeclared identifier 'baseClockIndex'; did you mean 'clockIndex'? res[0] = (data->simulationInfo->baseClocks[baseClockIndex].subClocks[subClockIndex].stats.previousInterval) * (((data->simulationInfo->baseClocks[baseClockIndex].subClocks[subClockIndex].stats.count == 1)?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 */) ; ^~~~~~~~~~~~~~ clockIndex OpenIPSL_release_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_02nls.c:480:19: note: 'clockIndex' declared here int i;const int clockIndex = 1; ^ OpenIPSL_release_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_02nls.c:547:175: error: use of undeclared identifier 'subClockIndex'; did you mean 'clockIndex'? res[0] = (data->simulationInfo->baseClocks[baseClockIndex].subClocks[subClockIndex].stats.previousInterval) * (((data->simulationInfo->baseClocks[baseClockIndex].subClocks[subClockIndex].stats.count == 1)?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 */) ; ^~~~~~~~~~~~~ clockIndex OpenIPSL_release_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_02nls.c:480:19: note: 'clockIndex' declared here int i;const int clockIndex = 1; ^ OpenIPSL_release_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_02nls.c:551:46: error: use of undeclared identifier 'baseClockIndex'; did you mean 'clockIndex'? res[2] = (data->simulationInfo->baseClocks[baseClockIndex].subClocks[subClockIndex].stats.previousInterval) * (((data->simulationInfo->baseClocks[baseClockIndex].subClocks[subClockIndex].stats.count == 1)?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 */) ; ^~~~~~~~~~~~~~ clockIndex OpenIPSL_release_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_02nls.c:480:19: note: 'clockIndex' declared here int i;const int clockIndex = 1; ^ OpenIPSL_release_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_02nls.c:551:72: error: use of undeclared identifier 'subClockIndex'; did you mean 'clockIndex'? res[2] = (data->simulationInfo->baseClocks[baseClockIndex].subClocks[subClockIndex].stats.previousInterval) * (((data->simulationInfo->baseClocks[baseClockIndex].subClocks[subClockIndex].stats.count == 1)?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 */) ; ^~~~~~~~~~~~~ clockIndex OpenIPSL_release_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_02nls.c:480:19: note: 'clockIndex' declared here int i;const int clockIndex = 1; ^ OpenIPSL_release_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_02nls.c:551:149: error: use of undeclared identifier 'baseClockIndex'; did you mean 'clockIndex'? res[2] = (data->simulationInfo->baseClocks[baseClockIndex].subClocks[subClockIndex].stats.previousInterval) * (((data->simulationInfo->baseClocks[baseClockIndex].subClocks[subClockIndex].stats.count == 1)?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 */) ; ^~~~~~~~~~~~~~ clockIndex OpenIPSL_release_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_02nls.c:480:19: note: 'clockIndex' declared here int i;const int clockIndex = 1; ^ OpenIPSL_release_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_02nls.c:551:175: error: use of undeclared identifier 'subClockIndex'; did you mean 'clockIndex'? res[2] = (data->simulationInfo->baseClocks[baseClockIndex].subClocks[subClockIndex].stats.previousInterval) * (((data->simulationInfo->baseClocks[baseClockIndex].subClocks[subClockIndex].stats.count == 1)?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 */) ; ^~~~~~~~~~~~~ clockIndex OpenIPSL_release_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_02nls.c:480:19: note: 'clockIndex' declared here int i;const int clockIndex = 1; ^ OpenIPSL_release_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_02nls.c:553:46: error: use of undeclared identifier 'baseClockIndex'; did you mean 'clockIndex'? res[3] = (data->simulationInfo->baseClocks[baseClockIndex].subClocks[subClockIndex].stats.previousInterval) * (((data->simulationInfo->baseClocks[baseClockIndex].subClocks[subClockIndex].stats.count == 1)?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 */) ; ^~~~~~~~~~~~~~ clockIndex OpenIPSL_release_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_02nls.c:480:19: note: 'clockIndex' declared here int i;const int clockIndex = 1; ^ OpenIPSL_release_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_02nls.c:553:72: error: use of undeclared identifier 'subClockIndex'; did you mean 'clockIndex'? res[3] = (data->simulationInfo->baseClocks[baseClockIndex].subClocks[subClockIndex].stats.previousInterval) * (((data->simulationInfo->baseClocks[baseClockIndex].subClocks[subClockIndex].stats.count == 1)?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 */) ; ^~~~~~~~~~~~~ clockIndex OpenIPSL_release_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_02nls.c:480:19: note: 'clockIndex' declared here int i;const int clockIndex = 1; ^ OpenIPSL_release_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_02nls.c:553:149: error: use of undeclared identifier 'baseClockIndex'; did you mean 'clockIndex'? res[3] = (data->simulationInfo->baseClocks[baseClockIndex].subClocks[subClockIndex].stats.previousInterval) * (((data->simulationInfo->baseClocks[baseClockIndex].subClocks[subClockIndex].stats.count == 1)?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 */) ; ^~~~~~~~~~~~~~ clockIndex OpenIPSL_release_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_02nls.c:480:19: note: 'clockIndex' declared here int i;const int clockIndex = 1; ^ OpenIPSL_release_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_02nls.c:553:175: error: use of undeclared identifier 'subClockIndex'; did you mean 'clockIndex'? res[3] = (data->simulationInfo->baseClocks[baseClockIndex].subClocks[subClockIndex].stats.previousInterval) * (((data->simulationInfo->baseClocks[baseClockIndex].subClocks[subClockIndex].stats.count == 1)?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 */) ; ^~~~~~~~~~~~~ clockIndex OpenIPSL_release_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_02nls.c:480:19: note: 'clockIndex' declared here int i;const int clockIndex = 1; ^ OpenIPSL_release_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_02nls.c:627:52: warning: incompatible pointer types assigning to 'int (*)(void *, threadData_t *, ANALYTIC_JACOBIAN *)' (aka 'int (*)(void *, struct threadData_s *, struct ANALYTIC_JACOBIAN *)') from 'int (DATA *, threadData_t *, ANALYTIC_JACOBIAN *)' (aka 'int (struct DATA *, struct threadData_s *, struct ANALYTIC_JACOBIAN *)') [-Wincompatible-pointer-types] nonLinearSystemData[1].initialAnalyticalJacobian = OpenIPSL_release_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_initialAnalyticJacobianNLSJac0; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3 warnings and 12 errors generated. make: *** [: OpenIPSL_release_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_02nls.o] Error 1