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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004457/0.004458, allocations: 105.3 kB / 15.74 MB, free: 6.441 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.307/1.307, allocations: 222.9 MB / 239.4 MB, free: 4.516 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.001541/0.001541, allocations: 188.5 kB / 289.7 MB, free: 2.238 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4458/0.4458, allocations: 78.52 MB / 418.4 MB, free: 3.152 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001695/0.001695, allocations: 79.88 kB / 0.5537 GB, free: 0.8984 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3516/0.3534, allocations: 68.18 MB / 0.6203 GB, free: 9.602 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII): time 0.01084/0.3642, allocations: 13.67 MB / 0.6336 GB, free: 12.48 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.007512/0.3718, allocations: 3.468 MB / 0.637 GB, free: 9 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001324/0.3731, allocations: 28 kB / 0.637 GB, free: 8.973 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001241/0.3744, allocations: 0.5615 MB / 0.6376 GB, free: 8.402 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003634/0.3781, allocations: 1.421 MB / 0.639 GB, free: 6.98 MB / 446.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_1.xq <> order4_1.x1q, <> on Real numbers is only allowed inside functions. Notification: Performance of NFTyping.typeClassSections: time 0.00342/0.3815, allocations: 1.511 MB / 0.6404 GB, free: 5.488 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.004184/0.3857, allocations: 3.729 MB / 0.6441 GB, free: 1.742 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001105/0.3868, allocations: 0.8973 MB / 0.6449 GB, free: 0.793 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001885/0.3887, allocations: 1.533 MB / 0.6464 GB, free: 15.25 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001969/0.3907, allocations: 1.952 MB / 0.6483 GB, free: 13.29 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003788/0.3911, allocations: 284 kB / 0.6486 GB, free: 13.01 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007203/0.3918, allocations: 427.8 kB / 0.649 GB, free: 12.6 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005859/0.3924, allocations: 0.7623 MB / 0.6498 GB, free: 11.83 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001302/0.3937, allocations: 1.631 MB / 0.6514 GB, free: 10.19 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003582/0.3973, allocations: 3.975 MB / 0.6552 GB, free: 6.207 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.3973, allocations: 4 kB / 0.6553 GB, free: 6.203 MB / 462.1 MB Notification: Performance of FrontEnd: time 3.397e-06/0.3973, allocations: 0 / 0.6553 GB, free: 6.203 MB / 462.1 MB Notification: Performance of Transformations before backend: time 4.493e-05/0.3974, allocations: 3.938 kB / 0.6553 GB, free: 6.199 MB / 462.1 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.02319/0.4206, allocations: 6.571 MB / 0.6617 GB, free: 15.53 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.885e-05/0.4206, allocations: 8.031 kB / 0.6617 GB, free: 15.52 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01549/0.4361, allocations: 2.278 MB / 0.6639 GB, free: 13.24 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004574/0.4408, allocations: 1.874 MB / 0.6657 GB, free: 11.3 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008621/0.4417, allocations: 0.7289 MB / 0.6664 GB, free: 10.45 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000886/0.4426, allocations: 216 kB / 0.6667 GB, free: 10.24 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007719/0.4503, allocations: 3.032 MB / 0.6696 GB, free: 7.133 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.963e-05/0.4504, allocations: 4 kB / 0.6696 GB, free: 7.129 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004168/0.4508, allocations: 87.94 kB / 0.6697 GB, free: 7.043 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.862e-05/0.4509, allocations: 48 kB / 0.6697 GB, free: 6.996 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0064/0.4573, allocations: 2.788 MB / 0.6725 GB, free: 4.191 MB / 478.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.02101/0.4783, allocations: 9.809 MB / 0.682 GB, free: 9.957 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01051/0.4888, allocations: 4.192 MB / 0.6861 GB, free: 5.637 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0042/0.4931, allocations: 1.961 MB / 0.6881 GB, free: 3.672 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003885/0.4935, allocations: 41.95 kB / 0.6881 GB, free: 3.629 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004801/0.4983, allocations: 2.234 MB / 0.6903 GB, free: 1.375 MB / 494.1 MB Notification: Performance of pre-optimization done (n=248): time 5.41e-06/0.4983, allocations: 0 / 0.6903 GB, free: 1.375 MB / 494.1 MB Notification: Performance of matching and sorting (n=248): time 0.1088/0.6072, allocations: 27.3 MB / 0.7169 GB, free: 5.949 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001156/0.6073, allocations: 180.2 kB / 0.7171 GB, free: 5.738 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004141/0.6115, allocations: 2.273 MB / 0.7193 GB, free: 3.445 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0006727/0.6122, allocations: 73.7 kB / 0.7194 GB, free: 3.367 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.001008/0.6132, allocations: 1.164 MB / 0.7205 GB, free: 2.191 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001295/0.6145, allocations: 0.8703 MB / 0.7214 GB, free: 1.309 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001127/0.6156, allocations: 0.5618 MB / 0.7219 GB, free: 0.7383 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 9.844e-05/0.6157, allocations: 309.1 kB / 0.7222 GB, free: 444 kB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004037/0.6198, allocations: 1.955 MB / 0.7241 GB, free: 14.48 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004273/0.6241, allocations: 2.318 MB / 0.7264 GB, free: 12.07 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.05168/0.6758, allocations: 14.03 MB / 0.7401 GB, free: 13.8 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.036e-05/0.6758, allocations: 4 kB / 0.7401 GB, free: 13.8 MB / 0.545 GB Notification: Performance of matching and sorting (n=417) (initialization): time 0.0375/0.7133, allocations: 12.5 MB / 0.7523 GB, free: 1.227 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001183/0.7135, allocations: 114.8 kB / 0.7524 GB, free: 1.09 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.382e-05/0.7135, allocations: 8 kB / 0.7524 GB, free: 1.082 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0166/0.7301, allocations: 5.296 MB / 0.7576 GB, free: 11.78 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00292/0.7331, allocations: 0.5656 MB / 0.7582 GB, free: 11.21 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3573/1.09, allocations: 23.16 MB / 0.7808 GB, free: 121.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004058/1.094, allocations: 493.6 kB / 0.7812 GB, free: 121 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004212/1.095, allocations: 116.5 kB / 0.7814 GB, free: 121 MB / 0.5606 GB 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.001127/1.096, allocations: 0.5372 MB / 0.7819 GB, free: 120.6 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005229/1.097, allocations: 302.1 kB / 0.7822 GB, free: 120.6 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.034/1.131, allocations: 11.89 MB / 0.7938 GB, free: 118.2 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.524e-05/1.131, allocations: 27.62 kB / 0.7938 GB, free: 118.2 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.432e-05/1.131, allocations: 15.72 kB / 0.7938 GB, free: 118.2 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.294e-05/1.131, allocations: 25.05 kB / 0.7938 GB, free: 118.2 MB / 0.5606 GB 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.03767/1.168, allocations: 15.48 MB / 0.809 GB, free: 109.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.028e-05/1.169, allocations: 11.92 kB / 0.809 GB, free: 109.8 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001425/1.17, allocations: 239.7 kB / 0.8092 GB, free: 109.6 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01482/1.185, allocations: 5.254 MB / 0.8143 GB, free: 104.3 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005099/1.185, allocations: 47.98 kB / 0.8144 GB, free: 104.2 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04663/1.232, allocations: 24.94 MB / 0.8387 GB, free: 78.9 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.514e-06/1.232, allocations: 0 / 0.8387 GB, free: 78.9 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03765/1.27, allocations: 14.28 MB / 0.8527 GB, free: 64.52 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008614/1.271, allocations: 402.5 kB / 0.8531 GB, free: 64.12 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000454/1.271, allocations: 48 kB / 0.8531 GB, free: 64.07 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002636/1.274, allocations: 303.6 kB / 0.8534 GB, free: 63.77 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00197/1.276, allocations: 0.5802 MB / 0.854 GB, free: 63.19 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001969/1.276, allocations: 67.27 kB / 0.854 GB, free: 63.13 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001823/1.278, allocations: 1.503 MB / 0.8555 GB, free: 61.62 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.91e-07/1.278, allocations: 0 / 0.8555 GB, free: 61.62 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.00271/1.28, allocations: 1.178 MB / 0.8567 GB, free: 60.44 MB / 0.5606 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.0003508/1.281, allocations: 169.6 kB / 0.8568 GB, free: 60.27 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01456/1.295, allocations: 6.621 MB / 0.8633 GB, free: 53.57 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 5.55e-06/1.295, allocations: 0 / 0.8633 GB, free: 53.57 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.01038/1.306, allocations: 4.401 MB / 0.8676 GB, free: 49.11 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001921/1.308, allocations: 272.9 kB / 0.8678 GB, free: 48.84 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008593/1.316, allocations: 5.328 MB / 0.873 GB, free: 43.51 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009393/1.317, allocations: 1.806 MB / 0.8748 GB, free: 41.68 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0009135/1.318, allocations: 258.5 kB / 0.8751 GB, free: 41.42 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005083/1.319, allocations: 171.4 kB / 0.8752 GB, free: 41.25 MB / 0.5606 GB Notification: Performance of SimCode: time 6.82e-07/1.319, allocations: 0 / 0.8752 GB, free: 41.25 MB / 0.5606 GB Notification: Performance of Templates: time 0.08847/1.407, allocations: 63.63 MB / 0.9374 GB, free: 9.66 MB / 0.5919 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)