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.001538/0.001538, allocations: 109.9 kB / 16.41 MB, free: 6.492 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.427/1.427, allocations: 222.9 MB / 240.1 MB, free: 4.383 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.001744/0.001744, allocations: 192.5 kB / 290.4 MB, free: 2.117 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4759/0.4759, allocations: 78.53 MB / 419.1 MB, free: 3.156 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002031/0.002031, allocations: 75.83 kB / 0.5543 GB, free: 0.8867 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3351/0.3371, allocations: 68.17 MB / 0.6209 GB, free: 9.684 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII): time 0.01104/0.3482, allocations: 13.68 MB / 0.6343 GB, free: 12.49 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.008645/0.3569, allocations: 3.464 MB / 0.6377 GB, free: 9.02 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003279/0.3602, allocations: 28 kB / 0.6377 GB, free: 8.992 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00226/0.3625, allocations: 0.5576 MB / 0.6382 GB, free: 8.426 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005962/0.3685, allocations: 1.439 MB / 0.6396 GB, free: 6.988 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.004461/0.373, allocations: 1.508 MB / 0.6411 GB, free: 5.5 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.006606/0.3796, allocations: 3.722 MB / 0.6447 GB, free: 1.762 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002094/0.3818, allocations: 0.9012 MB / 0.6456 GB, free: 0.8086 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003198/0.385, allocations: 1.532 MB / 0.6471 GB, free: 15.27 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003218/0.3883, allocations: 1.952 MB / 0.649 GB, free: 13.31 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001273/0.3896, allocations: 284 kB / 0.6493 GB, free: 13.03 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001762/0.3913, allocations: 431.9 kB / 0.6497 GB, free: 12.61 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00126/0.3926, allocations: 0.7623 MB / 0.6504 GB, free: 11.84 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00311/0.3958, allocations: 1.627 MB / 0.652 GB, free: 10.21 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005985/0.4018, allocations: 3.979 MB / 0.6559 GB, free: 6.219 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.4018, allocations: 0 / 0.6559 GB, free: 6.219 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.4018, allocations: 0 / 0.6559 GB, free: 6.219 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.000112/0.4019, allocations: 8 kB / 0.6559 GB, free: 6.211 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.02525/0.4272, allocations: 6.571 MB / 0.6623 GB, free: 15.54 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.786e-05/0.4273, allocations: 12.03 kB / 0.6624 GB, free: 15.53 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01633/0.4436, allocations: 2.275 MB / 0.6646 GB, free: 13.25 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005106/0.4487, allocations: 1.871 MB / 0.6664 GB, free: 11.31 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009904/0.4498, allocations: 0.7328 MB / 0.6671 GB, free: 10.46 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001008/0.4508, allocations: 212 kB / 0.6673 GB, free: 10.26 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00898/0.4598, allocations: 3.035 MB / 0.6703 GB, free: 7.145 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.501e-05/0.4599, allocations: 3.984 kB / 0.6703 GB, free: 7.141 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005815/0.4605, allocations: 87.94 kB / 0.6704 GB, free: 7.055 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.64e-05/0.4606, allocations: 52 kB / 0.6704 GB, free: 7.004 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007522/0.4681, allocations: 2.784 MB / 0.6731 GB, free: 4.203 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.0235/0.4916, allocations: 9.805 MB / 0.6827 GB, free: 9.973 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01229/0.5039, allocations: 4.192 MB / 0.6868 GB, free: 5.652 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004908/0.5089, allocations: 1.964 MB / 0.6887 GB, free: 3.684 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00044/0.5094, allocations: 45.95 kB / 0.6888 GB, free: 3.637 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005774/0.5152, allocations: 2.23 MB / 0.691 GB, free: 1.387 MB / 494.1 MB Notification: Performance of pre-optimization done (n=248): time 5.51e-06/0.5152, allocations: 0 / 0.691 GB, free: 1.387 MB / 494.1 MB Notification: Performance of matching and sorting (n=248): time 0.1259/0.6412, allocations: 27.3 MB / 0.7176 GB, free: 5.961 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001208/0.6413, allocations: 188.2 kB / 0.7178 GB, free: 5.742 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004604/0.6459, allocations: 2.273 MB / 0.72 GB, free: 3.449 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0007578/0.6467, allocations: 73.69 kB / 0.7201 GB, free: 3.371 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.001208/0.6479, allocations: 1.168 MB / 0.7212 GB, free: 2.191 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001622/0.6496, allocations: 0.8665 MB / 0.7221 GB, free: 1.312 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002674/0.6523, allocations: 0.5618 MB / 0.7226 GB, free: 0.7422 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001221/0.6524, allocations: 301.1 kB / 0.7229 GB, free: 456 kB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00528/0.6577, allocations: 1.955 MB / 0.7248 GB, free: 14.48 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005585/0.6633, allocations: 2.326 MB / 0.7271 GB, free: 12.07 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.05867/0.722, allocations: 14.03 MB / 0.7408 GB, free: 13.81 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-05/0.7221, allocations: 3.938 kB / 0.7408 GB, free: 13.81 MB / 0.545 GB Notification: Performance of matching and sorting (n=417) (initialization): time 0.04686/0.7689, allocations: 12.5 MB / 0.753 GB, free: 1.234 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001237/0.7691, allocations: 118.8 kB / 0.7531 GB, free: 1.094 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.935e-05/0.7691, allocations: 8 kB / 0.7531 GB, free: 1.086 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01943/0.7886, allocations: 5.292 MB / 0.7583 GB, free: 11.79 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003189/0.7918, allocations: 0.5656 MB / 0.7588 GB, free: 11.22 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.365/1.157, allocations: 23.15 MB / 0.7815 GB, free: 121.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005087/1.162, allocations: 488.8 kB / 0.7819 GB, free: 121.1 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003866/1.162, allocations: 118.3 kB / 0.782 GB, free: 121.1 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.001396/1.164, allocations: 0.5402 MB / 0.7826 GB, free: 120.7 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00059/1.164, allocations: 299.1 kB / 0.7828 GB, free: 120.7 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03736/1.202, allocations: 11.9 MB / 0.7945 GB, free: 118.3 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.454e-05/1.202, allocations: 23.56 kB / 0.7945 GB, free: 118.3 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.189e-05/1.202, allocations: 19.66 kB / 0.7945 GB, free: 118.3 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.694e-05/1.202, allocations: 11.62 kB / 0.7945 GB, free: 118.3 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.0407/1.243, allocations: 15.5 MB / 0.8096 GB, free: 109.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.135e-05/1.243, allocations: 0 / 0.8096 GB, free: 109.8 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001498/1.244, allocations: 247.7 kB / 0.8099 GB, free: 109.6 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01667/1.261, allocations: 5.252 MB / 0.815 GB, free: 104.3 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006458/1.262, allocations: 55.98 kB / 0.8151 GB, free: 104.3 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0534/1.315, allocations: 24.93 MB / 0.8394 GB, free: 78.95 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/1.315, allocations: 0.5469 kB / 0.8394 GB, free: 78.95 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04226/1.357, allocations: 14.28 MB / 0.8534 GB, free: 64.57 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001297/1.359, allocations: 402.6 kB / 0.8537 GB, free: 64.16 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001216/1.36, allocations: 48 kB / 0.8538 GB, free: 64.11 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003519/1.363, allocations: 303.6 kB / 0.8541 GB, free: 63.82 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002387/1.366, allocations: 0.5841 MB / 0.8546 GB, free: 63.23 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002675/1.366, allocations: 67.98 kB / 0.8547 GB, free: 63.16 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002545/1.369, allocations: 1.503 MB / 0.8562 GB, free: 61.66 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.91e-07/1.369, allocations: 0 / 0.8562 GB, free: 61.66 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003957/1.373, allocations: 1.177 MB / 0.8573 GB, free: 60.48 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.0004349/1.373, allocations: 167.6 kB / 0.8575 GB, free: 60.31 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01701/1.39, allocations: 6.629 MB / 0.864 GB, free: 53.61 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 7.304e-06/1.39, allocations: 0 / 0.864 GB, free: 53.61 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.013/1.403, allocations: 4.389 MB / 0.8682 GB, free: 49.15 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002439/1.406, allocations: 259.3 kB / 0.8685 GB, free: 48.89 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009003/1.415, allocations: 5.39 MB / 0.8738 GB, free: 43.49 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00111/1.416, allocations: 1.806 MB / 0.8755 GB, free: 41.66 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001003/1.417, allocations: 191.4 kB / 0.8757 GB, free: 41.47 MB / 0.5606 GB Notification: Performance of SimCode: time 1.032e-06/1.417, allocations: 0 / 0.8757 GB, free: 41.47 MB / 0.5606 GB Notification: Performance of Templates: time 0.1092/1.526, allocations: 64.03 MB / 0.9382 GB, free: 9.395 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)