Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_release_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.conf.json 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/Modelica 4.0.0+maint.om/package.mo", uses=false) 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/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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_release_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII") translateModel(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_release_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008277/0.0008278, allocations: 180.3 kB / 15.45 MB, free: 6.227 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.193/1.193, allocations: 223.3 MB / 239.5 MB, free: 1.609 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000733/0.0007331, allocations: 93.77 kB / 290.7 MB, free: 13.81 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4195/0.4195, allocations: 78.61 MB / 420.4 MB, free: 44.13 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000349/0.000349, allocations: 20.31 kB / 0.4888 GB, free: 2.555 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2819/0.2823, allocations: 69.35 MB / 0.5565 GB, free: 39.13 MB / 426.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII): time 0.009043/0.2913, allocations: 13.8 MB / 0.57 GB, free: 31.17 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.006862/0.2982, allocations: 3.591 MB / 0.5735 GB, free: 29.12 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002014/0.3003, allocations: 29.28 kB / 0.5735 GB, free: 29.12 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009462/0.3012, allocations: 436.3 kB / 0.5739 GB, free: 28.95 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003296/0.3045, allocations: 1.216 MB / 0.5751 GB, free: 28.12 MB / 426.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/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.00262/0.3072, allocations: 1.408 MB / 0.5765 GB, free: 27.34 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.002824/0.31, allocations: 3.522 MB / 0.5799 GB, free: 25.62 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008137/0.3108, allocations: 0.7891 MB / 0.5807 GB, free: 25.18 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001423/0.3123, allocations: 1.326 MB / 0.582 GB, free: 24.56 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00127/0.3135, allocations: 1.776 MB / 0.5837 GB, free: 23.74 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000262/0.3138, allocations: 139.5 kB / 0.5839 GB, free: 23.74 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006152/0.3144, allocations: 271.4 kB / 0.5841 GB, free: 23.7 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003844/0.3148, allocations: 0.6088 MB / 0.5847 GB, free: 23.34 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008517/0.3157, allocations: 1.484 MB / 0.5862 GB, free: 22.36 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002134/0.3178, allocations: 3.719 MB / 0.5898 GB, free: 20.93 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.3178, allocations: 0 / 0.5898 GB, free: 20.93 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.793e-06/0.3179, allocations: 2.875 kB / 0.5898 GB, free: 20.93 MB / 426.7 MB Notification: Performance of Transformations before backend: time 3.502e-05/0.3179, allocations: 0 / 0.5898 GB, free: 20.93 MB / 426.7 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.01741/0.3353, allocations: 6.116 MB / 0.5958 GB, free: 18.67 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.539e-05/0.3354, allocations: 12.97 kB / 0.5958 GB, free: 18.66 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01332/0.3487, allocations: 2.295 MB / 0.598 GB, free: 18.24 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003069/0.3518, allocations: 1.873 MB / 0.5999 GB, free: 17.09 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005781/0.3524, allocations: 0.7498 MB / 0.6006 GB, free: 16.43 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004607/0.3528, allocations: 226.9 kB / 0.6008 GB, free: 16.35 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006183/0.359, allocations: 3.233 MB / 0.604 GB, free: 15.17 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.584e-05/0.3591, allocations: 0 / 0.604 GB, free: 15.17 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002136/0.3593, allocations: 85.53 kB / 0.6041 GB, free: 15.11 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.874e-05/0.3593, allocations: 50.39 kB / 0.6041 GB, free: 15.11 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005568/0.3649, allocations: 2.988 MB / 0.607 GB, free: 14.14 MB / 426.7 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.0164/0.3813, allocations: 10.13 MB / 0.6169 GB, free: 8.594 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009905/0.3913, allocations: 4.881 MB / 0.6217 GB, free: 6.273 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003548/0.3948, allocations: 2.17 MB / 0.6238 GB, free: 4.555 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003182/0.3952, allocations: 41.95 kB / 0.6238 GB, free: 4.516 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003838/0.399, allocations: 2.427 MB / 0.6262 GB, free: 2.066 MB / 426.7 MB Notification: Performance of pre-optimization done (n=248): time 4.739e-06/0.399, allocations: 7.938 kB / 0.6262 GB, free: 2.059 MB / 426.7 MB Notification: Performance of matching and sorting (n=248): time 0.109/0.5081, allocations: 33.69 MB / 0.6591 GB, free: 248 kB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.998e-05/0.5082, allocations: 180.2 kB / 0.6593 GB, free: 28 kB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003324/0.5116, allocations: 2.281 MB / 0.6615 GB, free: 13.73 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004501/0.512, allocations: 69.7 kB / 0.6616 GB, free: 13.65 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007253/0.5128, allocations: 1.16 MB / 0.6627 GB, free: 12.48 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009029/0.5137, allocations: 0.8665 MB / 0.6636 GB, free: 11.6 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004892/0.5142, allocations: 288.5 kB / 0.6638 GB, free: 11.31 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 8.681e-05/0.5143, allocations: 305.1 kB / 0.6641 GB, free: 11.01 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004178/0.5184, allocations: 2.15 MB / 0.6662 GB, free: 8.859 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004392/0.5229, allocations: 2.526 MB / 0.6687 GB, free: 6.242 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.04918/0.572, allocations: 15.47 MB / 0.6838 GB, free: 6.539 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.359e-05/0.5721, allocations: 4 kB / 0.6838 GB, free: 6.535 MB / 490.7 MB Notification: Performance of matching and sorting (n=417) (initialization): time 0.04017/0.6123, allocations: 15.32 MB / 0.6988 GB, free: 7.145 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 8.375e-05/0.6124, allocations: 127.4 kB / 0.6989 GB, free: 6.996 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.809e-05/0.6124, allocations: 4 kB / 0.6989 GB, free: 6.992 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.017/0.6294, allocations: 6.273 MB / 0.705 GB, free: 0.7148 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002721/0.6322, allocations: 0.5695 MB / 0.7056 GB, free: 148 kB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05364/0.6858, allocations: 24.49 MB / 0.7295 GB, free: 7.488 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003968/0.6898, allocations: 0.5947 MB / 0.7301 GB, free: 6.891 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00051/0.6904, allocations: 116 kB / 0.7302 GB, free: 6.777 MB / 0.5261 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.001376/0.6917, allocations: 0.5355 MB / 0.7307 GB, free: 6.227 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006646/0.6924, allocations: 296.3 kB / 0.731 GB, free: 5.934 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0391/0.7315, allocations: 14.74 MB / 0.7454 GB, free: 7.141 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.329e-05/0.7316, allocations: 27.94 kB / 0.7454 GB, free: 7.113 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.663e-05/0.7316, allocations: 20 kB / 0.7454 GB, free: 7.094 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.051e-05/0.7317, allocations: 11.95 kB / 0.7454 GB, free: 7.082 MB / 0.5417 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.04225/0.7739, allocations: 18.35 MB / 0.7634 GB, free: 4.57 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.281e-05/0.774, allocations: 7.984 kB / 0.7634 GB, free: 4.562 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001218/0.7752, allocations: 235.7 kB / 0.7636 GB, free: 4.332 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.2131/0.9883, allocations: 6.249 MB / 0.7697 GB, free: 162.6 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005948/0.9889, allocations: 50.28 kB / 0.7697 GB, free: 162.6 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04933/1.038, allocations: 25.53 MB / 0.7947 GB, free: 155.8 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/1.038, allocations: 3.062 kB / 0.7947 GB, free: 155.8 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04497/1.083, allocations: 17.32 MB / 0.8116 GB, free: 152 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001082/1.084, allocations: 411.5 kB / 0.812 GB, free: 151.7 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001121/1.086, allocations: 49.09 kB / 0.812 GB, free: 151.7 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003455/1.089, allocations: 410.8 kB / 0.8124 GB, free: 151.6 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00258/1.092, allocations: 0.5668 MB / 0.813 GB, free: 151.5 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004721/1.092, allocations: 66.66 kB / 0.813 GB, free: 151.5 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.002559/1.095, allocations: 1.508 MB / 0.8145 GB, free: 150.9 MB / 0.5573 GB Notification: Performance of sort global known variables: time 2.91e-07/1.095, allocations: 0 / 0.8145 GB, free: 150.9 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.003723/1.098, allocations: 1.171 MB / 0.8157 GB, free: 150.8 MB / 0.5573 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.0004099/1.099, allocations: 169.2 kB / 0.8158 GB, free: 150.7 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.01501/1.114, allocations: 7.513 MB / 0.8231 GB, free: 148.2 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 5.18e-06/1.114, allocations: 0 / 0.8231 GB, free: 148.2 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.01138/1.125, allocations: 5.089 MB / 0.8281 GB, free: 144.3 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00225/1.128, allocations: 270.1 kB / 0.8284 GB, free: 144 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007412/1.135, allocations: 6.591 MB / 0.8348 GB, free: 137.9 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008983/1.136, allocations: 1.807 MB / 0.8366 GB, free: 136.4 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0009057/1.137, allocations: 262 kB / 0.8368 GB, free: 136.3 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004964/1.137, allocations: 164.8 kB / 0.837 GB, free: 136.1 MB / 0.5573 GB Notification: Performance of SimCode: time 5.51e-07/1.137, allocations: 0 / 0.837 GB, free: 136.1 MB / 0.5573 GB Notification: Performance of Templates: time 0.07112/1.208, allocations: 56.23 MB / 0.8919 GB, free: 83.52 MB / 0.5573 GB make -j1 -f OpenIPSL_release_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.makefile (rm -f OpenIPSL_release_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe ; mkfifo OpenIPSL_release_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_release_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe >> ../files/OpenIPSL_release_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.sim & ./OpenIPSL_release_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_release_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe 2>&1)