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.001193/0.001193, allocations: 105.6 kB / 16.27 MB, free: 6.414 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.226/1.226, allocations: 222.9 MB / 239.9 MB, free: 4.605 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.001183/0.001183, allocations: 192.5 kB / 290.2 MB, free: 2.328 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4181/0.4181, allocations: 78.53 MB / 418.9 MB, free: 3.215 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001482/0.001482, allocations: 75.88 kB / 498.1 MB, free: 6.445 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1077/0.1092, allocations: 68.18 MB / 0.553 GB, free: 2.227 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII): time 0.1867/0.2959, allocations: 13.66 MB / 0.5664 GB, free: 31.41 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.006207/0.3022, allocations: 3.467 MB / 0.5698 GB, free: 30.32 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002061/0.3043, allocations: 26.72 kB / 0.5698 GB, free: 30.32 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001535/0.3058, allocations: 0.5609 MB / 0.5703 GB, free: 30.03 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00403/0.3099, allocations: 1.419 MB / 0.5717 GB, free: 29.3 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.003081/0.313, allocations: 1.511 MB / 0.5732 GB, free: 29.12 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.003667/0.3167, allocations: 3.697 MB / 0.5768 GB, free: 28.29 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001293/0.318, allocations: 0.8963 MB / 0.5777 GB, free: 28.08 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001742/0.3197, allocations: 1.527 MB / 0.5792 GB, free: 27.66 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001646/0.3214, allocations: 1.965 MB / 0.5811 GB, free: 27.11 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005049/0.3219, allocations: 285.3 kB / 0.5814 GB, free: 27.11 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007971/0.3227, allocations: 424.2 kB / 0.5818 GB, free: 27.07 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004432/0.3232, allocations: 0.7606 MB / 0.5825 GB, free: 26.56 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001148/0.3243, allocations: 1.636 MB / 0.5841 GB, free: 25.44 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003/0.3273, allocations: 3.924 MB / 0.5879 GB, free: 23.62 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.696e-06/0.3274, allocations: 0 / 0.5879 GB, free: 23.62 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.634e-06/0.3274, allocations: 0 / 0.5879 GB, free: 23.62 MB / 430.1 MB Notification: Performance of Transformations before backend: time 7.263e-05/0.3275, allocations: 0 / 0.5879 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.02124/0.3487, allocations: 6.57 MB / 0.5944 GB, free: 21 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.762e-05/0.3487, allocations: 9.719 kB / 0.5944 GB, free: 21 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01426/0.363, allocations: 2.279 MB / 0.5966 GB, free: 20.56 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003272/0.3663, allocations: 1.869 MB / 0.5984 GB, free: 19.41 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005684/0.3669, allocations: 0.7236 MB / 0.5991 GB, free: 18.75 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004727/0.3674, allocations: 214.8 kB / 0.5993 GB, free: 18.68 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005951/0.3733, allocations: 3.034 MB / 0.6023 GB, free: 17.53 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.287e-05/0.3734, allocations: 0 / 0.6023 GB, free: 17.53 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002305/0.3736, allocations: 85.61 kB / 0.6024 GB, free: 17.46 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.485e-05/0.3737, allocations: 53.62 kB / 0.6024 GB, free: 17.46 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005683/0.3794, allocations: 2.785 MB / 0.6051 GB, free: 16.52 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.01739/0.3968, allocations: 9.885 MB / 0.6148 GB, free: 11.02 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01/0.4068, allocations: 4.194 MB / 0.6189 GB, free: 9.098 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003685/0.4105, allocations: 1.964 MB / 0.6208 GB, free: 8.09 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002317/0.4108, allocations: 41.59 kB / 0.6208 GB, free: 8.078 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003965/0.4147, allocations: 2.234 MB / 0.623 GB, free: 6.789 MB / 430.1 MB Notification: Performance of pre-optimization done (n=248): time 3.717e-06/0.4148, allocations: 0 / 0.623 GB, free: 6.789 MB / 430.1 MB Notification: Performance of matching and sorting (n=248): time 0.1081/0.5228, allocations: 27.3 MB / 0.6497 GB, free: 11.58 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.391e-05/0.523, allocations: 188.3 kB / 0.6499 GB, free: 11.36 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003531/0.5265, allocations: 2.265 MB / 0.6521 GB, free: 9.074 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005676/0.5271, allocations: 77.69 kB / 0.6522 GB, free: 8.992 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008364/0.5279, allocations: 1.156 MB / 0.6533 GB, free: 7.824 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001136/0.5291, allocations: 0.8743 MB / 0.6541 GB, free: 6.938 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001309/0.5304, allocations: 0.5695 MB / 0.6547 GB, free: 6.359 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 8.027e-05/0.5305, allocations: 301.1 kB / 0.655 GB, free: 6.062 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004118/0.5346, allocations: 1.955 MB / 0.6569 GB, free: 4.105 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004397/0.539, allocations: 2.325 MB / 0.6592 GB, free: 1.691 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.05188/0.5909, allocations: 14.08 MB / 0.6729 GB, free: 3.398 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.217e-05/0.591, allocations: 4 kB / 0.6729 GB, free: 3.395 MB / 478.1 MB Notification: Performance of matching and sorting (n=417) (initialization): time 0.0394/0.6304, allocations: 12.5 MB / 0.6851 GB, free: 6.82 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.842e-05/0.6305, allocations: 120.4 kB / 0.6852 GB, free: 6.68 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.881e-05/0.6305, allocations: 4 kB / 0.6852 GB, free: 6.676 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01711/0.6476, allocations: 5.3 MB / 0.6904 GB, free: 1.371 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002819/0.6505, allocations: 0.5617 MB / 0.691 GB, free: 0.8086 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05691/0.7074, allocations: 23.21 MB / 0.7136 GB, free: 9.434 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004232/0.7117, allocations: 489.1 kB / 0.7141 GB, free: 8.953 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005216/0.7122, allocations: 116 kB / 0.7142 GB, free: 8.84 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.001391/0.7136, allocations: 0.5315 MB / 0.7147 GB, free: 8.289 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007211/0.7144, allocations: 300.3 kB / 0.715 GB, free: 7.992 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03832/0.7527, allocations: 11.91 MB / 0.7266 GB, free: 12.04 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.708e-05/0.7528, allocations: 27.98 kB / 0.7267 GB, free: 12.02 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.746e-05/0.7528, allocations: 20 kB / 0.7267 GB, free: 12 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.541e-05/0.7529, allocations: 11.95 kB / 0.7267 GB, free: 11.98 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.04384/0.7967, allocations: 15.51 MB / 0.7418 GB, free: 12.3 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.846e-05/0.7968, allocations: 0 / 0.7418 GB, free: 12.3 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001465/0.7982, allocations: 243.7 kB / 0.7421 GB, free: 12.07 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0173/0.8156, allocations: 5.256 MB / 0.7472 GB, free: 6.797 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006606/0.8163, allocations: 47.98 kB / 0.7473 GB, free: 6.75 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2405/1.057, allocations: 24.97 MB / 0.7716 GB, free: 165.3 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.078e-06/1.057, allocations: 2.688 kB / 0.7716 GB, free: 165.3 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04086/1.098, allocations: 14.27 MB / 0.7856 GB, free: 164.9 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008148/1.099, allocations: 410.4 kB / 0.786 GB, free: 164.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005087/1.099, allocations: 46.78 kB / 0.786 GB, free: 164.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002722/1.102, allocations: 296.4 kB / 0.7863 GB, free: 164.8 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00178/1.104, allocations: 0.585 MB / 0.7869 GB, free: 164.8 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001954/1.104, allocations: 67.89 kB / 0.7869 GB, free: 164.8 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002021/1.106, allocations: 1.502 MB / 0.7884 GB, free: 164.6 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3e-07/1.106, allocations: 0 / 0.7884 GB, free: 164.6 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003105/1.109, allocations: 1.166 MB / 0.7895 GB, free: 164.6 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.0003913/1.109, allocations: 173 kB / 0.7897 GB, free: 164.5 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01878/1.128, allocations: 6.725 MB / 0.7963 GB, free: 163.9 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 5.43e-06/1.128, allocations: 8.766 kB / 0.7963 GB, free: 163.9 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0123/1.14, allocations: 4.392 MB / 0.8006 GB, free: 162.8 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002108/1.143, allocations: 263.5 kB / 0.8008 GB, free: 162.6 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009/1.152, allocations: 5.456 MB / 0.8061 GB, free: 159.9 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00134/1.153, allocations: 1.805 MB / 0.8079 GB, free: 159.1 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008828/1.154, allocations: 189.4 kB / 0.8081 GB, free: 159.1 MB / 0.5606 GB Notification: Performance of SimCode: time 9.02e-07/1.154, allocations: 1.312 kB / 0.8081 GB, free: 159.1 MB / 0.5606 GB Notification: Performance of Templates: time 0.05761/1.212, allocations: 63.76 MB / 0.8704 GB, free: 109.2 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)