Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/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/Modelica 3.2.3+maint.om/package.mo", uses=false) 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/OpenIPSL 2.0.0/package.mo", uses=false) Using package OpenIPSL with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/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) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/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_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo) Running command: "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous,fileNamePrefix="OpenIPSL_2_0_0_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_2_0_0_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/Modelica_Synchronous 0.93.0/package.mo): time 0.1353/0.1353, allocations: 12.2 MB / 27.43 MB, free: 1.387 MB / 19.63 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001284/0.001284, allocations: 119.4 kB / 30.94 MB, free: 4.664 MB / 26.18 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.703/1.703, allocations: 205.1 MB / 239.4 MB, free: 10.93 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001478/0.001478, allocations: 184.5 kB / 289.6 MB, free: 15.86 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.5605/0.5605, allocations: 78.5 MB / 418.1 MB, free: 31.78 MB / 318.1 MB Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: OpenIPSL requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002663/0.002663, allocations: 140.8 kB / 498.5 MB, free: 464 kB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5787/0.5814, allocations: 68.03 MB / 0.5533 GB, free: 37.64 MB / 414.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous): time 0.008616/0.5901, allocations: 7.119 MB / 0.5602 GB, free: 32.45 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.005837/0.596, allocations: 2.008 MB / 0.5622 GB, free: 31.01 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00137/0.5974, allocations: 13.97 kB / 0.5622 GB, free: 31.01 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009602/0.5984, allocations: 190.9 kB / 0.5624 GB, free: 30.93 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00229/0.6008, allocations: 0.7019 MB / 0.5631 GB, free: 30.48 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/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.001564/0.6023, allocations: 0.6139 MB / 0.5637 GB, free: 30.14 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001981/0.6043, allocations: 1.6 MB / 0.5652 GB, free: 29.35 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005604/0.6049, allocations: 343.2 kB / 0.5655 GB, free: 29.2 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008602/0.6058, allocations: 0.6623 MB / 0.5662 GB, free: 28.86 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009259/0.6067, allocations: 0.8341 MB / 0.567 GB, free: 28.46 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002179/0.6069, allocations: 124.6 kB / 0.5671 GB, free: 28.46 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006255/0.6076, allocations: 272.5 kB / 0.5674 GB, free: 28.41 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003277/0.6079, allocations: 336.2 kB / 0.5677 GB, free: 28.2 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006644/0.6086, allocations: 0.6846 MB / 0.5684 GB, free: 27.73 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001859/0.6104, allocations: 1.662 MB / 0.57 GB, free: 26.98 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.716e-06/0.6105, allocations: 0 / 0.57 GB, free: 26.98 MB / 414.1 MB Notification: Performance of FrontEnd: time 4.849e-06/0.6105, allocations: 0 / 0.57 GB, free: 26.98 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.88e-05/0.6105, allocations: 3.938 kB / 0.57 GB, free: 26.98 MB / 414.1 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.008968/0.6195, allocations: 2.708 MB / 0.5727 GB, free: 25.7 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.429e-05/0.6196, allocations: 14.45 kB / 0.5727 GB, free: 25.69 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002001/0.6198, allocations: 139.9 kB / 0.5728 GB, free: 25.59 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004984/0.6248, allocations: 0.7785 MB / 0.5736 GB, free: 25.43 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00181/0.6266, allocations: 0.9017 MB / 0.5744 GB, free: 24.83 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003242/0.6269, allocations: 260.3 kB / 0.5747 GB, free: 24.61 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001962/0.6271, allocations: 82.47 kB / 0.5748 GB, free: 24.58 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003015/0.6302, allocations: 1.406 MB / 0.5761 GB, free: 24.01 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.394e-05/0.6302, allocations: 0 / 0.5761 GB, free: 24.01 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001045/0.6303, allocations: 37.84 kB / 0.5762 GB, free: 23.98 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.99e-05/0.6303, allocations: 24.89 kB / 0.5762 GB, free: 23.97 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00244/0.6328, allocations: 0.9949 MB / 0.5772 GB, free: 23.64 MB / 414.1 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.008459/0.6413, allocations: 3.691 MB / 0.5808 GB, free: 21.41 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008923/0.6502, allocations: 2.573 MB / 0.5833 GB, free: 20.41 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002089/0.6524, allocations: 0.7697 MB / 0.584 GB, free: 20.11 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000149/0.6525, allocations: 19.06 kB / 0.5841 GB, free: 20.1 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002032/0.6546, allocations: 0.7621 MB / 0.5848 GB, free: 19.79 MB / 414.1 MB Notification: Performance of pre-optimization done (n=115): time 5.521e-06/0.6546, allocations: 0 / 0.5848 GB, free: 19.79 MB / 414.1 MB Notification: Performance of matching and sorting (n=115): time 0.03269/0.6873, allocations: 7.178 MB / 0.5918 GB, free: 16.78 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003031/0.6877, allocations: 193 kB / 0.592 GB, free: 16.58 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003311/0.691, allocations: 1.092 MB / 0.5931 GB, free: 15.96 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006812/0.6917, allocations: 50.73 kB / 0.5931 GB, free: 15.91 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005908/0.6923, allocations: 482.4 kB / 0.5936 GB, free: 15.49 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007276/0.6931, allocations: 329.8 kB / 0.5939 GB, free: 15.21 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007871/0.6939, allocations: 311 kB / 0.5942 GB, free: 15.02 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001343/0.694, allocations: 301.1 kB / 0.5945 GB, free: 14.72 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002108/0.6961, allocations: 0.7548 MB / 0.5952 GB, free: 14.34 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002438/0.6986, allocations: 1.105 MB / 0.5963 GB, free: 13.54 MB / 414.1 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.0259/0.7245, allocations: 5.973 MB / 0.6021 GB, free: 7.945 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.182e-05/0.7246, allocations: 4 kB / 0.6021 GB, free: 7.941 MB / 414.1 MB Notification: Performance of matching and sorting (n=216) (initialization): time 0.01516/0.7398, allocations: 4.532 MB / 0.6065 GB, free: 3.379 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001499/0.74, allocations: 63.41 kB / 0.6066 GB, free: 3.305 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.611e-05/0.7401, allocations: 8 kB / 0.6066 GB, free: 3.297 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006598/0.7467, allocations: 1.634 MB / 0.6082 GB, free: 1.656 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001769/0.7486, allocations: 303.5 kB / 0.6085 GB, free: 1.359 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02842/0.777, allocations: 10.5 MB / 0.6188 GB, free: 6.57 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003548/0.7806, allocations: 202.8 kB / 0.6189 GB, free: 6.371 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004228/0.7811, allocations: 71.98 kB / 0.619 GB, free: 6.301 MB / 430.1 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 system: $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.001622/0.7828, allocations: 355.5 kB / 0.6194 GB, free: 5.941 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00282/0.7856, allocations: 0.669 MB / 0.62 GB, free: 5.258 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01606/0.8017, allocations: 4.149 MB / 0.6241 GB, free: 1.082 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.484e-05/0.8018, allocations: 12 kB / 0.6241 GB, free: 1.07 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.028e-05/0.8018, allocations: 8 kB / 0.6241 GB, free: 1.062 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.294e-05/0.8019, allocations: 11.92 kB / 0.6241 GB, free: 1.051 MB / 430.1 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.01789/0.8198, allocations: 5.697 MB / 0.6297 GB, free: 11.24 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.372e-05/0.8199, allocations: 0 / 0.6297 GB, free: 11.24 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007587/0.8207, allocations: 111.8 kB / 0.6298 GB, free: 11.13 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006444/0.8271, allocations: 1.724 MB / 0.6314 GB, free: 9.398 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002632/0.8274, allocations: 27.98 kB / 0.6315 GB, free: 9.371 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02714/0.8546, allocations: 12.19 MB / 0.6434 GB, free: 12.75 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.8546, allocations: 0 / 0.6434 GB, free: 12.75 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01756/0.8722, allocations: 5.126 MB / 0.6484 GB, free: 7.586 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001048/0.8734, allocations: 231.2 kB / 0.6486 GB, free: 7.34 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000264/0.8736, allocations: 35.86 kB / 0.6486 GB, free: 7.305 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001372/0.875, allocations: 111.9 kB / 0.6487 GB, free: 7.195 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007731/0.8758, allocations: 172.8 kB / 0.6489 GB, free: 7.027 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001205/0.8759, allocations: 35.98 kB / 0.6489 GB, free: 6.992 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001411/0.8773, allocations: 0.7317 MB / 0.6497 GB, free: 6.254 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.8773, allocations: 0 / 0.6497 GB, free: 6.254 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0023/0.8797, allocations: 499.6 kB / 0.6501 GB, free: 5.766 MB / 462.1 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.01761/0.8973, allocations: 5.721 MB / 0.6557 GB, free: 15.98 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.008427/0.9058, allocations: 2.792 MB / 0.6584 GB, free: 13.13 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 9.067e-06/0.9058, allocations: 0 / 0.6584 GB, free: 13.13 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004539/0.9104, allocations: 1.388 MB / 0.6598 GB, free: 11.72 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002354/0.9128, allocations: 0.6054 MB / 0.6604 GB, free: 11.09 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02978/0.9426, allocations: 11.51 MB / 0.6716 GB, free: 15.12 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001116/0.9437, allocations: 1.16 MB / 0.6728 GB, free: 13.93 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0005379/0.9443, allocations: 116.9 kB / 0.6729 GB, free: 13.81 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008284/0.9451, allocations: 487.3 kB / 0.6733 GB, free: 13.34 MB / 494.1 MB Notification: Performance of SimCode: time 1.322e-06/0.9451, allocations: 0 / 0.6733 GB, free: 13.34 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08032/1.025, allocations: 33.81 MB / 0.7064 GB, free: 11.7 MB / 0.5138 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002973/1.026, allocations: 280.5 kB / 0.7066 GB, free: 11.32 MB / 0.5138 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_2_0_0_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous.o OpenIPSL_2_0_0_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous.c In file included from OpenIPSL_2_0_0_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous.c:7: In file included from ./OpenIPSL_2_0_0_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_2_0_0_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_functions.o OpenIPSL_2_0_0_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_functions.c In file included from OpenIPSL_2_0_0_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_functions.c:2: In file included from ./OpenIPSL_2_0_0_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_2_0_0_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_records.o OpenIPSL_2_0_0_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_records.c In file included from OpenIPSL_2_0_0_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_2_0_0_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_01exo.o OpenIPSL_2_0_0_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_01exo.c In file included from OpenIPSL_2_0_0_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_01exo.c:2: In file included from ./OpenIPSL_2_0_0_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_2_0_0_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_02nls.o OpenIPSL_2_0_0_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_02nls.c In file included from OpenIPSL_2_0_0_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_02nls.c:2: In file included from ./OpenIPSL_2_0_0_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_2_0_0_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_02nls.c:591: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_2_0_0_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_02nls.c:522:21: note: 'clockIndex' declared here int i,j;const int clockIndex = 1; ^ OpenIPSL_2_0_0_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_02nls.c:591: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_2_0_0_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_02nls.c:522:21: note: 'clockIndex' declared here int i,j;const int clockIndex = 1; ^ OpenIPSL_2_0_0_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_02nls.c:591: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_2_0_0_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_02nls.c:522:21: note: 'clockIndex' declared here int i,j;const int clockIndex = 1; ^ OpenIPSL_2_0_0_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_02nls.c:591: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_2_0_0_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_02nls.c:522:21: note: 'clockIndex' declared here int i,j;const int clockIndex = 1; ^ OpenIPSL_2_0_0_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_02nls.c:595: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_2_0_0_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_02nls.c:522:21: note: 'clockIndex' declared here int i,j;const int clockIndex = 1; ^ OpenIPSL_2_0_0_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_02nls.c:595: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_2_0_0_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_02nls.c:522:21: note: 'clockIndex' declared here int i,j;const int clockIndex = 1; ^ OpenIPSL_2_0_0_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_02nls.c:595: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_2_0_0_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_02nls.c:522:21: note: 'clockIndex' declared here int i,j;const int clockIndex = 1; ^ OpenIPSL_2_0_0_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_02nls.c:595: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_2_0_0_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_02nls.c:522:21: note: 'clockIndex' declared here int i,j;const int clockIndex = 1; ^ OpenIPSL_2_0_0_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_02nls.c:597: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_2_0_0_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_02nls.c:522:21: note: 'clockIndex' declared here int i,j;const int clockIndex = 1; ^ OpenIPSL_2_0_0_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_02nls.c:597: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_2_0_0_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_02nls.c:522:21: note: 'clockIndex' declared here int i,j;const int clockIndex = 1; ^ OpenIPSL_2_0_0_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_02nls.c:597: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_2_0_0_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_02nls.c:522:21: note: 'clockIndex' declared here int i,j;const int clockIndex = 1; ^ OpenIPSL_2_0_0_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_02nls.c:597: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_2_0_0_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_02nls.c:522:21: note: 'clockIndex' declared here int i,j;const int clockIndex = 1; ^ 2 warnings and 12 errors generated. make: *** [: OpenIPSL_2_0_0_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Discretized_Continuous_02nls.o] Error 1