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.001543/0.001543, allocations: 108.5 kB / 16.41 MB, free: 6.492 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.494/1.494, allocations: 222.9 MB / 240.1 MB, free: 4.574 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.001814/0.001814, allocations: 192.5 kB / 290.4 MB, free: 2.285 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.5151/0.5151, allocations: 78.52 MB / 419.1 MB, free: 3.188 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001854/0.001854, allocations: 84.09 kB / 0.5543 GB, free: 1.027 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4041/0.406, allocations: 68.17 MB / 0.6209 GB, free: 9.691 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous): time 0.006165/0.4122, allocations: 6.766 MB / 0.6275 GB, free: 3.496 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.004083/0.4163, allocations: 2.021 MB / 0.6295 GB, free: 1.469 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009137/0.4173, allocations: 12 kB / 0.6295 GB, free: 1.457 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007373/0.418, allocations: 241.9 kB / 0.6297 GB, free: 1.219 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001812/0.4199, allocations: 0.7976 MB / 0.6305 GB, free: 432 kB / 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.001304/0.4212, allocations: 0.6641 MB / 0.6311 GB, free: 15.76 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001879/0.4231, allocations: 1.608 MB / 0.6327 GB, free: 14.15 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005032/0.4236, allocations: 346.5 kB / 0.633 GB, free: 13.8 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009188/0.4245, allocations: 0.6652 MB / 0.6337 GB, free: 13.13 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009948/0.4255, allocations: 0.8362 MB / 0.6345 GB, free: 12.29 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001897/0.4257, allocations: 120 kB / 0.6346 GB, free: 12.17 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005835/0.4263, allocations: 263.9 kB / 0.6349 GB, free: 11.91 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002955/0.4266, allocations: 330.6 kB / 0.6352 GB, free: 11.59 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006008/0.4273, allocations: 0.6835 MB / 0.6359 GB, free: 10.9 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001874/0.4291, allocations: 1.695 MB / 0.6375 GB, free: 9.207 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.933e-06/0.4292, allocations: 4 kB / 0.6375 GB, free: 9.203 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.734e-06/0.4292, allocations: 0 / 0.6375 GB, free: 9.203 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.761e-05/0.4292, allocations: 0 / 0.6375 GB, free: 9.203 MB / 446.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.009365/0.4386, allocations: 2.711 MB / 0.6402 GB, free: 6.422 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.674e-05/0.4386, allocations: 8.031 kB / 0.6402 GB, free: 6.414 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005151/0.4438, allocations: 0.7748 MB / 0.6409 GB, free: 5.637 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001777/0.4456, allocations: 0.9119 MB / 0.6418 GB, free: 4.668 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003123/0.4459, allocations: 264.1 kB / 0.6421 GB, free: 4.375 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000182/0.4461, allocations: 87.91 kB / 0.6421 GB, free: 4.289 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002835/0.4489, allocations: 1.4 MB / 0.6435 GB, free: 2.859 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.771e-05/0.449, allocations: 0 / 0.6435 GB, free: 2.859 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001006/0.4491, allocations: 35.98 kB / 0.6435 GB, free: 2.824 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.725e-05/0.4491, allocations: 20 kB / 0.6436 GB, free: 2.805 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002134/0.4512, allocations: 0.9928 MB / 0.6445 GB, free: 1.809 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 preOpt removeSimpleEquations (simulation): time 0.006426/0.4577, allocations: 3.677 MB / 0.6481 GB, free: 13.95 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007673/0.4654, allocations: 2.567 MB / 0.6506 GB, free: 11.25 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001763/0.4672, allocations: 0.7787 MB / 0.6514 GB, free: 10.46 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001005/0.4673, allocations: 20.72 kB / 0.6514 GB, free: 10.45 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001527/0.4688, allocations: 0.7431 MB / 0.6521 GB, free: 9.68 MB / 462.1 MB Notification: Performance of pre-optimization done (n=115): time 3.627e-06/0.4689, allocations: 0 / 0.6521 GB, free: 9.68 MB / 462.1 MB Notification: Performance of matching and sorting (n=115): time 0.03032/0.4992, allocations: 7.185 MB / 0.6592 GB, free: 2.434 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002138/0.4994, allocations: 194.8 kB / 0.6593 GB, free: 2.203 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002243/0.5017, allocations: 1.083 MB / 0.6604 GB, free: 1.105 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003017/0.502, allocations: 45.7 kB / 0.6604 GB, free: 1.055 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004941/0.5025, allocations: 493.2 kB / 0.6609 GB, free: 0.5664 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000574/0.5031, allocations: 331.5 kB / 0.6612 GB, free: 244 kB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009074/0.504, allocations: 307.4 kB / 0.6615 GB, free: 15.93 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001288/0.5042, allocations: 301.1 kB / 0.6618 GB, free: 15.64 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001905/0.5061, allocations: 0.7535 MB / 0.6625 GB, free: 14.88 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002106/0.5082, allocations: 1.104 MB / 0.6636 GB, free: 13.64 MB / 478.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.02463/0.5329, allocations: 5.949 MB / 0.6694 GB, free: 7.48 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.197e-05/0.5329, allocations: 4 kB / 0.6694 GB, free: 7.477 MB / 478.1 MB Notification: Performance of matching and sorting (n=216) (initialization): time 0.01599/0.5489, allocations: 4.536 MB / 0.6739 GB, free: 2.91 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001053/0.5491, allocations: 63.41 kB / 0.6739 GB, free: 2.836 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.49e-05/0.5491, allocations: 8 kB / 0.6739 GB, free: 2.828 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0067/0.5558, allocations: 1.638 MB / 0.6755 GB, free: 1.184 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001464/0.5573, allocations: 303.5 kB / 0.6758 GB, free: 0.8867 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02477/0.5821, allocations: 10.48 MB / 0.6861 GB, free: 6.117 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002176/0.5844, allocations: 206.7 kB / 0.6863 GB, free: 5.914 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003467/0.5847, allocations: 71.97 kB / 0.6863 GB, free: 5.844 MB / 494.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.001177/0.5859, allocations: 361.1 kB / 0.6867 GB, free: 5.473 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002398/0.5884, allocations: 0.6647 MB / 0.6873 GB, free: 4.793 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01461/0.603, allocations: 4.152 MB / 0.6914 GB, free: 0.6094 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.784e-05/0.6031, allocations: 12 kB / 0.6914 GB, free: 0.5977 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.944e-05/0.6031, allocations: 8 kB / 0.6914 GB, free: 0.5898 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.355e-05/0.6032, allocations: 11.91 kB / 0.6914 GB, free: 0.5781 MB / 494.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.0174/0.6206, allocations: 5.687 MB / 0.697 GB, free: 10.79 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.492e-05/0.6206, allocations: 0 / 0.697 GB, free: 10.79 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007043/0.6214, allocations: 111.8 kB / 0.6971 GB, free: 10.68 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006285/0.6277, allocations: 1.724 MB / 0.6987 GB, free: 8.941 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002607/0.628, allocations: 24 kB / 0.6988 GB, free: 8.918 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02613/0.6541, allocations: 12.18 MB / 0.7107 GB, free: 12.31 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.61e-06/0.6542, allocations: 7.938 kB / 0.7107 GB, free: 12.3 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01723/0.6714, allocations: 5.116 MB / 0.7157 GB, free: 7.145 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006738/0.6721, allocations: 231.2 kB / 0.7159 GB, free: 6.898 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005145/0.6727, allocations: 27.98 kB / 0.7159 GB, free: 6.871 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001576/0.6743, allocations: 115.8 kB / 0.716 GB, free: 6.758 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007008/0.675, allocations: 180.7 kB / 0.7162 GB, free: 6.582 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001895/0.6752, allocations: 31.98 kB / 0.7162 GB, free: 6.551 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001605/0.6768, allocations: 0.7317 MB / 0.7169 GB, free: 5.812 MB / 0.5137 GB Notification: Performance of sort global known variables: time 3.41e-07/0.6768, allocations: 0 / 0.7169 GB, free: 5.812 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.003166/0.68, allocations: 0.4917 MB / 0.7174 GB, free: 5.32 MB / 0.5137 GB 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.000567/0.6806, allocations: 151.2 kB / 0.7176 GB, free: 5.16 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.00774/0.6883, allocations: 2.755 MB / 0.7203 GB, free: 2.348 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 5.691e-06/0.6884, allocations: 4 kB / 0.7203 GB, free: 2.344 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.00448/0.6929, allocations: 1.383 MB / 0.7216 GB, free: 0.9297 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002745/0.6956, allocations: 0.5921 MB / 0.7222 GB, free: 320 kB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005668/0.7013, allocations: 2.411 MB / 0.7245 GB, free: 13.87 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001016/0.7024, allocations: 1.168 MB / 0.7257 GB, free: 12.66 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004203/0.7028, allocations: 79.42 kB / 0.7258 GB, free: 12.59 MB / 0.5294 GB Notification: Performance of SimCode: time 1.333e-06/0.7028, allocations: 0 / 0.7258 GB, free: 12.59 MB / 0.5294 GB Notification: Performance of Templates: time 0.04596/0.7488, allocations: 31.19 MB / 0.7562 GB, free: 13.34 MB / 0.5606 GB 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)