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.07713/0.07713, allocations: 12.21 MB / 27.33 MB, free: 1.441 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.0009725/0.0009725, allocations: 119.4 kB / 30.84 MB, free: 4.711 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.354/1.354, allocations: 205.1 MB / 239.3 MB, free: 10.96 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.001549/0.001549, allocations: 196.4 kB / 289.5 MB, free: 15.88 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.4599/0.4599, allocations: 78.51 MB / 418 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.002801/0.002801, allocations: 135.8 kB / 498.3 MB, free: 0.5234 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3779/0.3807, allocations: 68.03 MB / 0.5531 GB, free: 37.84 MB / 414.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous): time 0.006714/0.3875, allocations: 7.104 MB / 0.56 GB, free: 32.67 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.004287/0.3918, allocations: 2.032 MB / 0.562 GB, free: 31.21 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009553/0.3928, allocations: 14.22 kB / 0.562 GB, free: 31.21 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000765/0.3936, allocations: 181.9 kB / 0.5622 GB, free: 31.14 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001769/0.3954, allocations: 0.7294 MB / 0.5629 GB, free: 30.66 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.00126/0.3967, allocations: 0.6164 MB / 0.5635 GB, free: 30.32 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001285/0.398, allocations: 1.514 MB / 0.565 GB, free: 29.6 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004134/0.3984, allocations: 299 kB / 0.5653 GB, free: 29.46 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006146/0.399, allocations: 0.6086 MB / 0.5659 GB, free: 29.18 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006206/0.3996, allocations: 0.79 MB / 0.5666 GB, free: 28.82 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000133/0.3998, allocations: 75.66 kB / 0.5667 GB, free: 28.82 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004358/0.4002, allocations: 197.8 kB / 0.5669 GB, free: 28.78 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002197/0.4004, allocations: 290.5 kB / 0.5672 GB, free: 28.61 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004293/0.4009, allocations: 0.6405 MB / 0.5678 GB, free: 28.19 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001144/0.402, allocations: 1.617 MB / 0.5694 GB, free: 27.47 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.402, allocations: 0 / 0.5694 GB, free: 27.47 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.4021, allocations: 0 / 0.5694 GB, free: 27.47 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.234e-05/0.4021, allocations: 2.625 kB / 0.5694 GB, free: 27.47 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.00834/0.4104, allocations: 2.711 MB / 0.572 GB, free: 26.19 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.2e-05/0.4105, allocations: 13.67 kB / 0.572 GB, free: 26.18 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001429/0.4106, allocations: 128.4 kB / 0.5722 GB, free: 26.09 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004655/0.4153, allocations: 0.7773 MB / 0.5729 GB, free: 25.93 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001442/0.4168, allocations: 0.9104 MB / 0.5738 GB, free: 25.32 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002308/0.417, allocations: 261.1 kB / 0.5741 GB, free: 25.1 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001466/0.4172, allocations: 86.59 kB / 0.5741 GB, free: 25.07 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002473/0.4196, allocations: 1.405 MB / 0.5755 GB, free: 24.5 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.908e-05/0.4197, allocations: 0 / 0.5755 GB, free: 24.5 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.214e-05/0.4198, allocations: 32.44 kB / 0.5755 GB, free: 24.48 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.572e-05/0.4198, allocations: 24.03 kB / 0.5756 GB, free: 24.47 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002025/0.4218, allocations: 0.9883 MB / 0.5765 GB, free: 24.14 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.006654/0.4285, allocations: 3.699 MB / 0.5801 GB, free: 21.91 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008035/0.4365, allocations: 2.568 MB / 0.5827 GB, free: 20.91 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001809/0.4384, allocations: 0.7733 MB / 0.5834 GB, free: 20.6 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001226/0.4385, allocations: 23.52 kB / 0.5834 GB, free: 20.59 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001565/0.4401, allocations: 0.7484 MB / 0.5842 GB, free: 20.29 MB / 414.1 MB Notification: Performance of pre-optimization done (n=115): time 3.596e-06/0.4401, allocations: 1.375 kB / 0.5842 GB, free: 20.29 MB / 414.1 MB Notification: Performance of matching and sorting (n=115): time 0.0292/0.4693, allocations: 7.179 MB / 0.5912 GB, free: 17.23 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001506/0.4695, allocations: 196.1 kB / 0.5914 GB, free: 17.02 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002268/0.4718, allocations: 1.093 MB / 0.5924 GB, free: 16.41 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002155/0.472, allocations: 46.83 kB / 0.5925 GB, free: 16.36 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003753/0.4724, allocations: 482.2 kB / 0.5929 GB, free: 15.94 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004243/0.4728, allocations: 329.2 kB / 0.5932 GB, free: 15.66 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007637/0.4736, allocations: 310.9 kB / 0.5935 GB, free: 15.47 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 4.99e-05/0.4737, allocations: 302.2 kB / 0.5938 GB, free: 15.18 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001605/0.4753, allocations: 0.7496 MB / 0.5946 GB, free: 14.8 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001794/0.4771, allocations: 1.101 MB / 0.5956 GB, free: 14 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.02146/0.4986, allocations: 5.969 MB / 0.6015 GB, free: 8.441 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.763e-05/0.4986, allocations: 4 kB / 0.6015 GB, free: 8.438 MB / 414.1 MB Notification: Performance of matching and sorting (n=216) (initialization): time 0.01317/0.5118, allocations: 4.528 MB / 0.6059 GB, free: 3.879 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.907e-05/0.5119, allocations: 67.39 kB / 0.606 GB, free: 3.801 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.974e-05/0.512, allocations: 12 kB / 0.606 GB, free: 3.789 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005573/0.5175, allocations: 1.63 MB / 0.6076 GB, free: 2.152 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001289/0.5189, allocations: 299.5 kB / 0.6078 GB, free: 1.859 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0214/0.5403, allocations: 9.636 MB / 0.6173 GB, free: 7.941 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002086/0.5424, allocations: 210.6 kB / 0.6175 GB, free: 7.734 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003058/0.5427, allocations: 71.91 kB / 0.6175 GB, free: 7.664 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.001026/0.5438, allocations: 360.5 kB / 0.6179 GB, free: 7.297 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002188/0.546, allocations: 0.6609 MB / 0.6185 GB, free: 6.621 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01335/0.5593, allocations: 4.153 MB / 0.6226 GB, free: 2.445 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.257e-05/0.5594, allocations: 15.94 kB / 0.6226 GB, free: 2.43 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.497e-05/0.5594, allocations: 12.06 kB / 0.6226 GB, free: 2.418 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-05/0.5595, allocations: 11.98 kB / 0.6226 GB, free: 2.406 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.01583/0.5753, allocations: 5.685 MB / 0.6282 GB, free: 12.61 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.249e-05/0.5754, allocations: 3.938 kB / 0.6282 GB, free: 12.61 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006441/0.576, allocations: 107.9 kB / 0.6283 GB, free: 12.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005895/0.5819, allocations: 1.719 MB / 0.6299 GB, free: 10.78 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002326/0.5822, allocations: 27.98 kB / 0.63 GB, free: 10.75 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02222/0.6044, allocations: 11.15 MB / 0.6409 GB, free: 15.18 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.484e-06/0.6045, allocations: 0 / 0.6409 GB, free: 15.18 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01571/0.6202, allocations: 5.119 MB / 0.6459 GB, free: 10.02 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005914/0.6208, allocations: 235.2 kB / 0.6461 GB, free: 9.766 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004572/0.6213, allocations: 24 kB / 0.6461 GB, free: 9.742 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001449/0.6228, allocations: 111.9 kB / 0.6462 GB, free: 9.633 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006343/0.6234, allocations: 180.6 kB / 0.6464 GB, free: 9.457 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001476/0.6236, allocations: 32 kB / 0.6464 GB, free: 9.426 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001382/0.625, allocations: 0.7316 MB / 0.6471 GB, free: 8.688 MB / 462.1 MB Notification: Performance of sort global known variables: time 4.21e-07/0.625, allocations: 0 / 0.6471 GB, free: 8.688 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002334/0.6273, allocations: 495.6 kB / 0.6476 GB, free: 8.203 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.01614/0.6435, allocations: 5.729 MB / 0.6532 GB, free: 2.418 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007177/0.6507, allocations: 2.75 MB / 0.6559 GB, free: 15.61 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.931e-06/0.6507, allocations: 4.625 kB / 0.6559 GB, free: 15.61 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004007/0.6548, allocations: 1.383 MB / 0.6572 GB, free: 14.2 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002584/0.6574, allocations: 0.6026 MB / 0.6578 GB, free: 13.56 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02871/0.6861, allocations: 11.51 MB / 0.6691 GB, free: 1.598 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00101/0.6871, allocations: 1.164 MB / 0.6702 GB, free: 412 kB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0006069/0.6878, allocations: 120.9 kB / 0.6703 GB, free: 288 kB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008632/0.6887, allocations: 483.3 kB / 0.6708 GB, free: 15.8 MB / 494.1 MB Notification: Performance of SimCode: time 1.032e-06/0.6887, allocations: 0 / 0.6708 GB, free: 15.8 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0617/0.7504, allocations: 32.42 MB / 0.7024 GB, free: 15.54 MB / 0.5137 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002839/0.7507, allocations: 281.1 kB / 0.7027 GB, free: 15.16 MB / 0.5137 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:551: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:482: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:551: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:482: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:551: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:482: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:551: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:482: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:555: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:482: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:555: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:482: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:555: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:482: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:555: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:482: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:557: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:482: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:557: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:482: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:557: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:482: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:557: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:482: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