Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.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.TwoAreaOld.FourthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII") translateModel(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00118/0.00118, allocations: 99.55 kB / 15.05 MB, free: 1.105 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.291/1.291, allocations: 223.2 MB / 238.9 MB, free: 5.469 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.001317/0.001317, allocations: 189 kB / 290.2 MB, free: 2.164 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4442/0.4442, allocations: 78.53 MB / 419.8 MB, free: 4.312 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003532/0.0003533, allocations: 12 kB / 499.6 MB, free: 6.387 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1257/0.1261, allocations: 69.37 MB / 0.5557 GB, free: 0.9805 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII): time 0.249/0.3751, allocations: 5.718 MB / 0.5613 GB, free: 37.21 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003795/0.3789, allocations: 1.939 MB / 0.5632 GB, free: 36.95 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001/0.38, allocations: 12.72 kB / 0.5632 GB, free: 36.95 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006881/0.3807, allocations: 175.1 kB / 0.5633 GB, free: 36.89 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00209/0.3828, allocations: 0.7104 MB / 0.564 GB, free: 36.8 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.001266/0.3841, allocations: 0.5153 MB / 0.5645 GB, free: 36.79 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001754/0.3858, allocations: 0.9984 MB / 0.5655 GB, free: 36.73 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004191/0.3863, allocations: 265 kB / 0.5658 GB, free: 36.7 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007606/0.387, allocations: 0.5577 MB / 0.5663 GB, free: 36.58 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007657/0.3878, allocations: 0.7111 MB / 0.567 GB, free: 36.45 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001305/0.3879, allocations: 59.62 kB / 0.5671 GB, free: 36.45 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004501/0.3884, allocations: 171.7 kB / 0.5672 GB, free: 36.44 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002428/0.3887, allocations: 251.6 kB / 0.5675 GB, free: 36.39 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002032/0.3889, allocations: 228.2 kB / 0.5677 GB, free: 36.31 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009277/0.3898, allocations: 1.186 MB / 0.5688 GB, free: 36.13 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.204e-06/0.3898, allocations: 0.625 kB / 0.5688 GB, free: 36.13 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3898, allocations: 0 / 0.5688 GB, free: 36.13 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.295e-05/0.3898, allocations: 0.625 kB / 0.5688 GB, free: 36.13 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: 190 * Number of variables: 190 Notification: Performance of Generate backend data structure: time 0.00776/0.3976, allocations: 2.515 MB / 0.5713 GB, free: 35.19 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.479e-05/0.3977, allocations: 11.25 kB / 0.5713 GB, free: 35.19 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004998/0.4027, allocations: 0.7834 MB / 0.5721 GB, free: 35.09 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001764/0.4045, allocations: 0.8418 MB / 0.5729 GB, free: 34.73 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002453/0.4047, allocations: 278 kB / 0.5732 GB, free: 34.52 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001557/0.4049, allocations: 79.47 kB / 0.5732 GB, free: 34.52 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002085/0.407, allocations: 1.138 MB / 0.5743 GB, free: 34.23 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.884e-05/0.407, allocations: 0 / 0.5743 GB, free: 34.23 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.12e-05/0.4071, allocations: 31.06 kB / 0.5744 GB, free: 34.21 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.63e-05/0.4071, allocations: 23.45 kB / 0.5744 GB, free: 34.21 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001856/0.409, allocations: 1.049 MB / 0.5754 GB, free: 33.87 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.006077/0.4151, allocations: 4.1 MB / 0.5794 GB, free: 31.41 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007251/0.4224, allocations: 2.906 MB / 0.5823 GB, free: 30.54 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001802/0.4226, allocations: 23.39 kB / 0.5823 GB, free: 30.52 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001679/0.4243, allocations: 0.8695 MB / 0.5831 GB, free: 30.2 MB / 430.1 MB Notification: Performance of pre-optimization done (n=96): time 3.115e-06/0.4243, allocations: 5.75 kB / 0.5831 GB, free: 30.2 MB / 430.1 MB Notification: Performance of matching and sorting (n=96): time 0.02971/0.454, allocations: 8.639 MB / 0.5916 GB, free: 28.63 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.52e-05/0.4541, allocations: 115.1 kB / 0.5917 GB, free: 28.51 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00176/0.4559, allocations: 1.072 MB / 0.5927 GB, free: 28.06 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002399/0.4561, allocations: 42.52 kB / 0.5928 GB, free: 28.02 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000324/0.4565, allocations: 498.2 kB / 0.5932 GB, free: 27.63 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003419/0.4568, allocations: 353.2 kB / 0.5936 GB, free: 27.36 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.219e-05/0.4569, allocations: 30.31 kB / 0.5936 GB, free: 27.33 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.28e-05/0.457, allocations: 362.4 kB / 0.594 GB, free: 27 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00159/0.4586, allocations: 0.8214 MB / 0.5948 GB, free: 26.71 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001731/0.4603, allocations: 0.993 MB / 0.5957 GB, free: 26.27 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001725/0.4621, allocations: 0.952 MB / 0.5967 GB, free: 25.82 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.293e-06/0.4621, allocations: 5.219 kB / 0.5967 GB, free: 25.81 MB / 430.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01491/0.477, allocations: 5.157 MB / 0.6017 GB, free: 24.56 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.937e-05/0.4771, allocations: 63.14 kB / 0.6018 GB, free: 24.49 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.668e-05/0.4772, allocations: 3.531 kB / 0.6018 GB, free: 24.49 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006849/0.484, allocations: 1.904 MB / 0.6036 GB, free: 24.18 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001633/0.4857, allocations: 294.3 kB / 0.6039 GB, free: 24.16 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02084/0.5065, allocations: 9.446 MB / 0.6131 GB, free: 18.93 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002048/0.5086, allocations: 248.1 kB / 0.6134 GB, free: 18.68 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001524/0.5088, allocations: 51.98 kB / 0.6134 GB, free: 18.63 MB / 430.1 MB Warning: Assuming fixed start value for the following 4 variables: order4.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real aVRTypeII.firstOrder2.y:VARIABLE(flow=false start = aVRTypeII.firstOrder2.y_start fixed = true ) "Connector of Real output signal" type: Real order4.e1d:VARIABLE(start = order4.e1d0 unit = "1" fixed = true ) "d-axis transient voltage" type: Real order4.e1q:VARIABLE(start = order4.e1q0 unit = "1" fixed = true ) "q-axis transient voltage" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (164): * Single equations (assignments): 161 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {19 14} Notification: Performance of prepare postOptimizeDAE: time 0.0005562/0.5094, allocations: 308.2 kB / 0.6137 GB, free: 18.32 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002003/0.5096, allocations: 130.4 kB / 0.6138 GB, free: 18.2 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0122/0.5218, allocations: 4.701 MB / 0.6184 GB, free: 13.46 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.752e-05/0.5219, allocations: 19.92 kB / 0.6184 GB, free: 13.45 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.129e-05/0.5219, allocations: 4 kB / 0.6184 GB, free: 13.44 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.803e-05/0.5219, allocations: 3.984 kB / 0.6185 GB, free: 13.44 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.01389/0.5358, allocations: 6.348 MB / 0.6247 GB, free: 6.965 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.259e-05/0.5359, allocations: 0 / 0.6247 GB, free: 6.965 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006504/0.5365, allocations: 107.8 kB / 0.6248 GB, free: 6.859 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005419/0.542, allocations: 1.892 MB / 0.6266 GB, free: 4.961 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002172/0.5422, allocations: 21.19 kB / 0.6266 GB, free: 4.941 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01974/0.5619, allocations: 10.09 MB / 0.6365 GB, free: 10.59 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.897e-06/0.562, allocations: 3.953 kB / 0.6365 GB, free: 10.58 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01597/0.578, allocations: 5.65 MB / 0.642 GB, free: 4.887 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006778/0.5787, allocations: 227.3 kB / 0.6422 GB, free: 4.645 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002313/0.5789, allocations: 20 kB / 0.6422 GB, free: 4.625 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001211/0.5801, allocations: 150.1 kB / 0.6424 GB, free: 4.48 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005828/0.5807, allocations: 197.4 kB / 0.6426 GB, free: 4.289 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.673e-05/0.5808, allocations: 20 kB / 0.6426 GB, free: 4.27 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001096/0.5819, allocations: 0.7235 MB / 0.6433 GB, free: 3.539 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.2e-07/0.5819, allocations: 0 / 0.6433 GB, free: 3.539 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001744/0.5837, allocations: 483.4 kB / 0.6437 GB, free: 3.066 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 10 (order2.delta,order2.w,order4.delta,order4.w,order4.e1q,order4.e1d,aVRTypeII.ExcitationSystem.x_scaled[1],aVRTypeII.derivativeBlock.x,aVRTypeII.firstOrder2.y,aVRTypeII.simpleLagLim.state) * Number of discrete variables: 2 ($whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (64): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(21,21.8%) 11} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003083/0.584, allocations: 131.2 kB / 0.6439 GB, free: 2.926 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006942/0.591, allocations: 2.78 MB / 0.6466 GB, free: 120 kB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.7e-06/0.591, allocations: 0 / 0.6466 GB, free: 120 kB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004803/0.5958, allocations: 1.828 MB / 0.6484 GB, free: 14.25 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009326/0.5968, allocations: 89.61 kB / 0.6485 GB, free: 14.16 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004254/0.601, allocations: 2.685 MB / 0.6511 GB, free: 11.49 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006926/0.6018, allocations: 1.143 MB / 0.6522 GB, free: 10.32 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0005011/0.6023, allocations: 120.3 kB / 0.6523 GB, free: 10.2 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002602/0.6025, allocations: 75.41 kB / 0.6524 GB, free: 10.12 MB / 462.1 MB Notification: Performance of SimCode: time 1.162e-06/0.6026, allocations: 4 kB / 0.6524 GB, free: 10.12 MB / 462.1 MB Notification: Performance of Templates: time 0.03418/0.6367, allocations: 21.27 MB / 0.6732 GB, free: 5.031 MB / 478.1 MB make -j1 -f OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.makefile Environment - environmentSimulation: (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.sim & ./OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe 2>&1) Environment - environmentSimulation: