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.000898/0.0009036, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.494/1.494, allocations: 223.3 MB / 239.4 MB, free: 5.41 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.001257/0.001257, allocations: 176.5 kB / 290.6 MB, free: 2.086 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4832/0.4832, allocations: 78.55 MB / 420.3 MB, free: 4.258 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00043/0.0004302, allocations: 12 kB / 0.4887 GB, free: 6.047 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1616/0.162, allocations: 69.36 MB / 0.5564 GB, free: 0.6289 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII): time 0.3351/0.4971, allocations: 13.8 MB / 0.5699 GB, free: 30.65 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0114/0.5086, allocations: 3.569 MB / 0.5734 GB, free: 29.36 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005685/0.5143, allocations: 35.91 kB / 0.5734 GB, free: 29.36 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003275/0.5177, allocations: 438 kB / 0.5738 GB, free: 29.21 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007394/0.5251, allocations: 1.218 MB / 0.575 GB, free: 28.64 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.004004/0.5291, allocations: 1.416 MB / 0.5764 GB, free: 28.45 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0061/0.5352, allocations: 3.513 MB / 0.5798 GB, free: 27.61 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002391/0.5376, allocations: 0.7925 MB / 0.5806 GB, free: 27.39 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003657/0.5413, allocations: 1.329 MB / 0.5819 GB, free: 26.96 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003751/0.5451, allocations: 1.773 MB / 0.5836 GB, free: 26.43 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001467/0.5466, allocations: 140.4 kB / 0.5838 GB, free: 26.43 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002181/0.5488, allocations: 283.5 kB / 0.584 GB, free: 26.39 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001319/0.5501, allocations: 0.6072 MB / 0.5846 GB, free: 26.02 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002178/0.5523, allocations: 1.49 MB / 0.5861 GB, free: 25.04 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003535/0.5559, allocations: 3.707 MB / 0.5897 GB, free: 23.62 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.5559, allocations: 0 / 0.5897 GB, free: 23.62 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.5559, allocations: 0 / 0.5897 GB, free: 23.62 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001012/0.556, allocations: 0 / 0.5897 GB, free: 23.62 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.02325/0.5793, allocations: 6.122 MB / 0.5957 GB, free: 21.36 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.112e-05/0.5793, allocations: 10.38 kB / 0.5957 GB, free: 21.36 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01595/0.5953, allocations: 2.295 MB / 0.5979 GB, free: 20.93 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006299/0.6017, allocations: 1.877 MB / 0.5998 GB, free: 19.77 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001119/0.6028, allocations: 0.7486 MB / 0.6005 GB, free: 19.12 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001434/0.6043, allocations: 220.3 kB / 0.6007 GB, free: 19.04 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01196/0.6163, allocations: 3.232 MB / 0.6039 GB, free: 17.87 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001054/0.6164, allocations: 1.094 kB / 0.6039 GB, free: 17.87 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008454/0.6173, allocations: 89.97 kB / 0.6039 GB, free: 17.8 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.806e-05/0.6174, allocations: 51.41 kB / 0.604 GB, free: 17.8 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009766/0.6271, allocations: 2.983 MB / 0.6069 GB, free: 16.83 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.02947/0.6567, allocations: 10.13 MB / 0.6168 GB, free: 11.31 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01354/0.6702, allocations: 4.87 MB / 0.6216 GB, free: 9.309 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005245/0.6755, allocations: 2.163 MB / 0.6237 GB, free: 8.277 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005229/0.6761, allocations: 47.83 kB / 0.6237 GB, free: 8.258 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00575/0.6819, allocations: 2.434 MB / 0.6261 GB, free: 5.953 MB / 430.1 MB Notification: Performance of pre-optimization done (n=248): time 8.376e-06/0.6819, allocations: 0.9844 kB / 0.6261 GB, free: 5.953 MB / 430.1 MB Notification: Performance of matching and sorting (n=248): time 0.1313/0.8132, allocations: 33.69 MB / 0.659 GB, free: 4.145 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001775/0.8134, allocations: 184.2 kB / 0.6592 GB, free: 3.926 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006258/0.8197, allocations: 2.273 MB / 0.6614 GB, free: 1.633 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001123/0.8209, allocations: 77.77 kB / 0.6615 GB, free: 1.551 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001251/0.8222, allocations: 1.156 MB / 0.6626 GB, free: 392 kB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001987/0.8242, allocations: 0.8704 MB / 0.6634 GB, free: 15.5 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001243/0.8254, allocations: 288.5 kB / 0.6637 GB, free: 15.21 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001128/0.8255, allocations: 305.1 kB / 0.664 GB, free: 14.91 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005663/0.8312, allocations: 2.15 MB / 0.6661 GB, free: 12.76 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006021/0.8373, allocations: 2.532 MB / 0.6686 GB, free: 10.14 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.06195/0.8992, allocations: 15.47 MB / 0.6837 GB, free: 10.45 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.721e-05/0.8993, allocations: 0 / 0.6837 GB, free: 10.45 MB / 494.1 MB Notification: Performance of matching and sorting (n=417) (initialization): time 0.05174/0.9511, allocations: 15.33 MB / 0.6987 GB, free: 11.05 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001486/0.9513, allocations: 114.8 kB / 0.6988 GB, free: 10.91 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.434e-05/0.9513, allocations: 10.16 kB / 0.6988 GB, free: 10.9 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02211/0.9734, allocations: 6.277 MB / 0.7049 GB, free: 4.621 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003666/0.9772, allocations: 0.5617 MB / 0.7054 GB, free: 4.059 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0724/1.05, allocations: 24.5 MB / 0.7294 GB, free: 11.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006456/1.056, allocations: 0.5869 MB / 0.7299 GB, free: 10.81 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001018/1.057, allocations: 120 kB / 0.7301 GB, free: 10.7 MB / 0.5294 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.003169/1.06, allocations: 0.5327 MB / 0.7306 GB, free: 10.14 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001699/1.062, allocations: 292.8 kB / 0.7309 GB, free: 9.855 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05031/1.112, allocations: 14.75 MB / 0.7453 GB, free: 11.05 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.927e-05/1.113, allocations: 31.94 kB / 0.7453 GB, free: 11.02 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.872e-05/1.113, allocations: 16 kB / 0.7453 GB, free: 11.01 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001153/1.113, allocations: 15.95 kB / 0.7453 GB, free: 10.99 MB / 0.545 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.06089/1.174, allocations: 18.35 MB / 0.7632 GB, free: 8.477 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.749e-05/1.174, allocations: 0 / 0.7632 GB, free: 8.477 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00187/1.176, allocations: 251.6 kB / 0.7635 GB, free: 8.23 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02226/1.198, allocations: 6.231 MB / 0.7696 GB, free: 1.988 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009584/1.199, allocations: 47.98 kB / 0.7696 GB, free: 1.941 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.377/1.576, allocations: 25.53 MB / 0.7945 GB, free: 164.7 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.619e-06/1.576, allocations: 2.547 kB / 0.7945 GB, free: 164.7 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05647/1.632, allocations: 17.31 MB / 0.8115 GB, free: 160.7 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001385/1.634, allocations: 422.9 kB / 0.8119 GB, free: 160.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001169/1.635, allocations: 45.27 kB / 0.8119 GB, free: 160.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003719/1.639, allocations: 415.5 kB / 0.8123 GB, free: 160.3 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002368/1.641, allocations: 0.5647 MB / 0.8129 GB, free: 160.3 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002545/1.641, allocations: 63.91 kB / 0.8129 GB, free: 160.2 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002642/1.644, allocations: 1.505 MB / 0.8144 GB, free: 159.7 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.91e-07/1.644, allocations: 5.312 kB / 0.8144 GB, free: 159.7 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004359/1.648, allocations: 1.174 MB / 0.8155 GB, free: 159.5 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.0004995/1.649, allocations: 165.2 kB / 0.8157 GB, free: 159.4 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.02012/1.669, allocations: 7.506 MB / 0.823 GB, free: 156.4 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 8.726e-06/1.669, allocations: 4 kB / 0.823 GB, free: 156.4 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.01542/1.685, allocations: 5.093 MB / 0.828 GB, free: 152 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004916/1.69, allocations: 263.5 kB / 0.8283 GB, free: 151.7 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01191/1.701, allocations: 6.599 MB / 0.8347 GB, free: 145.7 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001637/1.703, allocations: 1.807 MB / 0.8365 GB, free: 144.2 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001578/1.705, allocations: 266.4 kB / 0.8367 GB, free: 144.1 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008091/1.706, allocations: 158.9 kB / 0.8369 GB, free: 143.9 MB / 0.5606 GB Notification: Performance of SimCode: time 1.162e-06/1.706, allocations: 0 / 0.8369 GB, free: 143.9 MB / 0.5606 GB Notification: Performance of Templates: time 0.08485/1.79, allocations: 56.22 MB / 0.8918 GB, free: 89.59 MB / 0.5606 GB make -j1 -f OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: