Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_dev_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.1.0-master/package.mo", uses=false) Using package OpenIPSL with version 3.1.0-dev (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo) Using package 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_dev_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_dev_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.007439/0.007439, allocations: 101.1 kB / 15.88 MB, free: 6.332 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.352/1.352, allocations: 222.9 MB / 239.5 MB, free: 4.855 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.001549/0.001549, allocations: 180.3 kB / 289.8 MB, free: 2.598 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5394/0.5394, allocations: 91.89 MB / 431.8 MB, free: 9.539 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001434/0.001434, allocations: 75.88 kB / 0.5018 GB, free: 8.281 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3774/0.3788, allocations: 71.26 MB / 0.5714 GB, free: 36.41 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous): time 0.00644/0.3853, allocations: 7.08 MB / 0.5784 GB, free: 32.33 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.004507/0.3899, allocations: 2.074 MB / 0.5804 GB, free: 31.02 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001342/0.3913, allocations: 15.69 kB / 0.5804 GB, free: 31.02 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007906/0.3921, allocations: 187.8 kB / 0.5806 GB, free: 30.94 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002014/0.3942, allocations: 0.7114 MB / 0.5813 GB, free: 30.49 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001301/0.3955, allocations: 0.631 MB / 0.5819 GB, free: 30.15 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001525/0.397, allocations: 1.519 MB / 0.5834 GB, free: 29.42 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004275/0.3974, allocations: 310.5 kB / 0.5837 GB, free: 29.27 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007653/0.3982, allocations: 0.5973 MB / 0.5842 GB, free: 29 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006688/0.3989, allocations: 0.7854 MB / 0.585 GB, free: 28.64 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001391/0.399, allocations: 73.19 kB / 0.5851 GB, free: 28.64 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004764/0.3995, allocations: 204.3 kB / 0.5853 GB, free: 28.6 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002325/0.3998, allocations: 288.5 kB / 0.5856 GB, free: 28.43 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004716/0.4002, allocations: 0.6294 MB / 0.5862 GB, free: 28.02 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009696/0.4012, allocations: 1.275 MB / 0.5874 GB, free: 27.53 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.4012, allocations: 7.938 kB / 0.5874 GB, free: 27.52 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.4012, allocations: 1.375 kB / 0.5874 GB, free: 27.52 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.201e-05/0.4013, allocations: 0 / 0.5874 GB, free: 27.52 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.009111/0.4104, allocations: 2.71 MB / 0.5901 GB, free: 26.24 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.321e-05/0.4105, allocations: 11.91 kB / 0.5901 GB, free: 26.24 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005073/0.4155, allocations: 0.7753 MB / 0.5908 GB, free: 26.08 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001817/0.4174, allocations: 0.9022 MB / 0.5917 GB, free: 25.48 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00026/0.4177, allocations: 263 kB / 0.592 GB, free: 25.25 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001714/0.4178, allocations: 88.22 kB / 0.5921 GB, free: 25.22 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002803/0.4206, allocations: 1.404 MB / 0.5934 GB, free: 24.64 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.199e-05/0.4207, allocations: 0 / 0.5934 GB, free: 24.64 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.974e-05/0.4208, allocations: 35.25 kB / 0.5935 GB, free: 24.62 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.379e-05/0.4208, allocations: 18.38 kB / 0.5935 GB, free: 24.62 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002112/0.4229, allocations: 0.9967 MB / 0.5944 GB, free: 24.29 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.006756/0.4297, allocations: 3.724 MB / 0.5981 GB, free: 22.06 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007616/0.4374, allocations: 2.567 MB / 0.6006 GB, free: 21.05 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001813/0.4392, allocations: 0.7696 MB / 0.6013 GB, free: 20.74 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001248/0.4394, allocations: 18.61 kB / 0.6014 GB, free: 20.74 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001543/0.4409, allocations: 0.7501 MB / 0.6021 GB, free: 20.44 MB / 430.1 MB Notification: Performance of pre-optimization done (n=115): time 4.619e-06/0.4409, allocations: 0 / 0.6021 GB, free: 20.44 MB / 430.1 MB Notification: Performance of matching and sorting (n=115): time 0.03089/0.4718, allocations: 7.297 MB / 0.6092 GB, free: 18.98 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001386/0.472, allocations: 202.3 kB / 0.6094 GB, free: 18.77 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001985/0.474, allocations: 1.085 MB / 0.6105 GB, free: 18.33 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002649/0.4743, allocations: 52.7 kB / 0.6105 GB, free: 18.28 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003376/0.4746, allocations: 487 kB / 0.611 GB, free: 17.89 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003752/0.475, allocations: 330.8 kB / 0.6113 GB, free: 17.64 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005419/0.4756, allocations: 307.8 kB / 0.6116 GB, free: 17.5 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 5.142e-05/0.4756, allocations: 306.3 kB / 0.6119 GB, free: 17.2 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001622/0.4772, allocations: 0.7517 MB / 0.6126 GB, free: 16.93 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002055/0.4793, allocations: 1.098 MB / 0.6137 GB, free: 16.25 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.0238/0.5031, allocations: 5.951 MB / 0.6195 GB, free: 12.84 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.113e-05/0.5032, allocations: 4 kB / 0.6195 GB, free: 12.84 MB / 430.1 MB Notification: Performance of matching and sorting (n=216) (initialization): time 0.01329/0.5165, allocations: 4.532 MB / 0.6239 GB, free: 8.277 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.004e-05/0.5166, allocations: 63.41 kB / 0.624 GB, free: 8.203 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.687e-05/0.5167, allocations: 8 kB / 0.624 GB, free: 8.195 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005856/0.5225, allocations: 1.634 MB / 0.6256 GB, free: 6.555 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001365/0.5239, allocations: 299.5 kB / 0.6259 GB, free: 6.262 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02056/0.5445, allocations: 9.642 MB / 0.6353 GB, free: 12.33 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002401/0.5469, allocations: 202.7 kB / 0.6355 GB, free: 12.13 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003787/0.5473, allocations: 75.91 kB / 0.6356 GB, free: 12.06 MB / 446.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.001314/0.5487, allocations: 377.2 kB / 0.6359 GB, free: 11.68 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002567/0.5513, allocations: 0.6612 MB / 0.6366 GB, free: 11 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01472/0.566, allocations: 4.15 MB / 0.6406 GB, free: 6.824 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.43e-05/0.5661, allocations: 15.94 kB / 0.6406 GB, free: 6.809 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.981e-05/0.5662, allocations: 8 kB / 0.6406 GB, free: 6.801 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-05/0.5662, allocations: 7.969 kB / 0.6407 GB, free: 6.793 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.01874/0.585, allocations: 5.697 MB / 0.6462 GB, free: 0.9922 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.291e-05/0.5851, allocations: 3.938 kB / 0.6462 GB, free: 0.9883 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007371/0.5858, allocations: 111.8 kB / 0.6463 GB, free: 0.8789 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006369/0.5922, allocations: 1.72 MB / 0.648 GB, free: 15.14 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002806/0.5925, allocations: 31.92 kB / 0.648 GB, free: 15.11 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02418/0.6167, allocations: 11.11 MB / 0.6589 GB, free: 3.59 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/0.6167, allocations: 0 / 0.6589 GB, free: 3.59 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01662/0.6334, allocations: 5.126 MB / 0.6639 GB, free: 14.42 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006799/0.6341, allocations: 227.2 kB / 0.6641 GB, free: 14.18 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005533/0.6347, allocations: 28 kB / 0.6641 GB, free: 14.15 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001616/0.6363, allocations: 107.9 kB / 0.6642 GB, free: 14.05 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006876/0.637, allocations: 180.6 kB / 0.6644 GB, free: 13.87 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001886/0.6372, allocations: 35.98 kB / 0.6644 GB, free: 13.84 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001484/0.6387, allocations: 0.7278 MB / 0.6652 GB, free: 13.1 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.6387, allocations: 0 / 0.6652 GB, free: 13.1 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002454/0.6412, allocations: 0.4917 MB / 0.6656 GB, free: 12.61 MB / 478.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.0004382/0.6417, allocations: 143.2 kB / 0.6658 GB, free: 12.46 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007276/0.6489, allocations: 2.751 MB / 0.6685 GB, free: 9.652 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.569e-06/0.649, allocations: 0 / 0.6685 GB, free: 9.652 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004132/0.6531, allocations: 1.391 MB / 0.6698 GB, free: 8.234 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002707/0.6558, allocations: 0.5862 MB / 0.6704 GB, free: 7.621 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005762/0.6616, allocations: 2.871 MB / 0.6732 GB, free: 4.711 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009382/0.6626, allocations: 1.16 MB / 0.6743 GB, free: 3.523 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004484/0.6631, allocations: 79.42 kB / 0.6744 GB, free: 3.445 MB / 478.1 MB Notification: Performance of SimCode: time 1.202e-06/0.6631, allocations: 0 / 0.6744 GB, free: 3.445 MB / 478.1 MB Notification: Performance of Templates: time 0.04096/0.704, allocations: 31.05 MB / 0.7047 GB, free: 4.395 MB / 0.4981 GB make -j1 -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.makefile (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.sim & ./OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.pipe 2>&1)