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.00139/0.00139, allocations: 115.6 kB / 16.37 MB, free: 6.004 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.445/1.445, allocations: 222.9 MB / 240 MB, free: 4.488 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.001489/0.001489, allocations: 188.5 kB / 290.3 MB, free: 2.215 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4892/0.4892, allocations: 78.53 MB / 419 MB, free: 3.121 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001672/0.001672, allocations: 75.88 kB / 498.9 MB, free: 5.621 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1619/0.1636, allocations: 68.18 MB / 0.5538 GB, free: 1.402 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII): time 0.3013/0.465, allocations: 13.68 MB / 0.5671 GB, free: 32.02 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.009953/0.475, allocations: 3.46 MB / 0.5705 GB, free: 30.88 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003631/0.4786, allocations: 32.66 kB / 0.5706 GB, free: 30.88 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002512/0.4812, allocations: 0.5531 MB / 0.5711 GB, free: 30.59 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0061/0.4873, allocations: 1.416 MB / 0.5725 GB, free: 29.87 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.004221/0.4916, allocations: 1.512 MB / 0.574 GB, free: 29.68 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.006217/0.4978, allocations: 3.72 MB / 0.5776 GB, free: 28.84 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001887/0.4997, allocations: 0.8996 MB / 0.5785 GB, free: 28.65 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002813/0.5025, allocations: 1.527 MB / 0.58 GB, free: 28.23 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0028/0.5053, allocations: 1.949 MB / 0.5819 GB, free: 27.31 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001129/0.5065, allocations: 284.1 kB / 0.5821 GB, free: 27.31 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001689/0.5082, allocations: 435.5 kB / 0.5825 GB, free: 27.26 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001083/0.5093, allocations: 0.7613 MB / 0.5833 GB, free: 26.75 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002533/0.5118, allocations: 1.631 MB / 0.5849 GB, free: 25.64 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003599/0.5154, allocations: 3.968 MB / 0.5888 GB, free: 23.81 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/0.5154, allocations: 7.078 kB / 0.5888 GB, free: 23.81 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.245e-06/0.5155, allocations: 0.5312 kB / 0.5888 GB, free: 23.81 MB / 430.1 MB Notification: Performance of Transformations before backend: time 6.795e-05/0.5155, allocations: 4.75 kB / 0.5888 GB, free: 23.8 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.0225/0.538, allocations: 6.573 MB / 0.5952 GB, free: 21.18 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.066e-05/0.5381, allocations: 8.906 kB / 0.5952 GB, free: 21.18 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01499/0.5531, allocations: 2.275 MB / 0.5974 GB, free: 20.74 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004765/0.5579, allocations: 1.874 MB / 0.5992 GB, free: 19.58 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006427/0.5586, allocations: 0.724 MB / 0.6 GB, free: 18.93 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004887/0.5591, allocations: 214.8 kB / 0.6002 GB, free: 18.86 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006306/0.5654, allocations: 3.037 MB / 0.6031 GB, free: 17.7 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.799e-05/0.5654, allocations: 2.906 kB / 0.6031 GB, free: 17.7 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002212/0.5657, allocations: 85.22 kB / 0.6032 GB, free: 17.64 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.84e-05/0.5657, allocations: 51.66 kB / 0.6033 GB, free: 17.64 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00588/0.5716, allocations: 2.789 MB / 0.606 GB, free: 16.69 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.02042/0.5921, allocations: 9.807 MB / 0.6156 GB, free: 11.22 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01007/0.6022, allocations: 4.191 MB / 0.6197 GB, free: 8.934 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004052/0.6062, allocations: 1.97 MB / 0.6216 GB, free: 7.922 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003076/0.6066, allocations: 48.02 kB / 0.6216 GB, free: 7.902 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004177/0.6108, allocations: 2.229 MB / 0.6238 GB, free: 6.492 MB / 430.1 MB Notification: Performance of pre-optimization done (n=248): time 4.919e-06/0.6108, allocations: 0 / 0.6238 GB, free: 6.492 MB / 430.1 MB Notification: Performance of matching and sorting (n=248): time 0.1059/0.7167, allocations: 27.3 MB / 0.6505 GB, free: 11.07 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001264/0.7169, allocations: 184.2 kB / 0.6506 GB, free: 10.85 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004202/0.7211, allocations: 2.273 MB / 0.6529 GB, free: 8.555 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008306/0.7219, allocations: 77.64 kB / 0.6529 GB, free: 8.473 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009248/0.7229, allocations: 1.164 MB / 0.6541 GB, free: 7.297 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001361/0.7242, allocations: 0.8665 MB / 0.6549 GB, free: 6.418 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001188/0.7254, allocations: 0.5618 MB / 0.6555 GB, free: 5.848 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.00011/0.7255, allocations: 307 kB / 0.6558 GB, free: 5.547 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004188/0.7297, allocations: 1.955 MB / 0.6577 GB, free: 3.59 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004382/0.7341, allocations: 2.329 MB / 0.6599 GB, free: 1.172 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.05212/0.7863, allocations: 14.02 MB / 0.6736 GB, free: 2.949 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.243e-05/0.7863, allocations: 0 / 0.6736 GB, free: 2.949 MB / 478.1 MB Notification: Performance of matching and sorting (n=417) (initialization): time 0.03963/0.826, allocations: 12.51 MB / 0.6858 GB, free: 6.371 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001155/0.8261, allocations: 114.8 kB / 0.686 GB, free: 6.234 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.969e-05/0.8262, allocations: 8 kB / 0.686 GB, free: 6.227 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01746/0.8436, allocations: 5.288 MB / 0.6911 GB, free: 0.9336 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003249/0.8469, allocations: 0.5695 MB / 0.6917 GB, free: 372 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06138/0.9083, allocations: 23.17 MB / 0.7143 GB, free: 9.023 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005438/0.9138, allocations: 485.1 kB / 0.7148 GB, free: 8.547 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009177/0.9148, allocations: 124 kB / 0.7149 GB, free: 8.426 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.001883/0.9167, allocations: 0.534 MB / 0.7154 GB, free: 7.875 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001172/0.9178, allocations: 300.3 kB / 0.7157 GB, free: 7.578 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03815/0.956, allocations: 11.91 MB / 0.7273 GB, free: 11.63 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.302e-05/0.9561, allocations: 24 kB / 0.7273 GB, free: 11.61 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-05/0.9561, allocations: 20.94 kB / 0.7274 GB, free: 11.59 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.273e-05/0.9562, allocations: 11.95 kB / 0.7274 GB, free: 11.57 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.04459/1.001, allocations: 15.5 MB / 0.7425 GB, free: 11.9 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.398e-05/1.001, allocations: 0 / 0.7425 GB, free: 11.9 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00172/1.003, allocations: 243.7 kB / 0.7427 GB, free: 11.66 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01717/1.02, allocations: 5.248 MB / 0.7479 GB, free: 6.402 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007224/1.021, allocations: 55.92 kB / 0.7479 GB, free: 6.348 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3228/1.343, allocations: 24.93 MB / 0.7723 GB, free: 166.1 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.959e-06/1.343, allocations: 2.625 kB / 0.7723 GB, free: 166.1 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04202/1.385, allocations: 14.28 MB / 0.7862 GB, free: 165.7 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001248/1.387, allocations: 413.3 kB / 0.7866 GB, free: 165.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001092/1.388, allocations: 45.88 kB / 0.7866 GB, free: 165.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003255/1.391, allocations: 298.2 kB / 0.7869 GB, free: 165.6 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002177/1.393, allocations: 0.5858 MB / 0.7875 GB, free: 165.6 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002653/1.394, allocations: 67.05 kB / 0.7876 GB, free: 165.6 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002404/1.396, allocations: 1.501 MB / 0.789 GB, free: 165.4 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.91e-07/1.396, allocations: 0 / 0.789 GB, free: 165.4 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004121/1.4, allocations: 1.172 MB / 0.7902 GB, free: 165.4 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.0005115/1.401, allocations: 171.7 kB / 0.7903 GB, free: 165.3 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0183/1.419, allocations: 6.624 MB / 0.7968 GB, free: 164.7 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 8.476e-06/1.419, allocations: 1.719 kB / 0.7968 GB, free: 164.7 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.01392/1.433, allocations: 4.397 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.003186/1.436, allocations: 265.6 kB / 0.8014 GB, free: 163 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0111/1.447, allocations: 5.325 MB / 0.8066 GB, free: 160.5 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001846/1.449, allocations: 1.808 MB / 0.8083 GB, free: 159.7 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001459/1.451, allocations: 260.9 kB / 0.8086 GB, free: 159.6 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000686/1.451, allocations: 175.1 kB / 0.8087 GB, free: 159.6 MB / 0.5606 GB Notification: Performance of SimCode: time 9.81e-07/1.451, allocations: 4 kB / 0.8087 GB, free: 159.6 MB / 0.5606 GB Notification: Performance of Templates: time 0.08679/1.538, allocations: 63.04 MB / 0.8703 GB, free: 109.7 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 cvode -lv LOG_STATS > OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe 2>&1)