Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.conf.json 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 4.0.0+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 3.0.1/package.mo", uses=false) Using package OpenIPSL with version 3.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: translateModel(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous") translateModel(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001102/0.001103, allocations: 103.3 kB / 15.98 MB, free: 5.895 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.272/1.272, allocations: 222.9 MB / 239.6 MB, free: 4.797 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001587/0.001587, allocations: 192.4 kB / 289.9 MB, free: 2.527 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4251/0.4251, allocations: 78.52 MB / 418.6 MB, free: 3.395 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001531/0.001532, allocations: 75.88 kB / 497.6 MB, free: 6.777 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1301/0.1317, allocations: 68.18 MB / 0.5525 GB, free: 2.539 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous): time 0.2527/0.3845, allocations: 7.056 MB / 0.5594 GB, free: 35.83 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.004097/0.3886, allocations: 2.049 MB / 0.5614 GB, free: 35.27 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008556/0.3895, allocations: 11.72 kB / 0.5614 GB, free: 35.27 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000754/0.3903, allocations: 196.7 kB / 0.5616 GB, free: 35.25 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001871/0.3922, allocations: 0.6937 MB / 0.5623 GB, free: 35.1 MB / 430.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/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.001283/0.3935, allocations: 0.6053 MB / 0.5629 GB, free: 35.02 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001471/0.3949, allocations: 1.607 MB / 0.5644 GB, free: 34.94 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004458/0.3954, allocations: 340.7 kB / 0.5648 GB, free: 34.89 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007776/0.3962, allocations: 0.6657 MB / 0.5654 GB, free: 34.74 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007432/0.3969, allocations: 0.8336 MB / 0.5662 GB, free: 34.52 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001748/0.3971, allocations: 125.4 kB / 0.5663 GB, free: 34.52 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000487/0.3976, allocations: 263.5 kB / 0.5666 GB, free: 34.51 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002286/0.3979, allocations: 333.6 kB / 0.5669 GB, free: 34.43 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004631/0.3983, allocations: 0.6875 MB / 0.5676 GB, free: 34.18 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00108/0.3994, allocations: 1.298 MB / 0.5689 GB, free: 33.96 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.3994, allocations: 0 / 0.5689 GB, free: 33.96 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.424e-06/0.3994, allocations: 1.156 kB / 0.5689 GB, free: 33.96 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.493e-05/0.3995, allocations: 0 / 0.5689 GB, free: 33.96 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.00806/0.4075, allocations: 2.716 MB / 0.5715 GB, free: 32.97 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.07e-05/0.4076, allocations: 9.031 kB / 0.5715 GB, free: 32.97 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004711/0.4123, allocations: 0.7816 MB / 0.5723 GB, free: 32.88 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001405/0.4137, allocations: 0.9006 MB / 0.5732 GB, free: 32.46 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002346/0.414, allocations: 257.6 kB / 0.5734 GB, free: 32.27 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000154/0.4141, allocations: 95.47 kB / 0.5735 GB, free: 32.27 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002399/0.4165, allocations: 1.404 MB / 0.5749 GB, free: 32.11 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.997e-05/0.4166, allocations: 1.031 kB / 0.5749 GB, free: 32.11 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.107e-05/0.4167, allocations: 31.75 kB / 0.5749 GB, free: 32.11 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.393e-05/0.4167, allocations: 21.16 kB / 0.5749 GB, free: 32.11 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001722/0.4184, allocations: 1.002 MB / 0.5759 GB, free: 32.1 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.00524/0.4237, allocations: 3.689 MB / 0.5795 GB, free: 30.33 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007051/0.4307, allocations: 2.568 MB / 0.582 GB, free: 29.34 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00146/0.4322, allocations: 0.7684 MB / 0.5828 GB, free: 29.03 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001132/0.4323, allocations: 27.33 kB / 0.5828 GB, free: 29.02 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001353/0.4337, allocations: 0.7448 MB / 0.5835 GB, free: 28.71 MB / 430.1 MB Notification: Performance of pre-optimization done (n=115): time 3.466e-06/0.4337, allocations: 0 / 0.5835 GB, free: 28.71 MB / 430.1 MB Notification: Performance of matching and sorting (n=115): time 0.02909/0.4628, allocations: 7.173 MB / 0.5905 GB, free: 27.26 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001288/0.463, allocations: 199 kB / 0.5907 GB, free: 27.05 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00188/0.4649, allocations: 1.085 MB / 0.5918 GB, free: 26.61 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002305/0.4651, allocations: 51.36 kB / 0.5918 GB, free: 26.56 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003238/0.4654, allocations: 483.4 kB / 0.5923 GB, free: 26.18 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003691/0.4658, allocations: 331.2 kB / 0.5926 GB, free: 25.93 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005118/0.4663, allocations: 308.3 kB / 0.5929 GB, free: 25.79 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.705e-05/0.4664, allocations: 308.2 kB / 0.5932 GB, free: 25.48 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001565/0.468, allocations: 0.7592 MB / 0.5939 GB, free: 25.2 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001775/0.4697, allocations: 1.098 MB / 0.595 GB, free: 24.53 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.02288/0.4926, allocations: 5.972 MB / 0.6008 GB, free: 22.27 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.457e-05/0.4927, allocations: 7.219 kB / 0.6008 GB, free: 22.27 MB / 430.1 MB Notification: Performance of matching and sorting (n=216) (initialization): time 0.0144/0.5071, allocations: 4.534 MB / 0.6053 GB, free: 21.02 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.778e-05/0.5072, allocations: 61.7 kB / 0.6053 GB, free: 20.96 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.885e-05/0.5072, allocations: 9.625 kB / 0.6053 GB, free: 20.96 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006276/0.5135, allocations: 1.63 MB / 0.6069 GB, free: 20.66 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001344/0.5149, allocations: 301.2 kB / 0.6072 GB, free: 20.63 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0199/0.5348, allocations: 10.49 MB / 0.6175 GB, free: 12.15 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001998/0.5368, allocations: 210.7 kB / 0.6177 GB, free: 11.95 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001326/0.537, allocations: 67.97 kB / 0.6177 GB, free: 11.88 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.0006866/0.5376, allocations: 367.5 kB / 0.6181 GB, free: 11.51 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001718/0.5394, allocations: 0.6699 MB / 0.6187 GB, free: 10.83 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01203/0.5514, allocations: 4.143 MB / 0.6228 GB, free: 6.66 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.672e-05/0.5515, allocations: 16 kB / 0.6228 GB, free: 6.645 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.552e-05/0.5515, allocations: 8 kB / 0.6228 GB, free: 6.637 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.061e-05/0.5515, allocations: 7.969 kB / 0.6228 GB, free: 6.629 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.01374/0.5653, allocations: 5.687 MB / 0.6284 GB, free: 0.832 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.572e-05/0.5653, allocations: 4.031 kB / 0.6284 GB, free: 0.8281 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005749/0.5659, allocations: 113.1 kB / 0.6285 GB, free: 0.7188 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005693/0.5716, allocations: 1.726 MB / 0.6302 GB, free: 14.98 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00025/0.5719, allocations: 27.98 kB / 0.6302 GB, free: 14.96 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02399/0.5959, allocations: 12.19 MB / 0.6421 GB, free: 2.34 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.5959, allocations: 0 / 0.6421 GB, free: 2.34 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01621/0.6121, allocations: 5.12 MB / 0.6471 GB, free: 13.18 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006522/0.6128, allocations: 235.2 kB / 0.6473 GB, free: 12.93 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004537/0.6133, allocations: 24 kB / 0.6473 GB, free: 12.9 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001569/0.6149, allocations: 115.8 kB / 0.6474 GB, free: 12.79 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006218/0.6155, allocations: 176.8 kB / 0.6476 GB, free: 12.62 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000135/0.6157, allocations: 32.92 kB / 0.6476 GB, free: 12.59 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001385/0.6171, allocations: 0.7356 MB / 0.6484 GB, free: 11.84 MB / 462.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.6171, allocations: 0 / 0.6484 GB, free: 11.84 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002469/0.6196, allocations: 0.4917 MB / 0.6488 GB, free: 11.35 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.0004341/0.62, allocations: 139.1 kB / 0.649 GB, free: 11.21 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007243/0.6273, allocations: 2.791 MB / 0.6517 GB, free: 8.355 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.151e-06/0.6273, allocations: 0 / 0.6517 GB, free: 8.355 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004114/0.6314, allocations: 1.375 MB / 0.653 GB, free: 6.957 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002386/0.6338, allocations: 0.6051 MB / 0.6536 GB, free: 6.332 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005291/0.6391, allocations: 2.877 MB / 0.6564 GB, free: 3.449 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009005/0.6401, allocations: 1.164 MB / 0.6576 GB, free: 2.254 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004424/0.6405, allocations: 83.42 kB / 0.6577 GB, free: 2.172 MB / 462.1 MB Notification: Performance of SimCode: time 1.213e-06/0.6405, allocations: 0 / 0.6577 GB, free: 2.172 MB / 462.1 MB Notification: Performance of Templates: time 0.03658/0.6771, allocations: 31.06 MB / 0.688 GB, free: 3.289 MB / 494.1 MB make -j1 -f OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.makefile (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.sim & ./OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.pipe 2>&1)