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.001479/0.001479, allocations: 106.1 kB / 16.41 MB, free: 6.5 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.391/1.391, allocations: 222.9 MB / 240.1 MB, free: 4.402 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.001615/0.001615, allocations: 192.5 kB / 290.4 MB, free: 2.129 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4997/0.4997, allocations: 78.52 MB / 419.1 MB, free: 3.207 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001704/0.001704, allocations: 75.88 kB / 0.5543 GB, free: 0.918 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3938/0.3955, allocations: 68.17 MB / 0.6209 GB, free: 9.711 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII): time 0.005541/0.4011, allocations: 6.562 MB / 0.6273 GB, free: 3.629 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003549/0.4047, allocations: 1.958 MB / 0.6292 GB, free: 1.664 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006014/0.4053, allocations: 11.94 kB / 0.6292 GB, free: 1.652 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006552/0.406, allocations: 238 kB / 0.6294 GB, free: 1.418 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00168/0.4077, allocations: 0.8133 MB / 0.6302 GB, free: 0.6055 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.001094/0.4088, allocations: 0.6213 MB / 0.6308 GB, free: 15.98 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001728/0.4105, allocations: 1.588 MB / 0.6324 GB, free: 14.39 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004849/0.411, allocations: 322.4 kB / 0.6327 GB, free: 14.07 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008327/0.4119, allocations: 0.6652 MB / 0.6333 GB, free: 13.4 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009016/0.4128, allocations: 0.8206 MB / 0.6341 GB, free: 12.57 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001883/0.413, allocations: 120 kB / 0.6342 GB, free: 12.46 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005333/0.4135, allocations: 259.9 kB / 0.6345 GB, free: 12.2 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000281/0.4138, allocations: 322.6 kB / 0.6348 GB, free: 11.89 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005546/0.4144, allocations: 0.6719 MB / 0.6355 GB, free: 11.21 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001647/0.416, allocations: 1.668 MB / 0.6371 GB, free: 9.543 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.416, allocations: 0 / 0.6371 GB, free: 9.543 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.4161, allocations: 0 / 0.6371 GB, free: 9.543 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.586e-05/0.4161, allocations: 0 / 0.6371 GB, free: 9.543 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: 190 * Number of variables: 190 Notification: Performance of Generate backend data structure: time 0.008751/0.4248, allocations: 2.684 MB / 0.6397 GB, free: 6.789 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.62e-05/0.4249, allocations: 8.031 kB / 0.6397 GB, free: 6.781 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005192/0.4301, allocations: 0.7826 MB / 0.6405 GB, free: 5.996 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001475/0.4316, allocations: 0.8786 MB / 0.6413 GB, free: 5.062 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002896/0.4319, allocations: 260.2 kB / 0.6416 GB, free: 4.77 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001698/0.4321, allocations: 83.91 kB / 0.6417 GB, free: 4.688 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00218/0.4342, allocations: 1.094 MB / 0.6427 GB, free: 3.582 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.181e-05/0.4343, allocations: 4 kB / 0.6427 GB, free: 3.578 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001055/0.4344, allocations: 32 kB / 0.6428 GB, free: 3.547 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.075e-05/0.4344, allocations: 20 kB / 0.6428 GB, free: 3.527 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002065/0.4365, allocations: 0.9838 MB / 0.6437 GB, free: 2.543 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.006647/0.4431, allocations: 3.796 MB / 0.6475 GB, free: 14.57 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007747/0.4509, allocations: 2.375 MB / 0.6498 GB, free: 12.1 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001402/0.4523, allocations: 0.6839 MB / 0.6504 GB, free: 11.41 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.613e-05/0.4524, allocations: 16.97 kB / 0.6505 GB, free: 11.4 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001656/0.4541, allocations: 0.8254 MB / 0.6513 GB, free: 10.55 MB / 462.1 MB Notification: Performance of pre-optimization done (n=96): time 2.735e-06/0.4541, allocations: 0 / 0.6513 GB, free: 10.55 MB / 462.1 MB Notification: Performance of matching and sorting (n=96): time 0.03009/0.4842, allocations: 7.085 MB / 0.6582 GB, free: 3.402 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.904e-05/0.4843, allocations: 115.8 kB / 0.6583 GB, free: 3.266 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001769/0.4861, allocations: 1.083 MB / 0.6594 GB, free: 2.168 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002075/0.4863, allocations: 45.7 kB / 0.6594 GB, free: 2.117 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003904/0.4867, allocations: 492.8 kB / 0.6599 GB, free: 1.629 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003989/0.4871, allocations: 362.9 kB / 0.6602 GB, free: 1.27 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004824/0.4876, allocations: 287.5 kB / 0.6605 GB, free: 0.9844 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.218e-05/0.4877, allocations: 301.1 kB / 0.6608 GB, free: 0.6875 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00163/0.4894, allocations: 0.7652 MB / 0.6615 GB, free: 15.92 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00176/0.4911, allocations: 0.9381 MB / 0.6624 GB, free: 14.94 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0243/0.5154, allocations: 5.575 MB / 0.6679 GB, free: 9.281 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.556e-06/0.5155, allocations: 4 kB / 0.6679 GB, free: 9.277 MB / 478.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01414/0.5296, allocations: 4.336 MB / 0.6721 GB, free: 4.914 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.922e-05/0.5297, allocations: 59.41 kB / 0.6722 GB, free: 4.844 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.225e-05/0.5298, allocations: 0 / 0.6722 GB, free: 4.844 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005817/0.5356, allocations: 1.52 MB / 0.6737 GB, free: 3.32 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001651/0.5373, allocations: 299.6 kB / 0.6739 GB, free: 3.027 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02087/0.5582, allocations: 8.254 MB / 0.682 GB, free: 10.62 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002147/0.5603, allocations: 198.8 kB / 0.6822 GB, free: 10.42 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002786/0.5606, allocations: 59.97 kB / 0.6823 GB, free: 10.36 MB / 494.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 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 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (166): * Single equations (assignments): 163 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0008417/0.5615, allocations: 305.8 kB / 0.6825 GB, free: 10.05 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004/0.5619, allocations: 130.3 kB / 0.6827 GB, free: 9.922 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0138/0.5757, allocations: 3.873 MB / 0.6865 GB, free: 6.012 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.529e-05/0.5757, allocations: 12 kB / 0.6865 GB, free: 6 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.528e-05/0.5758, allocations: 8 kB / 0.6865 GB, free: 5.992 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.92e-05/0.5758, allocations: 3.984 kB / 0.6865 GB, free: 5.988 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.01624/0.592, allocations: 5.463 MB / 0.6918 GB, free: 428 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.155e-06/0.5921, allocations: 0 / 0.6918 GB, free: 428 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006165/0.5927, allocations: 99.94 kB / 0.6919 GB, free: 328 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005953/0.5987, allocations: 1.606 MB / 0.6935 GB, free: 14.71 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001568/0.5989, allocations: 24 kB / 0.6935 GB, free: 14.68 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02225/0.6211, allocations: 9.606 MB / 0.7029 GB, free: 4.793 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.6211, allocations: 0 / 0.7029 GB, free: 4.793 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01554/0.6367, allocations: 4.735 MB / 0.7075 GB, free: 24 kB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005096/0.6372, allocations: 223.2 kB / 0.7077 GB, free: 15.79 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003239/0.6376, allocations: 31.98 kB / 0.7077 GB, free: 15.75 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001355/0.639, allocations: 103.9 kB / 0.7078 GB, free: 15.65 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006287/0.6396, allocations: 196.7 kB / 0.708 GB, free: 15.46 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.229e-05/0.6397, allocations: 28.06 kB / 0.7081 GB, free: 15.43 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001236/0.6409, allocations: 0.7236 MB / 0.7088 GB, free: 14.7 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.91e-07/0.641, allocations: 7.938 kB / 0.7088 GB, free: 14.7 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.00167/0.6426, allocations: 471.5 kB / 0.7092 GB, free: 14.23 MB / 0.5137 GB 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 (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 {(21,11,21.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003373/0.643, allocations: 137.6 kB / 0.7094 GB, free: 14.09 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0066/0.6496, allocations: 2.502 MB / 0.7118 GB, free: 11.54 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 5.31e-06/0.6496, allocations: 0 / 0.7118 GB, free: 11.54 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.004793/0.6544, allocations: 1.61 MB / 0.7134 GB, free: 9.898 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001094/0.6555, allocations: 119.6 kB / 0.7135 GB, free: 9.785 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004374/0.6599, allocations: 2.29 MB / 0.7157 GB, free: 7.465 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006797/0.6606, allocations: 1.124 MB / 0.7168 GB, free: 6.309 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000358/0.661, allocations: 83.42 kB / 0.7169 GB, free: 6.227 MB / 0.5137 GB Notification: Performance of SimCode: time 1.162e-06/0.661, allocations: 0 / 0.7169 GB, free: 6.227 MB / 0.5137 GB Notification: Performance of Templates: time 0.0352/0.6962, allocations: 23.54 MB / 0.7399 GB, free: 14.67 MB / 0.545 GB make -j1 -f OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.makefile (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)