Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_dev_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.1.0-master/package.mo", uses=false) Using package OpenIPSL with version 3.1.0-dev (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/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_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII") translateModel(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_dev_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.001447/0.001447, allocations: 107.2 kB / 15.99 MB, free: 5.895 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.365/1.365, allocations: 222.9 MB / 239.6 MB, free: 4.75 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.001307/0.001307, allocations: 188.5 kB / 289.9 MB, free: 2.484 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5489/0.5489, allocations: 91.9 MB / 432 MB, free: 9.414 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001623/0.001623, allocations: 71.89 kB / 0.502 GB, free: 8.102 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3927/0.3943, allocations: 71.26 MB / 0.5716 GB, free: 36.48 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII): time 0.01026/0.4046, allocations: 14.5 MB / 0.5858 GB, free: 26.91 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.007838/0.4125, allocations: 3.614 MB / 0.5893 GB, free: 24.31 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003159/0.4158, allocations: 31.88 kB / 0.5893 GB, free: 24.31 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001524/0.4173, allocations: 434.1 kB / 0.5898 GB, free: 24.14 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004275/0.4216, allocations: 1.224 MB / 0.591 GB, free: 23.32 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003063/0.4247, allocations: 1.409 MB / 0.5923 GB, free: 22.55 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.004889/0.4296, allocations: 3.698 MB / 0.5959 GB, free: 20.69 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001588/0.4312, allocations: 0.8962 MB / 0.5968 GB, free: 20.22 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002585/0.4338, allocations: 1.541 MB / 0.5983 GB, free: 19.43 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002828/0.4366, allocations: 1.952 MB / 0.6002 GB, free: 18.47 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001199/0.4378, allocations: 283.7 kB / 0.6005 GB, free: 18.47 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001937/0.4398, allocations: 440.2 kB / 0.6009 GB, free: 18.42 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007366/0.4405, allocations: 0.7559 MB / 0.6017 GB, free: 17.91 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001882/0.4424, allocations: 1.647 MB / 0.6033 GB, free: 16.8 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003345/0.4458, allocations: 3.074 MB / 0.6063 GB, free: 15.57 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.4458, allocations: 1.031 kB / 0.6063 GB, free: 15.57 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.4458, allocations: 0 / 0.6063 GB, free: 15.57 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001112/0.4459, allocations: 0 / 0.6063 GB, free: 15.57 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.02442/0.4704, allocations: 6.579 MB / 0.6127 GB, free: 12.94 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.562e-05/0.4704, allocations: 9.375 kB / 0.6127 GB, free: 12.94 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01542/0.4859, allocations: 2.277 MB / 0.6149 GB, free: 12.5 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004868/0.4908, allocations: 1.863 MB / 0.6167 GB, free: 11.35 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007214/0.4915, allocations: 0.7265 MB / 0.6175 GB, free: 10.69 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009358/0.4925, allocations: 211.2 kB / 0.6177 GB, free: 10.62 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007461/0.4999, allocations: 3.033 MB / 0.6206 GB, free: 9.473 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.486e-05/0.5, allocations: 0 / 0.6206 GB, free: 9.473 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002893/0.5003, allocations: 98.59 kB / 0.6207 GB, free: 9.395 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.009e-05/0.5004, allocations: 50.23 kB / 0.6208 GB, free: 9.395 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00646/0.5069, allocations: 2.786 MB / 0.6235 GB, free: 8.449 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.01833/0.5252, allocations: 9.922 MB / 0.6332 GB, free: 15.07 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0104/0.5356, allocations: 4.184 MB / 0.6373 GB, free: 10.75 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004556/0.5403, allocations: 1.968 MB / 0.6392 GB, free: 8.777 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003741/0.5407, allocations: 41.91 kB / 0.6392 GB, free: 8.738 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004835/0.5455, allocations: 2.232 MB / 0.6414 GB, free: 6.48 MB / 446.1 MB Notification: Performance of pre-optimization done (n=248): time 4.738e-06/0.5455, allocations: 0 / 0.6414 GB, free: 6.48 MB / 446.1 MB Notification: Performance of matching and sorting (n=248): time 0.1197/0.6652, allocations: 28.18 MB / 0.6689 GB, free: 10.17 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001184/0.6654, allocations: 188.2 kB / 0.6691 GB, free: 9.949 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003834/0.6692, allocations: 2.269 MB / 0.6713 GB, free: 7.66 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009446/0.6702, allocations: 69.7 kB / 0.6714 GB, free: 7.586 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009242/0.6711, allocations: 1.172 MB / 0.6725 GB, free: 6.402 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001516/0.6726, allocations: 0.8665 MB / 0.6734 GB, free: 5.523 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001265/0.6739, allocations: 0.5618 MB / 0.6739 GB, free: 4.953 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 9.974e-05/0.674, allocations: 301.1 kB / 0.6742 GB, free: 4.656 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004241/0.6783, allocations: 1.958 MB / 0.6761 GB, free: 2.695 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004771/0.6831, allocations: 2.322 MB / 0.6784 GB, free: 288 kB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.05448/0.7376, allocations: 14.07 MB / 0.6921 GB, free: 1.977 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.409e-05/0.7376, allocations: 0 / 0.6921 GB, free: 1.977 MB / 494.1 MB Notification: Performance of matching and sorting (n=417) (initialization): time 0.04069/0.7783, allocations: 12.51 MB / 0.7043 GB, free: 5.398 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 9.767e-05/0.7785, allocations: 110.8 kB / 0.7044 GB, free: 5.266 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.364e-05/0.7785, allocations: 12 kB / 0.7045 GB, free: 5.254 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01746/0.796, allocations: 5.296 MB / 0.7096 GB, free: 15.95 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003068/0.7991, allocations: 0.5656 MB / 0.7102 GB, free: 15.39 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05951/0.8586, allocations: 23.2 MB / 0.7328 GB, free: 8.02 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005186/0.8639, allocations: 493.1 kB / 0.7333 GB, free: 7.535 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009123/0.8648, allocations: 116 kB / 0.7334 GB, free: 7.422 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.001812/0.8666, allocations: 0.5288 MB / 0.7339 GB, free: 6.871 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001051/0.8677, allocations: 304.3 kB / 0.7342 GB, free: 6.57 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0388/0.9065, allocations: 11.9 MB / 0.7458 GB, free: 10.62 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.789e-05/0.9066, allocations: 28 kB / 0.7459 GB, free: 10.59 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.01e-05/0.9066, allocations: 16 kB / 0.7459 GB, free: 10.58 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.386e-05/0.9067, allocations: 11.95 kB / 0.7459 GB, free: 10.57 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.04759/0.9543, allocations: 15.51 MB / 0.761 GB, free: 10.89 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.242e-05/0.9544, allocations: 4.062 kB / 0.761 GB, free: 10.89 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001691/0.9561, allocations: 251.6 kB / 0.7613 GB, free: 10.64 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01745/0.9736, allocations: 5.247 MB / 0.7664 GB, free: 5.383 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008555/0.9745, allocations: 55.98 kB / 0.7665 GB, free: 5.328 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3467/1.321, allocations: 24.96 MB / 0.7908 GB, free: 159.3 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.719e-06/1.321, allocations: 4.938 kB / 0.7908 GB, free: 159.3 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04695/1.368, allocations: 14.26 MB / 0.8048 GB, free: 155.7 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001366/1.37, allocations: 407.4 kB / 0.8052 GB, free: 155.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001007/1.371, allocations: 44.09 kB / 0.8052 GB, free: 155.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003403/1.374, allocations: 304 kB / 0.8055 GB, free: 155.4 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002531/1.377, allocations: 0.5823 MB / 0.8061 GB, free: 155.2 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002733/1.377, allocations: 65.14 kB / 0.8061 GB, free: 155.2 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002503/1.379, allocations: 1.504 MB / 0.8076 GB, free: 154.6 MB / 0.5606 GB Notification: Performance of sort global known variables: time 5.61e-07/1.379, allocations: 0 / 0.8076 GB, free: 154.6 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.00517/1.385, allocations: 1.174 MB / 0.8087 GB, free: 154.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.0006291/1.385, allocations: 171.6 kB / 0.8089 GB, free: 154.4 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.02032/1.406, allocations: 6.736 MB / 0.8155 GB, free: 151.9 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 7.985e-06/1.406, allocations: 0 / 0.8155 GB, free: 151.9 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.01337/1.419, allocations: 4.383 MB / 0.8198 GB, free: 149.7 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00319/1.422, allocations: 277.8 kB / 0.82 GB, free: 149.4 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0102/1.432, allocations: 6.521 MB / 0.8264 GB, free: 143.3 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001156/1.434, allocations: 1.808 MB / 0.8282 GB, free: 141.9 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001165/1.435, allocations: 185.1 kB / 0.8283 GB, free: 141.7 MB / 0.5606 GB Notification: Performance of SimCode: time 9.41e-07/1.435, allocations: 0 / 0.8283 GB, free: 141.7 MB / 0.5606 GB Notification: Performance of Templates: time 0.0659/1.501, allocations: 63.74 MB / 0.8906 GB, free: 78.94 MB / 0.5606 GB make -j1 -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.makefile (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.sim & ./OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe 2>&1)