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.00811/0.00811, allocations: 97.22 kB / 15.73 MB, free: 6.047 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.355/1.355, allocations: 222.9 MB / 239.4 MB, free: 4.562 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.001364/0.001364, allocations: 195.4 kB / 289.7 MB, free: 2.27 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4529/0.4529, allocations: 78.52 MB / 418.4 MB, free: 3.184 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001356/0.001356, allocations: 76.09 kB / 0.5537 GB, free: 0.957 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3135/0.3148, allocations: 68.16 MB / 0.6202 GB, free: 9.668 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII): time 0.00981/0.3247, allocations: 13.68 MB / 0.6336 GB, free: 12.52 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.007657/0.3324, allocations: 3.464 MB / 0.637 GB, free: 9.047 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002035/0.3345, allocations: 28 kB / 0.637 GB, free: 9.02 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001323/0.3358, allocations: 0.5654 MB / 0.6376 GB, free: 8.445 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004202/0.34, allocations: 1.419 MB / 0.639 GB, free: 7.023 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.003227/0.3433, allocations: 1.511 MB / 0.6404 GB, free: 5.531 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.004622/0.3479, allocations: 3.722 MB / 0.6441 GB, free: 1.793 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001161/0.3491, allocations: 0.9012 MB / 0.6449 GB, free: 0.8398 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001983/0.3511, allocations: 1.521 MB / 0.6464 GB, free: 15.31 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002113/0.3532, allocations: 1.964 MB / 0.6483 GB, free: 13.34 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004515/0.3537, allocations: 284 kB / 0.6486 GB, free: 13.06 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008003/0.3545, allocations: 423.9 kB / 0.649 GB, free: 12.65 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006281/0.3551, allocations: 0.7623 MB / 0.6498 GB, free: 11.88 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001409/0.3565, allocations: 1.631 MB / 0.6514 GB, free: 10.24 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003961/0.3605, allocations: 3.996 MB / 0.6553 GB, free: 6.234 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.3605, allocations: 0 / 0.6553 GB, free: 6.234 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.3605, allocations: 0 / 0.6553 GB, free: 6.234 MB / 462.1 MB Notification: Performance of Transformations before backend: time 3.736e-05/0.3606, allocations: 0 / 0.6553 GB, free: 6.234 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.02198/0.3826, allocations: 6.693 MB / 0.6618 GB, free: 15.44 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.779e-05/0.3826, allocations: 8.031 kB / 0.6618 GB, free: 15.43 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01495/0.3976, allocations: 2.288 MB / 0.664 GB, free: 13.14 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003792/0.4014, allocations: 1.885 MB / 0.6659 GB, free: 11.19 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000729/0.4022, allocations: 0.7329 MB / 0.6666 GB, free: 10.34 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004843/0.4027, allocations: 219.9 kB / 0.6668 GB, free: 10.13 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006241/0.4089, allocations: 3.028 MB / 0.6698 GB, free: 7.023 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.713e-05/0.409, allocations: 8 kB / 0.6698 GB, free: 7.016 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002453/0.4092, allocations: 83.94 kB / 0.6698 GB, free: 6.934 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.278e-05/0.4093, allocations: 48 kB / 0.6699 GB, free: 6.887 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00582/0.4151, allocations: 2.792 MB / 0.6726 GB, free: 4.078 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.02176/0.4369, allocations: 9.831 MB / 0.6822 GB, free: 9.824 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01734/0.4542, allocations: 4.18 MB / 0.6863 GB, free: 5.516 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007287/0.4616, allocations: 1.972 MB / 0.6882 GB, free: 3.539 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006309/0.4623, allocations: 37.97 kB / 0.6883 GB, free: 3.5 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008024/0.4703, allocations: 2.232 MB / 0.6904 GB, free: 1.246 MB / 494.1 MB Notification: Performance of pre-optimization done (n=248): time 8.636e-06/0.4704, allocations: 7.938 kB / 0.6905 GB, free: 1.238 MB / 494.1 MB Notification: Performance of matching and sorting (n=248): time 0.1546/0.625, allocations: 27.31 MB / 0.7171 GB, free: 5.801 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001029/0.6251, allocations: 184.2 kB / 0.7173 GB, free: 5.586 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003378/0.6285, allocations: 2.277 MB / 0.7195 GB, free: 3.289 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0005965/0.6291, allocations: 69.7 kB / 0.7196 GB, free: 3.215 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008415/0.63, allocations: 1.181 MB / 0.7207 GB, free: 2.023 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009563/0.6309, allocations: 0.914 MB / 0.7216 GB, free: 1.102 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001096/0.632, allocations: 0.5658 MB / 0.7222 GB, free: 0.5273 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 8.626e-05/0.6321, allocations: 301.1 kB / 0.7225 GB, free: 236 kB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004379/0.6365, allocations: 1.951 MB / 0.7244 GB, free: 14.28 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004644/0.6412, allocations: 2.326 MB / 0.7267 GB, free: 11.86 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.05568/0.6969, allocations: 14.02 MB / 0.7403 GB, free: 13.61 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-05/0.6969, allocations: 11.94 kB / 0.7404 GB, free: 13.59 MB / 0.545 GB Notification: Performance of matching and sorting (n=417) (initialization): time 0.04288/0.7398, allocations: 12.52 MB / 0.7526 GB, free: 1.008 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001008/0.74, allocations: 117.1 kB / 0.7527 GB, free: 0.8711 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.261e-05/0.74, allocations: 8 kB / 0.7527 GB, free: 0.8633 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0185/0.7585, allocations: 5.292 MB / 0.7579 GB, free: 11.57 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003038/0.7616, allocations: 0.5734 MB / 0.7584 GB, free: 10.99 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3574/1.119, allocations: 23.19 MB / 0.7811 GB, free: 120.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004137/1.123, allocations: 491.8 kB / 0.7815 GB, free: 120.9 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003026/1.123, allocations: 117.8 kB / 0.7817 GB, free: 120.9 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.001096/1.125, allocations: 0.5347 MB / 0.7822 GB, free: 120.5 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004822/1.125, allocations: 311.9 kB / 0.7825 GB, free: 120.5 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03726/1.162, allocations: 11.91 MB / 0.7941 GB, free: 118.1 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.037e-05/1.162, allocations: 23.53 kB / 0.7941 GB, free: 118.1 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.482e-05/1.162, allocations: 19.69 kB / 0.7941 GB, free: 118.1 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.858e-05/1.163, allocations: 11.53 kB / 0.7942 GB, free: 118.1 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.04247/1.205, allocations: 15.5 MB / 0.8093 GB, free: 109.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-05/1.205, allocations: 0 / 0.8093 GB, free: 109.5 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001464/1.207, allocations: 247.6 kB / 0.8095 GB, free: 109.3 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01696/1.224, allocations: 5.25 MB / 0.8147 GB, free: 104 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005277/1.224, allocations: 51.98 kB / 0.8147 GB, free: 104 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05345/1.278, allocations: 24.97 MB / 0.8391 GB, free: 78.58 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.118e-06/1.278, allocations: 3.938 kB / 0.8391 GB, free: 78.57 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04204/1.32, allocations: 14.29 MB / 0.8531 GB, free: 64.18 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008517/1.321, allocations: 421.9 kB / 0.8535 GB, free: 63.78 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004991/1.321, allocations: 47.98 kB / 0.8535 GB, free: 63.73 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002811/1.324, allocations: 299.6 kB / 0.8538 GB, free: 63.44 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001927/1.326, allocations: 0.5841 MB / 0.8544 GB, free: 62.85 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002022/1.326, allocations: 71.98 kB / 0.8544 GB, free: 62.78 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001812/1.328, allocations: 1.495 MB / 0.8559 GB, free: 61.28 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.5e-07/1.328, allocations: 0 / 0.8559 GB, free: 61.28 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.00271/1.331, allocations: 1.182 MB / 0.857 GB, free: 60.13 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.0003511/1.331, allocations: 169.6 kB / 0.8572 GB, free: 59.96 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01594/1.347, allocations: 6.633 MB / 0.8637 GB, free: 53.25 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 4.92e-06/1.347, allocations: 0 / 0.8637 GB, free: 53.25 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.01214/1.359, allocations: 4.421 MB / 0.868 GB, free: 48.77 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001921/1.361, allocations: 273.3 kB / 0.8683 GB, free: 48.5 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007709/1.369, allocations: 5.428 MB / 0.8736 GB, free: 43.06 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000894/1.37, allocations: 1.806 MB / 0.8753 GB, free: 41.23 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0008476/1.37, allocations: 262.5 kB / 0.8756 GB, free: 40.97 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005236/1.371, allocations: 175.4 kB / 0.8757 GB, free: 40.8 MB / 0.5606 GB Notification: Performance of SimCode: time 6.51e-07/1.371, allocations: 0 / 0.8757 GB, free: 40.8 MB / 0.5606 GB Notification: Performance of Templates: time 0.08038/1.451, allocations: 63.65 MB / 0.9379 GB, free: 9.176 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)