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.001108/0.001108, allocations: 106.1 kB / 16.36 MB, free: 5.824 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.332/1.332, allocations: 222.9 MB / 240 MB, free: 4.531 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.001514/0.001513, allocations: 188.5 kB / 290.3 MB, free: 2.262 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4601/0.4601, allocations: 78.54 MB / 419 MB, free: 3.145 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001545/0.001545, allocations: 79.88 kB / 498.9 MB, free: 5.672 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1446/0.1462, allocations: 68.18 MB / 0.5538 GB, free: 1.461 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII): time 0.2716/0.4179, allocations: 13.67 MB / 0.5671 GB, free: 32.07 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.007726/0.4257, allocations: 3.462 MB / 0.5705 GB, free: 30.93 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002757/0.4284, allocations: 30.84 kB / 0.5705 GB, free: 30.93 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001589/0.4301, allocations: 0.5587 MB / 0.5711 GB, free: 30.65 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004514/0.4346, allocations: 1.414 MB / 0.5725 GB, free: 29.92 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.003208/0.4378, allocations: 1.512 MB / 0.5739 GB, free: 29.74 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.004684/0.4425, allocations: 3.728 MB / 0.5776 GB, free: 28.9 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001244/0.4438, allocations: 0.8953 MB / 0.5785 GB, free: 28.71 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002393/0.4462, allocations: 1.525 MB / 0.5799 GB, free: 28.29 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002158/0.4484, allocations: 1.956 MB / 0.5819 GB, free: 27.36 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004533/0.4488, allocations: 283.9 kB / 0.5821 GB, free: 27.36 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008879/0.4497, allocations: 435.5 kB / 0.5825 GB, free: 27.31 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005604/0.4503, allocations: 0.7601 MB / 0.5833 GB, free: 26.8 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00139/0.4517, allocations: 1.629 MB / 0.5849 GB, free: 25.69 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003972/0.4557, allocations: 3.97 MB / 0.5887 GB, free: 23.86 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.663e-06/0.4557, allocations: 4 kB / 0.5888 GB, free: 23.86 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.4557, allocations: 0 / 0.5888 GB, free: 23.86 MB / 430.1 MB Notification: Performance of Transformations before backend: time 5.292e-05/0.4558, allocations: 0 / 0.5888 GB, free: 23.86 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.02317/0.4789, allocations: 6.572 MB / 0.5952 GB, free: 21.23 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.081e-05/0.479, allocations: 9.625 kB / 0.5952 GB, free: 21.23 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01566/0.4947, allocations: 2.278 MB / 0.5974 GB, free: 20.79 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007232/0.502, allocations: 1.883 MB / 0.5992 GB, free: 19.62 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001103/0.5031, allocations: 0.719 MB / 0.5999 GB, free: 18.98 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001454/0.5046, allocations: 215.9 kB / 0.6002 GB, free: 18.91 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007857/0.5125, allocations: 3.035 MB / 0.6031 GB, free: 17.75 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.346e-05/0.5125, allocations: 5.531 kB / 0.6031 GB, free: 17.75 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002275/0.5128, allocations: 86.09 kB / 0.6032 GB, free: 17.68 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.757e-05/0.5128, allocations: 49.95 kB / 0.6033 GB, free: 17.68 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006011/0.5188, allocations: 2.787 MB / 0.606 GB, free: 16.74 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.0201/0.539, allocations: 9.809 MB / 0.6156 GB, free: 11.25 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01021/0.5492, allocations: 4.199 MB / 0.6197 GB, free: 8.922 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004194/0.5534, allocations: 1.959 MB / 0.6216 GB, free: 7.918 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003637/0.5538, allocations: 48.06 kB / 0.6216 GB, free: 7.898 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004489/0.5583, allocations: 2.231 MB / 0.6238 GB, free: 6.566 MB / 430.1 MB Notification: Performance of pre-optimization done (n=248): time 4.94e-06/0.5584, allocations: 4 kB / 0.6238 GB, free: 6.562 MB / 430.1 MB Notification: Performance of matching and sorting (n=248): time 0.1081/0.6665, allocations: 27.3 MB / 0.6505 GB, free: 11.14 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001076/0.6666, allocations: 180.2 kB / 0.6506 GB, free: 10.92 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003798/0.6704, allocations: 2.273 MB / 0.6528 GB, free: 8.629 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009032/0.6714, allocations: 69.7 kB / 0.6529 GB, free: 8.555 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009384/0.6723, allocations: 1.164 MB / 0.654 GB, free: 7.379 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001302/0.6736, allocations: 0.8727 MB / 0.6549 GB, free: 6.496 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001094/0.6747, allocations: 0.5618 MB / 0.6554 GB, free: 5.926 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001065/0.6748, allocations: 305.1 kB / 0.6557 GB, free: 5.625 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00405/0.6789, allocations: 1.958 MB / 0.6577 GB, free: 3.664 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004457/0.6834, allocations: 2.325 MB / 0.6599 GB, free: 1.25 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.05262/0.736, allocations: 14.02 MB / 0.6736 GB, free: 3.027 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.83e-05/0.736, allocations: 0 / 0.6736 GB, free: 3.027 MB / 478.1 MB Notification: Performance of matching and sorting (n=417) (initialization): time 0.03947/0.7755, allocations: 12.51 MB / 0.6858 GB, free: 6.449 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001042/0.7757, allocations: 114.8 kB / 0.6859 GB, free: 6.312 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.228e-05/0.7757, allocations: 8 kB / 0.6859 GB, free: 6.305 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0173/0.793, allocations: 5.288 MB / 0.6911 GB, free: 1.012 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00317/0.7962, allocations: 0.5695 MB / 0.6917 GB, free: 452 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05906/0.8553, allocations: 23.18 MB / 0.7143 GB, free: 9.098 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005309/0.8606, allocations: 485.1 kB / 0.7148 GB, free: 8.621 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009056/0.8616, allocations: 120.7 kB / 0.7149 GB, free: 8.504 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.002427/0.864, allocations: 0.5331 MB / 0.7154 GB, free: 7.949 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001367/0.8654, allocations: 296.3 kB / 0.7157 GB, free: 7.656 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03867/0.9041, allocations: 11.9 MB / 0.7273 GB, free: 11.71 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.106e-05/0.9042, allocations: 24.62 kB / 0.7273 GB, free: 11.68 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.23e-05/0.9042, allocations: 20 kB / 0.7274 GB, free: 11.66 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.946e-05/0.9044, allocations: 11.95 kB / 0.7274 GB, free: 11.65 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.04733/0.9517, allocations: 15.5 MB / 0.7425 GB, free: 11.98 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.467e-05/0.9518, allocations: 4.5 kB / 0.7425 GB, free: 11.98 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001619/0.9534, allocations: 243.7 kB / 0.7427 GB, free: 11.74 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01702/0.9704, allocations: 5.251 MB / 0.7479 GB, free: 6.477 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006071/0.9711, allocations: 47.98 kB / 0.7479 GB, free: 6.43 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3227/1.294, allocations: 24.93 MB / 0.7723 GB, free: 166.1 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.859e-06/1.294, allocations: 4.969 kB / 0.7723 GB, free: 166.1 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04273/1.337, allocations: 14.27 MB / 0.7862 GB, free: 165.7 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001127/1.338, allocations: 406.8 kB / 0.7866 GB, free: 165.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007675/1.339, allocations: 51.7 kB / 0.7866 GB, free: 165.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00298/1.342, allocations: 295.9 kB / 0.7869 GB, free: 165.6 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002039/1.344, allocations: 0.5874 MB / 0.7875 GB, free: 165.6 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002357/1.344, allocations: 67.81 kB / 0.7876 GB, free: 165.6 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002353/1.346, allocations: 1.497 MB / 0.789 GB, free: 165.5 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.21e-07/1.346, allocations: 5.188 kB / 0.789 GB, free: 165.5 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004125/1.35, allocations: 1.173 MB / 0.7902 GB, free: 165.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.0004772/1.351, allocations: 172.5 kB / 0.7903 GB, free: 165.4 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01761/1.368, allocations: 6.618 MB / 0.7968 GB, free: 164.7 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 7.835e-06/1.369, allocations: 1.156 kB / 0.7968 GB, free: 164.7 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.01354/1.382, allocations: 4.407 MB / 0.8011 GB, free: 163.2 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002953/1.385, allocations: 264.8 kB / 0.8014 GB, free: 163.1 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01111/1.396, allocations: 5.319 MB / 0.8066 GB, free: 160.5 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001933/1.398, allocations: 1.808 MB / 0.8083 GB, free: 159.7 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001574/1.4, allocations: 265.4 kB / 0.8086 GB, free: 159.7 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000685/1.4, allocations: 175.8 kB / 0.8087 GB, free: 159.6 MB / 0.5606 GB Notification: Performance of SimCode: time 1.223e-06/1.4, allocations: 2.062 kB / 0.8087 GB, free: 159.6 MB / 0.5606 GB Notification: Performance of Templates: time 0.08544/1.486, allocations: 63.05 MB / 0.8703 GB, free: 109.8 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 -s gbode -lv LOG_STATS > OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe 2>&1)