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.001122/0.001122, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.361/1.361, allocations: 222.9 MB / 239 MB, free: 4.734 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.00149/0.00149, allocations: 188.5 kB / 289.3 MB, free: 2.473 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4703/0.4703, allocations: 78.52 MB / 417.9 MB, free: 3.348 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0015/0.0015, allocations: 75.89 kB / 496.9 MB, free: 6.75 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1584/0.16, allocations: 68.18 MB / 0.5519 GB, free: 2.535 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII): time 0.2547/0.4147, allocations: 14.46 MB / 0.566 GB, free: 31.01 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.008584/0.4234, allocations: 3.594 MB / 0.5695 GB, free: 29.98 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003701/0.4271, allocations: 29.81 kB / 0.5695 GB, free: 29.98 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001933/0.4291, allocations: 438.6 kB / 0.5699 GB, free: 29.83 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00483/0.434, allocations: 1.214 MB / 0.5711 GB, free: 29.26 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.003368/0.4374, allocations: 1.411 MB / 0.5725 GB, free: 29.08 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.005488/0.4429, allocations: 3.708 MB / 0.5761 GB, free: 28.23 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001554/0.4444, allocations: 0.8923 MB / 0.577 GB, free: 28.02 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002358/0.4468, allocations: 1.538 MB / 0.5785 GB, free: 27.58 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002634/0.4494, allocations: 1.954 MB / 0.5804 GB, free: 27.04 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007733/0.4502, allocations: 283.6 kB / 0.5807 GB, free: 27.04 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001054/0.4513, allocations: 438.9 kB / 0.5811 GB, free: 27 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005236/0.4518, allocations: 0.7589 MB / 0.5818 GB, free: 26.49 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001342/0.4532, allocations: 1.64 MB / 0.5834 GB, free: 25.38 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003433/0.4566, allocations: 3.927 MB / 0.5873 GB, free: 23.55 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.482e-06/0.4567, allocations: 0.75 kB / 0.5873 GB, free: 23.55 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.4567, allocations: 0 / 0.5873 GB, free: 23.55 MB / 430.1 MB Notification: Performance of Transformations before backend: time 9.792e-05/0.4568, allocations: 0.9062 kB / 0.5873 GB, free: 23.55 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.02436/0.4811, allocations: 6.57 MB / 0.5937 GB, free: 20.94 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.493e-05/0.4812, allocations: 9.094 kB / 0.5937 GB, free: 20.94 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01502/0.4962, allocations: 2.275 MB / 0.5959 GB, free: 20.5 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0045/0.5008, allocations: 1.881 MB / 0.5978 GB, free: 19.33 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006977/0.5015, allocations: 0.724 MB / 0.5985 GB, free: 18.68 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006795/0.5022, allocations: 210.1 kB / 0.5987 GB, free: 18.61 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007096/0.5093, allocations: 3.039 MB / 0.6016 GB, free: 17.46 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.976e-05/0.5094, allocations: 0 / 0.6016 GB, free: 17.46 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002549/0.5096, allocations: 89.38 kB / 0.6017 GB, free: 17.39 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.892e-05/0.5097, allocations: 49.88 kB / 0.6018 GB, free: 17.39 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006432/0.5161, allocations: 2.781 MB / 0.6045 GB, free: 16.45 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.02136/0.5375, allocations: 9.889 MB / 0.6141 GB, free: 10.95 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01115/0.5487, allocations: 4.191 MB / 0.6182 GB, free: 9.129 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004247/0.553, allocations: 1.971 MB / 0.6202 GB, free: 8.113 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003415/0.5534, allocations: 40.14 kB / 0.6202 GB, free: 8.102 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004665/0.558, allocations: 2.227 MB / 0.6224 GB, free: 6.785 MB / 430.1 MB Notification: Performance of pre-optimization done (n=248): time 4.699e-06/0.5581, allocations: 8 kB / 0.6224 GB, free: 6.777 MB / 430.1 MB Notification: Performance of matching and sorting (n=248): time 0.1125/0.6706, allocations: 27.3 MB / 0.649 GB, free: 11.35 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001084/0.6708, allocations: 188.2 kB / 0.6492 GB, free: 11.13 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003498/0.6743, allocations: 2.269 MB / 0.6514 GB, free: 8.84 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007467/0.675, allocations: 69.77 kB / 0.6515 GB, free: 8.766 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000844/0.6759, allocations: 1.168 MB / 0.6526 GB, free: 7.586 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001109/0.677, allocations: 0.868 MB / 0.6535 GB, free: 6.707 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001075/0.6781, allocations: 0.5618 MB / 0.654 GB, free: 6.137 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.416e-05/0.6782, allocations: 301.1 kB / 0.6543 GB, free: 5.84 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003966/0.6822, allocations: 1.958 MB / 0.6562 GB, free: 3.879 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004405/0.6866, allocations: 2.326 MB / 0.6585 GB, free: 1.465 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.05519/0.7418, allocations: 14.08 MB / 0.6723 GB, free: 3.184 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.332e-05/0.7419, allocations: 0 / 0.6723 GB, free: 3.184 MB / 478.1 MB Notification: Performance of matching and sorting (n=417) (initialization): time 0.04119/0.7831, allocations: 12.51 MB / 0.6845 GB, free: 6.602 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001215/0.7832, allocations: 110.8 kB / 0.6846 GB, free: 6.469 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.811e-05/0.7833, allocations: 8.562 kB / 0.6846 GB, free: 6.461 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01765/0.8009, allocations: 5.292 MB / 0.6898 GB, free: 1.164 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003174/0.8041, allocations: 0.5695 MB / 0.6903 GB, free: 0.5938 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05943/0.8636, allocations: 23.21 MB / 0.713 GB, free: 9.223 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004939/0.8686, allocations: 489.6 kB / 0.7134 GB, free: 8.742 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005038/0.8691, allocations: 119.9 kB / 0.7136 GB, free: 8.625 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.001397/0.8705, allocations: 0.5302 MB / 0.7141 GB, free: 8.082 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007586/0.8713, allocations: 296.3 kB / 0.7144 GB, free: 7.789 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03958/0.9109, allocations: 11.91 MB / 0.726 GB, free: 11.84 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.493e-05/0.911, allocations: 24 kB / 0.726 GB, free: 11.81 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.236e-05/0.911, allocations: 16 kB / 0.726 GB, free: 11.8 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.99e-05/0.9111, allocations: 20.77 kB / 0.726 GB, free: 11.78 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.0467/0.9578, allocations: 15.51 MB / 0.7412 GB, free: 12.1 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-05/0.9579, allocations: 0 / 0.7412 GB, free: 12.1 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001719/0.9596, allocations: 247.6 kB / 0.7414 GB, free: 11.86 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01795/0.9776, allocations: 5.248 MB / 0.7466 GB, free: 6.594 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009848/0.9787, allocations: 59.98 kB / 0.7466 GB, free: 6.535 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3371/1.316, allocations: 24.96 MB / 0.771 GB, free: 165.4 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.408e-06/1.316, allocations: 0.7812 kB / 0.771 GB, free: 165.4 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04407/1.36, allocations: 14.27 MB / 0.7849 GB, free: 165 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001612/1.362, allocations: 411.6 kB / 0.7853 GB, free: 164.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001009/1.363, allocations: 44.98 kB / 0.7854 GB, free: 164.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003428/1.366, allocations: 299.6 kB / 0.7856 GB, free: 164.9 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002462/1.369, allocations: 0.5828 MB / 0.7862 GB, free: 164.9 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002549/1.369, allocations: 64.06 kB / 0.7863 GB, free: 164.9 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002943/1.372, allocations: 1.503 MB / 0.7877 GB, free: 164.7 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.7e-07/1.372, allocations: 0 / 0.7877 GB, free: 164.7 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.00538/1.377, allocations: 1.173 MB / 0.7889 GB, free: 164.7 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.0005764/1.378, allocations: 176.3 kB / 0.7891 GB, free: 164.6 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.02162/1.399, allocations: 6.728 MB / 0.7956 GB, free: 164 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 9.387e-06/1.399, allocations: 1.375 kB / 0.7956 GB, free: 164 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.01405/1.413, allocations: 4.409 MB / 0.7999 GB, free: 162.9 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002731/1.416, allocations: 262.1 kB / 0.8002 GB, free: 162.7 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01049/1.427, allocations: 6.464 MB / 0.8065 GB, free: 159 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00161/1.428, allocations: 1.809 MB / 0.8083 GB, free: 158.2 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001318/1.43, allocations: 259.9 kB / 0.8085 GB, free: 158.1 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006014/1.43, allocations: 171.2 kB / 0.8087 GB, free: 158.1 MB / 0.5606 GB Notification: Performance of SimCode: time 1.021e-06/1.43, allocations: 4 kB / 0.8087 GB, free: 158.1 MB / 0.5606 GB Notification: Performance of Templates: time 0.0842/1.515, allocations: 60.73 MB / 0.868 GB, free: 110.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)