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.08811/0.08811, allocations: 12.21 MB / 27.48 MB, free: 0.9219 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.0007845/0.0007846, allocations: 99.52 kB / 31 MB, free: 4.531 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.327/1.327, allocations: 205.4 MB / 239.8 MB, free: 11.46 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.001015/0.001015, allocations: 188 kB / 291 MB, free: 13.3 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.446/0.446, allocations: 78.53 MB / 420.5 MB, free: 48.66 MB / 334.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.0008633/0.0008633, allocations: 33.22 kB / 0.4902 GB, free: 2.141 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3753/0.3762, allocations: 69.22 MB / 0.5578 GB, free: 42.89 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous): time 0.006522/0.3828, allocations: 6.637 MB / 0.5643 GB, free: 40.3 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.004512/0.3873, allocations: 2.021 MB / 0.5662 GB, free: 39.29 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007548/0.3881, allocations: 16.88 kB / 0.5663 GB, free: 39.28 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007093/0.3888, allocations: 185.1 kB / 0.5664 GB, free: 39.21 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001968/0.3908, allocations: 0.7148 MB / 0.5671 GB, free: 38.75 MB / 430.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.001403/0.3922, allocations: 0.6049 MB / 0.5677 GB, free: 38.42 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001621/0.3938, allocations: 1.516 MB / 0.5692 GB, free: 37.7 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004632/0.3943, allocations: 300.6 kB / 0.5695 GB, free: 37.55 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007459/0.3951, allocations: 0.5756 MB / 0.5701 GB, free: 37.29 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007526/0.3958, allocations: 0.7533 MB / 0.5708 GB, free: 36.96 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001414/0.396, allocations: 60.09 kB / 0.5709 GB, free: 36.96 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00049/0.3965, allocations: 186.2 kB / 0.571 GB, free: 36.92 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002079/0.3967, allocations: 266.7 kB / 0.5713 GB, free: 36.77 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000423/0.3971, allocations: 0.6387 MB / 0.5719 GB, free: 36.34 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00106/0.3982, allocations: 1.581 MB / 0.5735 GB, free: 35.75 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.3982, allocations: 0 / 0.5735 GB, free: 35.75 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3982, allocations: 3.938 kB / 0.5735 GB, free: 35.74 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.265e-05/0.3982, allocations: 0 / 0.5735 GB, free: 35.74 MB / 430.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.007375/0.4056, allocations: 2.507 MB / 0.5759 GB, free: 34.61 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.65e-05/0.4057, allocations: 16.64 kB / 0.5759 GB, free: 34.61 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000176/0.4059, allocations: 131.6 kB / 0.576 GB, free: 34.52 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004773/0.4106, allocations: 0.786 MB / 0.5768 GB, free: 34.36 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001387/0.412, allocations: 0.9015 MB / 0.5777 GB, free: 33.76 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002672/0.4123, allocations: 269.9 kB / 0.5779 GB, free: 33.54 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001675/0.4125, allocations: 95.88 kB / 0.578 GB, free: 33.5 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00253/0.415, allocations: 1.469 MB / 0.5795 GB, free: 32.92 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.079e-05/0.4151, allocations: 0 / 0.5795 GB, free: 32.92 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.381e-05/0.4152, allocations: 35.38 kB / 0.5795 GB, free: 32.89 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.46e-05/0.4152, allocations: 16.75 kB / 0.5795 GB, free: 32.89 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001912/0.4171, allocations: 1.062 MB / 0.5806 GB, free: 32.55 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 preOpt removeSimpleEquations (simulation): time 0.005156/0.4223, allocations: 3.766 MB / 0.5842 GB, free: 30.32 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007457/0.4297, allocations: 3.107 MB / 0.5873 GB, free: 29.26 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00139/0.4311, allocations: 0.8335 MB / 0.5881 GB, free: 28.95 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.338e-05/0.4312, allocations: 25.34 kB / 0.5881 GB, free: 28.94 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001342/0.4326, allocations: 0.8137 MB / 0.5889 GB, free: 28.62 MB / 430.1 MB Notification: Performance of pre-optimization done (n=115): time 3.095e-06/0.4326, allocations: 0 / 0.5889 GB, free: 28.62 MB / 430.1 MB Notification: Performance of matching and sorting (n=115): time 0.02933/0.4619, allocations: 8.693 MB / 0.5974 GB, free: 26.99 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001284/0.4621, allocations: 199.8 kB / 0.5976 GB, free: 26.78 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001861/0.464, allocations: 1.09 MB / 0.5987 GB, free: 26.33 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001919/0.4642, allocations: 47.03 kB / 0.5987 GB, free: 26.29 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003255/0.4645, allocations: 487.4 kB / 0.5992 GB, free: 25.9 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003392/0.4649, allocations: 332.3 kB / 0.5995 GB, free: 25.65 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002179/0.4651, allocations: 158.3 kB / 0.5996 GB, free: 25.57 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.471e-05/0.4652, allocations: 301.8 kB / 0.5999 GB, free: 25.28 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001713/0.4669, allocations: 0.8184 MB / 0.6007 GB, free: 24.99 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001862/0.4687, allocations: 1.16 MB / 0.6018 GB, free: 24.31 MB / 430.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.02357/0.4923, allocations: 6.4 MB / 0.6081 GB, free: 21.7 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.278e-05/0.4924, allocations: 2.781 kB / 0.6081 GB, free: 21.7 MB / 430.1 MB Notification: Performance of matching and sorting (n=216) (initialization): time 0.01433/0.5067, allocations: 5.367 MB / 0.6133 GB, free: 18.35 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.308e-05/0.5068, allocations: 59.41 kB / 0.6134 GB, free: 18.28 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.253e-05/0.5068, allocations: 12 kB / 0.6134 GB, free: 18.27 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005843/0.5127, allocations: 1.907 MB / 0.6153 GB, free: 16.35 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001205/0.5139, allocations: 307.5 kB / 0.6156 GB, free: 16.05 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01933/0.5333, allocations: 10.64 MB / 0.626 GB, free: 5.129 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001937/0.5352, allocations: 234.7 kB / 0.6262 GB, free: 4.898 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001165/0.5354, allocations: 75.97 kB / 0.6263 GB, free: 4.824 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 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.0006571/0.536, allocations: 359.8 kB / 0.6266 GB, free: 4.461 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001689/0.5377, allocations: 0.692 MB / 0.6273 GB, free: 3.754 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01364/0.5514, allocations: 5.005 MB / 0.6322 GB, free: 14.72 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.942e-05/0.5514, allocations: 15.94 kB / 0.6322 GB, free: 14.7 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.549e-05/0.5515, allocations: 8 kB / 0.6322 GB, free: 14.7 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.087e-05/0.5515, allocations: 7.969 kB / 0.6322 GB, free: 14.69 MB / 446.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.01632/0.5678, allocations: 6.549 MB / 0.6386 GB, free: 8.031 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.832e-05/0.5679, allocations: 15.86 kB / 0.6386 GB, free: 8.016 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005866/0.5685, allocations: 103.9 kB / 0.6387 GB, free: 7.914 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006375/0.5749, allocations: 2.004 MB / 0.6407 GB, free: 5.902 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001532/0.575, allocations: 28 kB / 0.6407 GB, free: 5.875 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02385/0.5989, allocations: 12.03 MB / 0.6524 GB, free: 9.43 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.5989, allocations: 0 / 0.6524 GB, free: 9.43 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01707/0.616, allocations: 6.044 MB / 0.6583 GB, free: 3.34 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000554/0.6166, allocations: 239.2 kB / 0.6586 GB, free: 3.086 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003471/0.617, allocations: 20 kB / 0.6586 GB, free: 3.066 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00142/0.6184, allocations: 151.9 kB / 0.6587 GB, free: 2.918 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005632/0.619, allocations: 180.6 kB / 0.6589 GB, free: 2.742 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001065/0.6191, allocations: 35.98 kB / 0.6589 GB, free: 2.707 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00128/0.6204, allocations: 0.7278 MB / 0.6596 GB, free: 1.973 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.6204, allocations: 0 / 0.6596 GB, free: 1.973 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002003/0.6224, allocations: 0.4917 MB / 0.6601 GB, free: 1.48 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.01724/0.6397, allocations: 6.648 MB / 0.6666 GB, free: 10.77 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007449/0.6472, allocations: 3.036 MB / 0.6696 GB, free: 7.68 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.679e-06/0.6472, allocations: 0 / 0.6696 GB, free: 7.68 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004463/0.6517, allocations: 1.602 MB / 0.6712 GB, free: 6.047 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002441/0.6542, allocations: 0.6055 MB / 0.6717 GB, free: 5.418 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02907/0.6832, allocations: 12.49 MB / 0.6839 GB, free: 8.469 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009745/0.6843, allocations: 1.164 MB / 0.6851 GB, free: 7.273 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0006059/0.6849, allocations: 120.9 kB / 0.6852 GB, free: 7.152 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007668/0.6857, allocations: 480.7 kB / 0.6857 GB, free: 6.684 MB / 494.1 MB Notification: Performance of SimCode: time 1.303e-06/0.6857, allocations: 0 / 0.6857 GB, free: 6.684 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05495/0.7407, allocations: 31.85 MB / 0.7168 GB, free: 7.047 MB / 0.5138 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002175/0.7409, allocations: 282.5 kB / 0.717 GB, free: 6.668 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:155: ./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:155: ./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:155: ./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:484:19: note: 'clockIndex' declared here int i;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:484:19: note: 'clockIndex' declared here int i;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:484:19: note: 'clockIndex' declared here int i;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:484:19: note: 'clockIndex' declared here int i;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:484:19: note: 'clockIndex' declared here int i;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:484:19: note: 'clockIndex' declared here int i;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:484:19: note: 'clockIndex' declared here int i;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:484:19: note: 'clockIndex' declared here int i;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:484:19: note: 'clockIndex' declared here int i;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:484:19: note: 'clockIndex' declared here int i;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:484:19: note: 'clockIndex' declared here int i;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:484:19: note: 'clockIndex' declared here int i;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