Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.conf.json 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/Modelica 4.0.0+maint.om/package.mo", uses=false) 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/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII") translateModel(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001041/0.001041, allocations: 182.2 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.182/1.182, allocations: 222.9 MB / 239.7 MB, free: 10.99 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000921/0.0009209, allocations: 104.6 kB / 289.9 MB, free: 10.96 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4077/0.4077, allocations: 78.51 MB / 418.5 MB, free: 8.539 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00117/0.00117, allocations: 71.89 kB / 497.5 MB, free: 10.31 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.282/0.2832, allocations: 68.16 MB / 0.5524 GB, free: 19.89 MB / 378.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII): time 0.008963/0.2922, allocations: 14.46 MB / 0.5665 GB, free: 5.371 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.006695/0.299, allocations: 3.608 MB / 0.5701 GB, free: 1.754 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002134/0.3011, allocations: 32 kB / 0.5701 GB, free: 1.723 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00106/0.3023, allocations: 433.1 kB / 0.5705 GB, free: 1.297 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002903/0.3052, allocations: 1.243 MB / 0.5717 GB, free: 60 kB / 378.7 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_1.xq <> order4_1.x1q, <> on Real numbers is only allowed inside functions. Notification: Performance of NFTyping.typeClassSections: time 0.002929/0.3081, allocations: 1.401 MB / 0.5731 GB, free: 14.68 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.003602/0.3117, allocations: 3.573 MB / 0.5766 GB, free: 11.1 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000985/0.3127, allocations: 0.8001 MB / 0.5774 GB, free: 10.25 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00161/0.3143, allocations: 1.419 MB / 0.5787 GB, free: 8.82 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001664/0.316, allocations: 1.855 MB / 0.5806 GB, free: 6.957 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002957/0.3163, allocations: 179.9 kB / 0.5807 GB, free: 6.781 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006422/0.317, allocations: 303.9 kB / 0.581 GB, free: 6.484 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005442/0.3175, allocations: 0.6569 MB / 0.5817 GB, free: 5.824 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001166/0.3187, allocations: 1.522 MB / 0.5831 GB, free: 4.293 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002995/0.3217, allocations: 3.814 MB / 0.5869 GB, free: 476 kB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.3217, allocations: 4 kB / 0.5869 GB, free: 472 kB / 394.7 MB Notification: Performance of FrontEnd: time 9.41e-07/0.3217, allocations: 0 / 0.5869 GB, free: 472 kB / 394.7 MB Notification: Performance of Transformations before backend: time 3.203e-05/0.3218, allocations: 0 / 0.5869 GB, free: 472 kB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 523 * Number of variables: 523 Notification: Performance of Generate backend data structure: time 0.02163/0.3434, allocations: 6.575 MB / 0.5933 GB, free: 9.789 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.287e-05/0.3435, allocations: 8.031 kB / 0.5933 GB, free: 9.781 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01353/0.357, allocations: 2.279 MB / 0.5955 GB, free: 7.496 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003488/0.3605, allocations: 1.871 MB / 0.5974 GB, free: 5.559 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006993/0.3612, allocations: 0.733 MB / 0.5981 GB, free: 4.711 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004055/0.3616, allocations: 212 kB / 0.5983 GB, free: 4.504 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00612/0.3678, allocations: 3.032 MB / 0.6012 GB, free: 1.395 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.554e-05/0.3678, allocations: 0 / 0.6012 GB, free: 1.395 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002378/0.3681, allocations: 87.94 kB / 0.6013 GB, free: 1.309 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.527e-05/0.3681, allocations: 52 kB / 0.6014 GB, free: 1.258 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005602/0.3737, allocations: 2.784 MB / 0.6041 GB, free: 14.46 MB / 426.7 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.01751/0.3913, allocations: 9.887 MB / 0.6137 GB, free: 4.148 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01065/0.4019, allocations: 4.189 MB / 0.6178 GB, free: 15.82 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004073/0.406, allocations: 1.972 MB / 0.6198 GB, free: 13.85 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002742/0.4063, allocations: 41.95 kB / 0.6198 GB, free: 13.81 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004312/0.4107, allocations: 2.228 MB / 0.622 GB, free: 11.56 MB / 442.7 MB Notification: Performance of pre-optimization done (n=248): time 6.221e-06/0.4107, allocations: 0 / 0.622 GB, free: 11.56 MB / 442.7 MB Notification: Performance of matching and sorting (n=248): time 0.116/0.5267, allocations: 27.31 MB / 0.6486 GB, free: 128 kB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001378/0.5269, allocations: 180.3 kB / 0.6488 GB, free: 15.91 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004122/0.531, allocations: 2.273 MB / 0.651 GB, free: 13.62 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008954/0.532, allocations: 73.7 kB / 0.6511 GB, free: 13.54 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001052/0.533, allocations: 1.164 MB / 0.6522 GB, free: 12.36 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00116/0.5342, allocations: 0.8665 MB / 0.6531 GB, free: 11.48 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001077/0.5353, allocations: 0.5618 MB / 0.6536 GB, free: 10.91 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 9.42e-05/0.5354, allocations: 305.1 kB / 0.6539 GB, free: 10.61 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004148/0.5395, allocations: 1.955 MB / 0.6558 GB, free: 8.656 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004435/0.544, allocations: 2.326 MB / 0.6581 GB, free: 6.238 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.05448/0.5985, allocations: 14.04 MB / 0.6718 GB, free: 7.961 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.177e-05/0.5985, allocations: 4 kB / 0.6718 GB, free: 7.957 MB / 490.7 MB Notification: Performance of matching and sorting (n=417) (initialization): time 0.2668/0.8653, allocations: 12.5 MB / 0.684 GB, free: 106.7 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.304e-05/0.8655, allocations: 118.9 kB / 0.6841 GB, free: 106.5 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.42e-05/0.8655, allocations: 10.53 kB / 0.6841 GB, free: 106.5 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01933/0.8848, allocations: 5.291 MB / 0.6893 GB, free: 106.4 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003611/0.8885, allocations: 0.5633 MB / 0.6899 GB, free: 106.4 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05357/0.9421, allocations: 21.31 MB / 0.7107 GB, free: 97.8 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004351/0.9465, allocations: 488.6 kB / 0.7111 GB, free: 97.45 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006633/0.9472, allocations: 120 kB / 0.7113 GB, free: 97.33 MB / 490.7 MB Warning: Assuming fixed start value for the following 7 variables: order3_2.delta:VARIABLE(flow=false start = order3_2.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order3_2.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order3_2.e1q:VARIABLE(start = order3_2.e1q0 unit = "1" fixed = true ) "q-axis transient voltage" type: Real order2.delta:VARIABLE(flow=false start = order2.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order2.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order4_1.delta:VARIABLE(flow=false start = order4_1.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order4_1.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,$whenCondition4,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (330): * Single equations (assignments): 325 * Array equations: 0 * Algorithm blocks: 4 * 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 {(63,25,8.1%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001564/0.9488, allocations: 0.5372 MB / 0.7118 GB, free: 96.78 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007408/0.9495, allocations: 294 kB / 0.7121 GB, free: 96.54 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0394/0.9889, allocations: 11.91 MB / 0.7237 GB, free: 84.58 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.458e-05/0.989, allocations: 24 kB / 0.7237 GB, free: 84.56 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.672e-05/0.9891, allocations: 20 kB / 0.7237 GB, free: 84.54 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.434e-05/0.9891, allocations: 11.95 kB / 0.7237 GB, free: 84.53 MB / 490.7 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.04185/1.031, allocations: 15.51 MB / 0.7389 GB, free: 68.96 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.388e-05/1.031, allocations: 0 / 0.7389 GB, free: 68.96 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001491/1.033, allocations: 251.1 kB / 0.7391 GB, free: 68.71 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01645/1.049, allocations: 5.258 MB / 0.7443 GB, free: 63.45 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005701/1.05, allocations: 51.98 kB / 0.7443 GB, free: 63.4 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05042/1.1, allocations: 22.68 MB / 0.7665 GB, free: 40.33 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/1.1, allocations: 0 / 0.7665 GB, free: 40.33 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.268/1.368, allocations: 93.22 MB / 0.8575 GB, free: 10.36 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000735/1.369, allocations: 408.8 kB / 0.8579 GB, free: 9.941 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006411/1.37, allocations: 48 kB / 0.8579 GB, free: 9.895 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003227/1.373, allocations: 299.6 kB / 0.8582 GB, free: 9.602 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002087/1.375, allocations: 0.5644 MB / 0.8588 GB, free: 9.035 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002908/1.375, allocations: 67.98 kB / 0.8588 GB, free: 8.969 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.002246/1.377, allocations: 1.507 MB / 0.8603 GB, free: 7.457 MB / 0.5417 GB Notification: Performance of sort global known variables: time 2.41e-07/1.377, allocations: 0 / 0.8603 GB, free: 7.457 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.004507/1.382, allocations: 1.642 MB / 0.8619 GB, free: 5.816 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 17 (order3_2.delta,order3_2.w,order3_2.e1q,order2.delta,order2.w,order4_1.delta,order4_1.w,order4_1.e1q,order4_1.e1d,Exc1.ExcitationSystem.x_scaled[1],Exc1.derivativeBlock.x,Exc1.firstOrder2.y,Exc1.simpleLagLim.state,Exc2.ExcitationSystem.x_scaled[1],Exc2.derivativeBlock.x,Exc2.firstOrder2.y,Exc2.simpleLagLim.state) * Number of discrete variables: 4 ($whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (157): * Single equations (assignments): 152 * Array equations: 0 * Algorithm blocks: 2 * 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): 1 system {(65,23,7.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,6), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004147/1.382, allocations: 174.9 kB / 0.8621 GB, free: 5.633 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01728/1.4, allocations: 6.622 MB / 0.8685 GB, free: 14.93 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 3.997e-06/1.4, allocations: 0 / 0.8685 GB, free: 14.93 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.01281/1.413, allocations: 4.407 MB / 0.8728 GB, free: 10.46 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00185/1.414, allocations: 261 kB / 0.8731 GB, free: 10.2 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01943/1.434, allocations: 10.06 MB / 0.8829 GB, free: 52 kB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001548/1.435, allocations: 1.923 MB / 0.8848 GB, free: 14.09 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.001092/1.437, allocations: 278.4 kB / 0.8851 GB, free: 13.82 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006077/1.437, allocations: 179.3 kB / 0.8852 GB, free: 13.64 MB / 0.573 GB Notification: Performance of SimCode: time 1.793e-06/1.437, allocations: 0 / 0.8852 GB, free: 13.64 MB / 0.573 GB Notification: Performance of Templates: time 0.3206/1.758, allocations: 86.03 MB / 0.9692 GB, free: 142 MB / 0.573 GB make -j1 -f OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.makefile (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.sim & ./OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe 2>&1)