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.001335/0.00134, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.393/1.393, allocations: 222.9 MB / 239.2 MB, free: 4.633 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.00129/0.00129, allocations: 187.6 kB / 289.5 MB, free: 2.355 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4727/0.4727, allocations: 78.53 MB / 418.2 MB, free: 3.246 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001756/0.001756, allocations: 83.86 kB / 497.4 MB, free: 6.441 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1556/0.1574, allocations: 68.19 MB / 0.5524 GB, free: 2.223 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII): time 0.2645/0.4219, allocations: 13.66 MB / 0.5657 GB, free: 31.37 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.008199/0.4302, allocations: 3.465 MB / 0.5691 GB, free: 30.29 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003671/0.4339, allocations: 27.97 kB / 0.5691 GB, free: 30.29 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002159/0.4361, allocations: 0.5591 MB / 0.5697 GB, free: 30.01 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005549/0.4417, allocations: 1.415 MB / 0.571 GB, free: 29.28 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_1.xq <> order4_1.x1q, <> on Real numbers is only allowed inside functions. Notification: Performance of NFTyping.typeClassSections: time 0.003777/0.4455, allocations: 1.508 MB / 0.5725 GB, free: 29.11 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.005115/0.4506, allocations: 3.702 MB / 0.5761 GB, free: 28.26 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00135/0.452, allocations: 0.8943 MB / 0.577 GB, free: 28.06 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002369/0.4544, allocations: 1.527 MB / 0.5785 GB, free: 27.63 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002744/0.4571, allocations: 1.959 MB / 0.5804 GB, free: 27.09 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006348/0.4578, allocations: 286.2 kB / 0.5807 GB, free: 27.09 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001094/0.4589, allocations: 430.4 kB / 0.5811 GB, free: 27.09 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005469/0.4594, allocations: 0.7576 MB / 0.5818 GB, free: 26.59 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001366/0.4608, allocations: 1.633 MB / 0.5834 GB, free: 25.48 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003737/0.4646, allocations: 3.922 MB / 0.5873 GB, free: 23.66 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.4646, allocations: 0.7188 kB / 0.5873 GB, free: 23.66 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.4646, allocations: 0 / 0.5873 GB, free: 23.66 MB / 430.1 MB Notification: Performance of Transformations before backend: time 7.891e-05/0.4647, allocations: 0 / 0.5873 GB, free: 23.66 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: 523 * Number of variables: 523 Notification: Performance of Generate backend data structure: time 0.02402/0.4887, allocations: 6.576 MB / 0.5937 GB, free: 21.04 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.027e-05/0.4888, allocations: 8.469 kB / 0.5937 GB, free: 21.04 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01546/0.5042, allocations: 2.277 MB / 0.5959 GB, free: 20.6 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00472/0.509, allocations: 1.878 MB / 0.5977 GB, free: 19.43 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007151/0.5098, allocations: 0.724 MB / 0.5985 GB, free: 18.78 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006355/0.5104, allocations: 212.6 kB / 0.5987 GB, free: 18.71 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007037/0.5174, allocations: 3.034 MB / 0.6016 GB, free: 17.56 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.772e-05/0.5175, allocations: 1.562 kB / 0.6016 GB, free: 17.56 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002519/0.5178, allocations: 89.09 kB / 0.6017 GB, free: 17.49 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.256e-05/0.5178, allocations: 50.19 kB / 0.6018 GB, free: 17.49 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007042/0.5249, allocations: 2.783 MB / 0.6045 GB, free: 16.55 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.02267/0.5476, allocations: 9.883 MB / 0.6141 GB, free: 11.05 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01166/0.5593, allocations: 4.193 MB / 0.6182 GB, free: 9.098 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004566/0.5639, allocations: 1.975 MB / 0.6201 GB, free: 8.082 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003563/0.5643, allocations: 40.08 kB / 0.6202 GB, free: 8.07 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004879/0.5692, allocations: 2.228 MB / 0.6224 GB, free: 6.789 MB / 430.1 MB Notification: Performance of pre-optimization done (n=248): time 5.681e-06/0.5692, allocations: 0 / 0.6224 GB, free: 6.789 MB / 430.1 MB Notification: Performance of matching and sorting (n=248): time 0.1181/0.6873, allocations: 27.31 MB / 0.649 GB, free: 11.54 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001221/0.6875, allocations: 180.2 kB / 0.6492 GB, free: 11.33 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004026/0.6915, allocations: 2.269 MB / 0.6514 GB, free: 9.039 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009531/0.6925, allocations: 73.7 kB / 0.6515 GB, free: 8.961 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00101/0.6935, allocations: 1.164 MB / 0.6526 GB, free: 7.785 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001418/0.6949, allocations: 0.8684 MB / 0.6535 GB, free: 6.906 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001185/0.6961, allocations: 0.5618 MB / 0.654 GB, free: 6.336 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001169/0.6962, allocations: 305.1 kB / 0.6543 GB, free: 6.035 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004513/0.7008, allocations: 1.955 MB / 0.6562 GB, free: 4.078 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00505/0.7058, allocations: 2.329 MB / 0.6585 GB, free: 1.66 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.05721/0.7631, allocations: 14.08 MB / 0.6722 GB, free: 3.375 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.402e-05/0.7631, allocations: 0 / 0.6722 GB, free: 3.375 MB / 478.1 MB Notification: Performance of matching and sorting (n=417) (initialization): time 0.04324/0.8064, allocations: 12.5 MB / 0.6845 GB, free: 6.801 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001135/0.8065, allocations: 118.8 kB / 0.6846 GB, free: 6.66 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.112e-05/0.8066, allocations: 11.94 kB / 0.6846 GB, free: 6.648 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01856/0.8251, allocations: 5.293 MB / 0.6897 GB, free: 1.352 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003247/0.8284, allocations: 0.5734 MB / 0.6903 GB, free: 0.7773 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06306/0.8915, allocations: 23.2 MB / 0.713 GB, free: 9.41 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005573/0.8971, allocations: 489.7 kB / 0.7134 GB, free: 8.93 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008569/0.898, allocations: 116 kB / 0.7135 GB, free: 8.816 MB / 0.5137 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.001814/0.8999, allocations: 0.5398 MB / 0.7141 GB, free: 8.258 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001057/0.9009, allocations: 300.3 kB / 0.7144 GB, free: 7.961 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04234/0.9433, allocations: 11.89 MB / 0.726 GB, free: 12.02 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.999e-05/0.9434, allocations: 24 kB / 0.726 GB, free: 12 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.329e-05/0.9434, allocations: 23.94 kB / 0.726 GB, free: 11.97 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.791e-05/0.9435, allocations: 11.95 kB / 0.726 GB, free: 11.96 MB / 0.5294 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.04814/0.9917, allocations: 15.52 MB / 0.7412 GB, free: 12.28 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.127e-05/0.9917, allocations: 1.188 kB / 0.7412 GB, free: 12.28 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001666/0.9934, allocations: 247.6 kB / 0.7414 GB, free: 12.04 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01886/1.012, allocations: 5.252 MB / 0.7465 GB, free: 6.77 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008089/1.013, allocations: 55.98 kB / 0.7466 GB, free: 6.715 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3211/1.334, allocations: 24.96 MB / 0.771 GB, free: 165.1 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.174e-06/1.334, allocations: 1.219 kB / 0.771 GB, free: 165.1 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05855/1.393, allocations: 14.27 MB / 0.7849 GB, free: 164.7 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0014/1.394, allocations: 411.9 kB / 0.7853 GB, free: 164.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001662/1.396, allocations: 46.38 kB / 0.7853 GB, free: 164.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004558/1.401, allocations: 298.2 kB / 0.7856 GB, free: 164.6 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002498/1.403, allocations: 0.5821 MB / 0.7862 GB, free: 164.6 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002925/1.403, allocations: 66.36 kB / 0.7863 GB, free: 164.6 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002967/1.406, allocations: 1.503 MB / 0.7877 GB, free: 164.4 MB / 0.5606 GB Notification: Performance of sort global known variables: time 4.01e-07/1.406, allocations: 0 / 0.7877 GB, free: 164.4 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.006145/1.413, allocations: 1.17 MB / 0.7889 GB, free: 164.4 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.0005668/1.413, allocations: 173.5 kB / 0.789 GB, free: 164.3 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.02232/1.435, allocations: 6.727 MB / 0.7956 GB, free: 163.7 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 5.67e-06/1.435, allocations: 1.75 kB / 0.7956 GB, free: 163.7 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.01453/1.45, allocations: 4.406 MB / 0.7999 GB, free: 162.7 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002757/1.453, allocations: 267.8 kB / 0.8002 GB, free: 162.5 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01036/1.463, allocations: 5.403 MB / 0.8054 GB, free: 159.8 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001635/1.465, allocations: 1.807 MB / 0.8072 GB, free: 159 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001263/1.466, allocations: 264.1 kB / 0.8075 GB, free: 159 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006115/1.467, allocations: 168.6 kB / 0.8076 GB, free: 159 MB / 0.5606 GB Notification: Performance of SimCode: time 1.192e-06/1.467, allocations: 0.9062 kB / 0.8076 GB, free: 159 MB / 0.5606 GB Notification: Performance of Templates: time 0.09126/1.558, allocations: 63.02 MB / 0.8692 GB, free: 109.8 MB / 0.5606 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)