Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_dev_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.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 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_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII") translateModel(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_dev_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.001012/0.001012, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.476/1.476, allocations: 223.3 MB / 239.4 MB, free: 5.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.001087/0.001088, allocations: 179.7 kB / 290.6 MB, free: 2.199 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5882/0.5882, allocations: 91.92 MB / 433.6 MB, free: 10.29 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004358/0.0004358, allocations: 8.234 kB / 0.5048 GB, free: 7.293 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4754/0.4758, allocations: 72.46 MB / 0.5755 GB, free: 37.44 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII): time 0.01097/0.4868, allocations: 13.84 MB / 0.589 GB, free: 27.21 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.00858/0.4955, allocations: 3.599 MB / 0.5926 GB, free: 24.62 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003084/0.4986, allocations: 35.72 kB / 0.5926 GB, free: 24.62 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001463/0.5001, allocations: 434.5 kB / 0.593 GB, free: 24.45 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004612/0.5047, allocations: 1.219 MB / 0.5942 GB, free: 23.64 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003176/0.5079, allocations: 1.41 MB / 0.5956 GB, free: 22.87 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.005243/0.5131, allocations: 3.525 MB / 0.599 GB, free: 21.14 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001203/0.5144, allocations: 0.7904 MB / 0.5998 GB, free: 20.71 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002426/0.5168, allocations: 1.323 MB / 0.6011 GB, free: 20.09 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002005/0.5188, allocations: 1.781 MB / 0.6028 GB, free: 19.27 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000342/0.5192, allocations: 139.6 kB / 0.6029 GB, free: 19.27 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008349/0.52, allocations: 267.8 kB / 0.6032 GB, free: 19.23 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004942/0.5205, allocations: 0.6093 MB / 0.6038 GB, free: 18.86 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001318/0.5218, allocations: 1.49 MB / 0.6053 GB, free: 17.88 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004424/0.5263, allocations: 3.709 MB / 0.6089 GB, free: 16.45 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.5263, allocations: 0 / 0.6089 GB, free: 16.45 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.5263, allocations: 0 / 0.6089 GB, free: 16.45 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001608/0.5265, allocations: 0 / 0.6089 GB, free: 16.45 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.02498/0.5515, allocations: 6.126 MB / 0.6149 GB, free: 14.18 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.104e-05/0.5515, allocations: 9.25 kB / 0.6149 GB, free: 14.18 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01669/0.5682, allocations: 2.296 MB / 0.6171 GB, free: 13.76 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005163/0.5734, allocations: 1.873 MB / 0.6189 GB, free: 12.61 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007612/0.5742, allocations: 0.7501 MB / 0.6197 GB, free: 11.95 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007152/0.575, allocations: 219.5 kB / 0.6199 GB, free: 11.88 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00777/0.5827, allocations: 3.236 MB / 0.623 GB, free: 10.7 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.914e-05/0.5828, allocations: 0 / 0.623 GB, free: 10.7 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002557/0.5831, allocations: 86.38 kB / 0.6231 GB, free: 10.63 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.568e-05/0.5831, allocations: 49.06 kB / 0.6232 GB, free: 10.63 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006641/0.5898, allocations: 2.988 MB / 0.6261 GB, free: 9.488 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.01826/0.608, allocations: 10.17 MB / 0.636 GB, free: 15.17 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01237/0.6204, allocations: 4.864 MB / 0.6408 GB, free: 10.17 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005629/0.6261, allocations: 2.167 MB / 0.6429 GB, free: 8 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003842/0.6265, allocations: 49.89 kB / 0.6429 GB, free: 7.953 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005688/0.6322, allocations: 2.423 MB / 0.6453 GB, free: 5.508 MB / 446.1 MB Notification: Performance of pre-optimization done (n=248): time 4.819e-06/0.6323, allocations: 3.938 kB / 0.6453 GB, free: 5.504 MB / 446.1 MB Notification: Performance of matching and sorting (n=248): time 0.1363/0.7685, allocations: 34.81 MB / 0.6793 GB, free: 2.559 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001174/0.7687, allocations: 184.2 kB / 0.6795 GB, free: 2.34 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004077/0.7728, allocations: 2.273 MB / 0.6817 GB, free: 48 kB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001037/0.7738, allocations: 69.81 kB / 0.6818 GB, free: 15.97 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00104/0.7749, allocations: 1.164 MB / 0.6829 GB, free: 14.8 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001435/0.7763, allocations: 0.8704 MB / 0.6838 GB, free: 13.91 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004893/0.7768, allocations: 284.5 kB / 0.684 GB, free: 13.63 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001145/0.7769, allocations: 305.1 kB / 0.6843 GB, free: 13.33 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004749/0.7817, allocations: 2.15 MB / 0.6864 GB, free: 11.18 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004953/0.7867, allocations: 2.521 MB / 0.6889 GB, free: 8.562 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.05966/0.8463, allocations: 15.46 MB / 0.704 GB, free: 8.867 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.93e-05/0.8464, allocations: 4 kB / 0.704 GB, free: 8.863 MB / 0.4981 GB Notification: Performance of matching and sorting (n=417) (initialization): time 0.04948/0.8959, allocations: 15.32 MB / 0.7189 GB, free: 9.473 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001228/0.8961, allocations: 118.8 kB / 0.7191 GB, free: 9.332 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.934e-05/0.8961, allocations: 8 kB / 0.7191 GB, free: 9.324 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02117/0.9173, allocations: 6.273 MB / 0.7252 GB, free: 3.047 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003553/0.9209, allocations: 0.5695 MB / 0.7257 GB, free: 2.477 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06541/0.9863, allocations: 24.5 MB / 0.7497 GB, free: 9.816 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005816/0.9922, allocations: 0.5869 MB / 0.7502 GB, free: 9.227 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008661/0.9931, allocations: 116 kB / 0.7503 GB, free: 9.113 MB / 0.545 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.00175/0.9948, allocations: 0.5372 MB / 0.7509 GB, free: 8.559 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000992/0.9958, allocations: 296.3 kB / 0.7512 GB, free: 8.266 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.047/1.043, allocations: 14.74 MB / 0.7656 GB, free: 9.473 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.711e-05/1.043, allocations: 27.94 kB / 0.7656 GB, free: 9.445 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.83e-05/1.043, allocations: 23.98 kB / 0.7656 GB, free: 9.422 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.998e-05/1.043, allocations: 11.95 kB / 0.7656 GB, free: 9.41 MB / 0.5606 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.3957/1.439, allocations: 18.35 MB / 0.7835 GB, free: 158.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.134e-05/1.439, allocations: 1.094 kB / 0.7835 GB, free: 158.7 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002026/1.441, allocations: 247.6 kB / 0.7838 GB, free: 158.7 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02237/1.463, allocations: 6.235 MB / 0.7899 GB, free: 158.5 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009077/1.464, allocations: 50.28 kB / 0.7899 GB, free: 158.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06767/1.532, allocations: 25.54 MB / 0.8148 GB, free: 149 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.448e-06/1.532, allocations: 0 / 0.8148 GB, free: 149 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05055/1.583, allocations: 17.31 MB / 0.8318 GB, free: 140.5 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001565/1.584, allocations: 410.9 kB / 0.8321 GB, free: 140.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00121/1.585, allocations: 44 kB / 0.8322 GB, free: 140.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003734/1.589, allocations: 412.4 kB / 0.8326 GB, free: 139.8 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002539/1.592, allocations: 0.5685 MB / 0.8331 GB, free: 139.5 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002224/1.592, allocations: 67.89 kB / 0.8332 GB, free: 139.4 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002369/1.594, allocations: 1.505 MB / 0.8347 GB, free: 138.1 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.21e-07/1.594, allocations: 0 / 0.8347 GB, free: 138.1 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004803/1.599, allocations: 1.174 MB / 0.8358 GB, free: 137 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.0005128/1.6, allocations: 177.2 kB / 0.836 GB, free: 136.8 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01965/1.619, allocations: 7.511 MB / 0.8433 GB, free: 130.1 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 9.478e-06/1.619, allocations: 0 / 0.8433 GB, free: 130.1 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0149/1.634, allocations: 5.079 MB / 0.8483 GB, free: 125 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003686/1.638, allocations: 263.4 kB / 0.8485 GB, free: 124.7 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00946/1.648, allocations: 6.586 MB / 0.855 GB, free: 118.1 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001184/1.649, allocations: 1.817 MB / 0.8567 GB, free: 116.3 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001326/1.65, allocations: 262.4 kB / 0.857 GB, free: 116 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000544/1.651, allocations: 159.4 kB / 0.8571 GB, free: 115.9 MB / 0.5606 GB Notification: Performance of SimCode: time 1.182e-06/1.651, allocations: 0 / 0.8571 GB, free: 115.9 MB / 0.5606 GB Notification: Performance of Templates: time 0.08132/1.732, allocations: 56.22 MB / 0.912 GB, free: 59.68 MB / 0.5606 GB make -j1 -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.makefile (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.sim & ./OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe 2>&1)