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.0009388/0.0009388, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.216/1.216, allocations: 222.9 MB / 238.8 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.001189/0.001189, allocations: 196.5 kB / 289.1 MB, free: 2.5 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4113/0.4113, allocations: 78.52 MB / 417.8 MB, free: 3.258 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001264/0.001264, allocations: 75.88 kB / 496.8 MB, free: 6.781 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1258/0.1271, allocations: 68.17 MB / 0.5517 GB, free: 2.574 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII): time 0.2128/0.3399, allocations: 14.46 MB / 0.5658 GB, free: 31.07 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.006544/0.3465, allocations: 3.614 MB / 0.5693 GB, free: 30.05 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00198/0.3485, allocations: 36.09 kB / 0.5694 GB, free: 30.04 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00118/0.3497, allocations: 432.6 kB / 0.5698 GB, free: 29.89 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003023/0.3528, allocations: 1.223 MB / 0.571 GB, free: 29.32 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.002661/0.3554, allocations: 1.417 MB / 0.5724 GB, free: 29.14 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.003055/0.3585, allocations: 3.518 MB / 0.5758 GB, free: 28.3 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008808/0.3594, allocations: 0.8009 MB / 0.5766 GB, free: 28.09 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001606/0.361, allocations: 1.399 MB / 0.5779 GB, free: 27.66 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001734/0.3627, allocations: 1.864 MB / 0.5798 GB, free: 27.12 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005116/0.3633, allocations: 173.8 kB / 0.5799 GB, free: 27.12 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007328/0.364, allocations: 311.6 kB / 0.5802 GB, free: 27.11 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004085/0.3644, allocations: 0.6587 MB / 0.5809 GB, free: 26.9 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001061/0.3655, allocations: 1.523 MB / 0.5824 GB, free: 26.01 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002317/0.3678, allocations: 3.809 MB / 0.5861 GB, free: 24.27 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.936e-06/0.3678, allocations: 0 / 0.5861 GB, free: 24.27 MB / 430.1 MB Notification: Performance of FrontEnd: time 8.31e-07/0.3678, allocations: 0 / 0.5861 GB, free: 24.27 MB / 430.1 MB Notification: Performance of Transformations before backend: time 5.566e-05/0.3679, allocations: 0 / 0.5861 GB, free: 24.27 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.02274/0.3906, allocations: 6.578 MB / 0.5925 GB, free: 21.64 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.205e-05/0.3907, allocations: 9.656 kB / 0.5925 GB, free: 21.64 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01522/0.406, allocations: 2.27 MB / 0.5947 GB, free: 21.21 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004732/0.4107, allocations: 1.877 MB / 0.5966 GB, free: 20.05 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006124/0.4114, allocations: 0.7232 MB / 0.5973 GB, free: 19.39 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005012/0.4119, allocations: 216.6 kB / 0.5975 GB, free: 19.32 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006033/0.4179, allocations: 3.032 MB / 0.6004 GB, free: 18.17 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.246e-05/0.418, allocations: 1.219 kB / 0.6004 GB, free: 18.17 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002263/0.4182, allocations: 86.05 kB / 0.6005 GB, free: 18.11 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.656e-05/0.4182, allocations: 49.84 kB / 0.6006 GB, free: 18.11 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005677/0.4239, allocations: 2.788 MB / 0.6033 GB, free: 17.16 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.01745/0.4414, allocations: 9.881 MB / 0.6129 GB, free: 11.66 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01041/0.4518, allocations: 4.2 MB / 0.617 GB, free: 9.789 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003868/0.4557, allocations: 1.968 MB / 0.619 GB, free: 8.777 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002958/0.4561, allocations: 41.67 kB / 0.619 GB, free: 8.766 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004124/0.4602, allocations: 2.231 MB / 0.6212 GB, free: 7.48 MB / 430.1 MB Notification: Performance of pre-optimization done (n=248): time 4.629e-06/0.4602, allocations: 0 / 0.6212 GB, free: 7.48 MB / 430.1 MB Notification: Performance of matching and sorting (n=248): time 0.1091/0.5693, allocations: 27.31 MB / 0.6478 GB, free: 12.45 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.596e-05/0.5694, allocations: 180.2 kB / 0.648 GB, free: 12.23 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003306/0.5727, allocations: 2.269 MB / 0.6502 GB, free: 9.945 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006495/0.5734, allocations: 73.7 kB / 0.6503 GB, free: 9.867 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008217/0.5742, allocations: 1.168 MB / 0.6514 GB, free: 8.688 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001144/0.5754, allocations: 0.8703 MB / 0.6523 GB, free: 7.805 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001097/0.5765, allocations: 0.5618 MB / 0.6528 GB, free: 7.234 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 8.717e-05/0.5766, allocations: 305.1 kB / 0.6531 GB, free: 6.934 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003971/0.5805, allocations: 1.958 MB / 0.655 GB, free: 4.973 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004455/0.585, allocations: 2.317 MB / 0.6573 GB, free: 2.566 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.05156/0.6366, allocations: 14.04 MB / 0.671 GB, free: 4.309 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.244e-05/0.6366, allocations: 0 / 0.671 GB, free: 4.309 MB / 478.1 MB Notification: Performance of matching and sorting (n=417) (initialization): time 0.03889/0.6755, allocations: 12.5 MB / 0.6832 GB, free: 7.734 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.17e-05/0.6757, allocations: 118.8 kB / 0.6833 GB, free: 7.594 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.221e-05/0.6757, allocations: 8 kB / 0.6834 GB, free: 7.586 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01716/0.6929, allocations: 5.285 MB / 0.6885 GB, free: 2.297 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002916/0.6958, allocations: 0.5695 MB / 0.6891 GB, free: 1.727 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0548/0.7507, allocations: 21.32 MB / 0.7099 GB, free: 12.25 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004657/0.7554, allocations: 493.1 kB / 0.7104 GB, free: 11.76 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000713/0.7561, allocations: 120 kB / 0.7105 GB, free: 11.64 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.002026/0.7582, allocations: 0.5302 MB / 0.711 GB, free: 11.1 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001193/0.7594, allocations: 296.9 kB / 0.7113 GB, free: 10.81 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03876/0.7981, allocations: 11.9 MB / 0.7229 GB, free: 14.86 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.117e-05/0.7982, allocations: 27.94 kB / 0.7229 GB, free: 14.83 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.591e-05/0.7983, allocations: 20 kB / 0.7229 GB, free: 14.81 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.224e-05/0.7984, allocations: 11.95 kB / 0.723 GB, free: 14.8 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.04657/0.8449, allocations: 15.5 MB / 0.7381 GB, free: 15.13 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.915e-05/0.845, allocations: 4.062 kB / 0.7381 GB, free: 15.12 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001545/0.8465, allocations: 247.6 kB / 0.7383 GB, free: 14.88 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01697/0.8635, allocations: 5.256 MB / 0.7435 GB, free: 9.613 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006617/0.8642, allocations: 52.55 kB / 0.7435 GB, free: 9.562 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05347/0.9177, allocations: 22.69 MB / 0.7657 GB, free: 2.449 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.9178, allocations: 1.031 kB / 0.7657 GB, free: 2.449 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2571/1.175, allocations: 14.28 MB / 0.7796 GB, free: 156 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008836/1.176, allocations: 404.7 kB / 0.78 GB, free: 155.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007096/1.177, allocations: 45.62 kB / 0.78 GB, free: 155.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002873/1.179, allocations: 301.9 kB / 0.7803 GB, free: 155.9 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002022/1.181, allocations: 0.5696 MB / 0.7809 GB, free: 155.9 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000226/1.182, allocations: 60.66 kB / 0.7809 GB, free: 155.9 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002071/1.184, allocations: 1.504 MB / 0.7824 GB, free: 155.8 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.41e-07/1.184, allocations: 3.719 kB / 0.7824 GB, free: 155.8 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003377/1.187, allocations: 1.172 MB / 0.7836 GB, free: 155.8 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.0004206/1.188, allocations: 174.6 kB / 0.7837 GB, free: 155.7 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01734/1.205, allocations: 6.624 MB / 0.7902 GB, free: 155 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 8.966e-06/1.205, allocations: 1.875 kB / 0.7902 GB, free: 155 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.01345/1.218, allocations: 4.392 MB / 0.7945 GB, free: 154.3 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002712/1.221, allocations: 263.8 kB / 0.7947 GB, free: 154.3 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009704/1.231, allocations: 6.472 MB / 0.8011 GB, free: 151.2 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001364/1.232, allocations: 1.807 MB / 0.8028 GB, free: 150.4 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001246/1.234, allocations: 261.8 kB / 0.8031 GB, free: 150.4 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005822/1.234, allocations: 162.7 kB / 0.8032 GB, free: 150.4 MB / 0.5606 GB Notification: Performance of SimCode: time 9.92e-07/1.234, allocations: 1.094 kB / 0.8032 GB, free: 150.4 MB / 0.5606 GB Notification: Performance of Templates: time 0.06635/1.301, allocations: 57.52 MB / 0.8594 GB, free: 108.9 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)