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.001381/0.001381, allocations: 168.2 kB / 16.1 MB, free: 5.691 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.396/1.396, allocations: 223.3 MB / 240.1 MB, free: 9.957 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008231/0.0008234, allocations: 101.6 kB / 291.3 MB, free: 10.54 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4559/0.4559, allocations: 78.61 MB / 421 MB, free: 9.062 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003833/0.0003833, allocations: 8 kB / 0.4894 GB, free: 9.227 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3061/0.3065, allocations: 69.34 MB / 0.5571 GB, free: 18.82 MB / 378.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII): time 0.01/0.3166, allocations: 13.8 MB / 0.5706 GB, free: 4.965 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.008177/0.3248, allocations: 3.581 MB / 0.5741 GB, free: 1.375 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003201/0.328, allocations: 32 kB / 0.5741 GB, free: 1.344 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001982/0.33, allocations: 449.1 kB / 0.5746 GB, free: 0.9023 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005047/0.3351, allocations: 1.21 MB / 0.5757 GB, free: 15.69 MB / 394.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.003988/0.3391, allocations: 1.414 MB / 0.5771 GB, free: 14.3 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.005577/0.3447, allocations: 3.522 MB / 0.5806 GB, free: 10.76 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001732/0.3464, allocations: 0.7923 MB / 0.5813 GB, free: 9.918 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00248/0.3489, allocations: 1.333 MB / 0.5826 GB, free: 8.578 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002801/0.3517, allocations: 1.765 MB / 0.5844 GB, free: 6.805 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009446/0.3527, allocations: 140 kB / 0.5845 GB, free: 6.668 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001482/0.3542, allocations: 279.8 kB / 0.5848 GB, free: 6.395 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001127/0.3553, allocations: 0.61 MB / 0.5854 GB, free: 5.781 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002504/0.3579, allocations: 1.484 MB / 0.5868 GB, free: 4.281 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00362/0.3615, allocations: 2.948 MB / 0.5897 GB, free: 1.324 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.3615, allocations: 0 / 0.5897 GB, free: 1.324 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.3615, allocations: 0 / 0.5897 GB, free: 1.324 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.000133/0.3617, allocations: 0 / 0.5897 GB, free: 1.324 MB / 394.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.02098/0.3826, allocations: 6.115 MB / 0.5957 GB, free: 11.12 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.722e-05/0.3827, allocations: 12.03 kB / 0.5957 GB, free: 11.11 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0146/0.3973, allocations: 2.294 MB / 0.5979 GB, free: 8.805 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003955/0.4013, allocations: 1.874 MB / 0.5997 GB, free: 6.863 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007446/0.4021, allocations: 0.7487 MB / 0.6005 GB, free: 6 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004501/0.4025, allocations: 219.8 kB / 0.6007 GB, free: 5.785 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006153/0.4087, allocations: 3.235 MB / 0.6038 GB, free: 2.473 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.851e-05/0.4088, allocations: 7.984 kB / 0.6038 GB, free: 2.465 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002332/0.409, allocations: 91.94 kB / 0.6039 GB, free: 2.375 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.322e-05/0.4091, allocations: 48 kB / 0.604 GB, free: 2.328 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006126/0.4152, allocations: 2.983 MB / 0.6069 GB, free: 15.33 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.01776/0.433, allocations: 10.15 MB / 0.6168 GB, free: 4.758 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0109/0.4439, allocations: 4.869 MB / 0.6216 GB, free: 15.76 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004178/0.4482, allocations: 2.171 MB / 0.6237 GB, free: 13.58 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002944/0.4485, allocations: 37.97 kB / 0.6237 GB, free: 13.54 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004659/0.4531, allocations: 2.438 MB / 0.6261 GB, free: 11.09 MB / 442.7 MB Notification: Performance of pre-optimization done (n=248): time 4.238e-06/0.4532, allocations: 0 / 0.6261 GB, free: 11.09 MB / 442.7 MB Notification: Performance of matching and sorting (n=248): time 0.1172/0.5704, allocations: 33.67 MB / 0.659 GB, free: 9.281 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000121/0.5705, allocations: 200.2 kB / 0.6592 GB, free: 9.047 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00378/0.5743, allocations: 2.273 MB / 0.6614 GB, free: 6.754 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006765/0.575, allocations: 73.7 kB / 0.6615 GB, free: 6.676 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009848/0.576, allocations: 1.156 MB / 0.6626 GB, free: 5.508 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001135/0.5771, allocations: 0.8743 MB / 0.6634 GB, free: 4.621 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004567/0.5776, allocations: 288.5 kB / 0.6637 GB, free: 4.332 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001128/0.5777, allocations: 301.1 kB / 0.664 GB, free: 4.035 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004487/0.5822, allocations: 2.15 MB / 0.6661 GB, free: 1.883 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004769/0.587, allocations: 2.529 MB / 0.6686 GB, free: 15.26 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.3099/0.8969, allocations: 15.46 MB / 0.6837 GB, free: 108.1 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.989e-05/0.897, allocations: 0.8125 kB / 0.6837 GB, free: 108.1 MB / 490.7 MB Notification: Performance of matching and sorting (n=417) (initialization): time 0.04645/0.9435, allocations: 15.32 MB / 0.6986 GB, free: 106.4 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.166e-05/0.9436, allocations: 114.1 kB / 0.6987 GB, free: 106.3 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.092e-05/0.9436, allocations: 7.406 kB / 0.6988 GB, free: 106.3 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0164/0.96, allocations: 6.278 MB / 0.7049 GB, free: 105.3 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002751/0.9628, allocations: 0.573 MB / 0.7054 GB, free: 105.2 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05123/1.014, allocations: 24.49 MB / 0.7294 GB, free: 82.12 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004243/1.018, allocations: 0.5817 MB / 0.7299 GB, free: 81.59 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003677/1.019, allocations: 116 kB / 0.73 GB, free: 81.48 MB / 490.7 MB 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.001226/1.02, allocations: 0.5439 MB / 0.7306 GB, free: 80.92 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000488/1.02, allocations: 300.2 kB / 0.7309 GB, free: 80.62 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03712/1.058, allocations: 14.75 MB / 0.7453 GB, free: 65.83 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.898e-05/1.058, allocations: 28.66 kB / 0.7453 GB, free: 65.8 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.621e-05/1.058, allocations: 16 kB / 0.7453 GB, free: 65.79 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.675e-05/1.058, allocations: 11.95 kB / 0.7453 GB, free: 65.77 MB / 490.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 postOpt removeSimpleEquations (simulation): time 0.04186/1.1, allocations: 18.35 MB / 0.7632 GB, free: 47.36 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.313e-05/1.1, allocations: 1.938 kB / 0.7632 GB, free: 47.36 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001456/1.101, allocations: 239.8 kB / 0.7635 GB, free: 47.12 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01648/1.118, allocations: 6.244 MB / 0.7696 GB, free: 40.87 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005/1.118, allocations: 50.05 kB / 0.7696 GB, free: 40.82 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0495/1.168, allocations: 25.55 MB / 0.7946 GB, free: 14.89 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/1.168, allocations: 0 / 0.7946 GB, free: 14.89 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04272/1.21, allocations: 17.31 MB / 0.8115 GB, free: 13.47 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00114/1.212, allocations: 410.1 kB / 0.8119 GB, free: 13.06 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004831/1.212, allocations: 48 kB / 0.8119 GB, free: 13.01 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002852/1.215, allocations: 411.6 kB / 0.8123 GB, free: 12.61 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002098/1.217, allocations: 0.5644 MB / 0.8128 GB, free: 12.04 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002052/1.217, allocations: 67.98 kB / 0.8129 GB, free: 11.98 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002341/1.22, allocations: 1.499 MB / 0.8144 GB, free: 10.47 MB / 0.4948 GB Notification: Performance of sort global known variables: time 4.71e-07/1.22, allocations: 0 / 0.8144 GB, free: 10.47 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.003679/1.223, allocations: 1.181 MB / 0.8155 GB, free: 9.293 MB / 0.4948 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.0004623/1.224, allocations: 181.9 kB / 0.8157 GB, free: 9.109 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01885/1.243, allocations: 7.508 MB / 0.823 GB, free: 1.527 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 7.053e-06/1.243, allocations: 0.5 kB / 0.823 GB, free: 1.527 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01416/1.257, allocations: 5.079 MB / 0.828 GB, free: 12.38 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00342/1.26, allocations: 265.1 kB / 0.8283 GB, free: 12.12 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01224/1.273, allocations: 6.645 MB / 0.8347 GB, free: 5.449 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001451/1.274, allocations: 1.802 MB / 0.8365 GB, free: 3.613 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001/1.275, allocations: 179.4 kB / 0.8367 GB, free: 3.438 MB / 0.5105 GB Notification: Performance of SimCode: time 8.02e-07/1.275, allocations: 0 / 0.8367 GB, free: 3.438 MB / 0.5105 GB Notification: Performance of Templates: time 0.08871/1.364, allocations: 63.43 MB / 0.8986 GB, free: 3.973 MB / 0.573 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)