Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_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.TwoAreaOld.FifthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII") translateModel(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007909/0.0007908, allocations: 90.52 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.398/1.398, allocations: 223.3 MB / 239.4 MB, free: 5.512 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.001563/0.001563, allocations: 183.7 kB / 290.6 MB, free: 2.184 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.478/0.478, allocations: 78.55 MB / 420.3 MB, free: 4.219 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004208/0.000421, allocations: 12.28 kB / 0.4887 GB, free: 6.047 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1487/0.1492, allocations: 69.36 MB / 0.5564 GB, free: 0.6289 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII): time 0.2936/0.4428, allocations: 6.478 MB / 0.5627 GB, free: 36.54 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.004681/0.4476, allocations: 2.024 MB / 0.5647 GB, free: 35.75 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001037/0.4486, allocations: 14.94 kB / 0.5647 GB, free: 35.74 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007013/0.4494, allocations: 180 kB / 0.5649 GB, free: 35.68 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001858/0.4512, allocations: 0.7173 MB / 0.5656 GB, free: 35.37 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001174/0.4524, allocations: 0.5873 MB / 0.5662 GB, free: 35.28 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001381/0.4538, allocations: 1.544 MB / 0.5677 GB, free: 34.94 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004048/0.4542, allocations: 289.4 kB / 0.5679 GB, free: 34.89 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006677/0.4549, allocations: 0.5915 MB / 0.5685 GB, free: 34.71 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000699/0.4556, allocations: 0.771 MB / 0.5693 GB, free: 34.49 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001424/0.4557, allocations: 63.03 kB / 0.5693 GB, free: 34.49 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004559/0.4562, allocations: 194 kB / 0.5695 GB, free: 34.49 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002133/0.4564, allocations: 270.5 kB / 0.5698 GB, free: 34.4 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000447/0.4569, allocations: 0.6366 MB / 0.5704 GB, free: 34.12 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001163/0.4581, allocations: 1.601 MB / 0.572 GB, free: 33.74 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.4581, allocations: 0.5625 kB / 0.572 GB, free: 33.74 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.4581, allocations: 0.625 kB / 0.572 GB, free: 33.74 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.382e-05/0.4581, allocations: 0 / 0.572 GB, free: 33.74 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: 191 * Number of variables: 191 Notification: Performance of Generate backend data structure: time 0.007948/0.4661, allocations: 2.564 MB / 0.5745 GB, free: 32.79 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.576e-05/0.4661, allocations: 14.75 kB / 0.5745 GB, free: 32.79 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004879/0.471, allocations: 0.7838 MB / 0.5752 GB, free: 32.68 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00166/0.4727, allocations: 0.9157 MB / 0.5761 GB, free: 32.27 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002494/0.473, allocations: 265 kB / 0.5764 GB, free: 32.07 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001635/0.4731, allocations: 86.7 kB / 0.5765 GB, free: 32.07 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002071/0.4752, allocations: 1.162 MB / 0.5776 GB, free: 31.98 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.096e-05/0.4752, allocations: 3.938 kB / 0.5776 GB, free: 31.98 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.439e-05/0.4753, allocations: 31.62 kB / 0.5776 GB, free: 31.98 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.529e-05/0.4754, allocations: 16.62 kB / 0.5777 GB, free: 31.98 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00204/0.4774, allocations: 1.058 MB / 0.5787 GB, free: 31.96 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.00626/0.4837, allocations: 3.97 MB / 0.5826 GB, free: 30.17 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00769/0.4914, allocations: 2.929 MB / 0.5854 GB, free: 29.28 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001588/0.493, allocations: 0.7485 MB / 0.5862 GB, free: 29 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.606e-05/0.4931, allocations: 18.16 kB / 0.5862 GB, free: 29 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001657/0.4948, allocations: 0.8886 MB / 0.587 GB, free: 28.67 MB / 430.1 MB Notification: Performance of pre-optimization done (n=97): time 2.505e-06/0.4948, allocations: 0 / 0.587 GB, free: 28.67 MB / 430.1 MB Notification: Performance of matching and sorting (n=97): time 0.03292/0.5277, allocations: 8.834 MB / 0.5957 GB, free: 27.07 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.755e-05/0.5278, allocations: 119 kB / 0.5958 GB, free: 26.94 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002187/0.53, allocations: 1.126 MB / 0.5969 GB, free: 26.48 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002646/0.5303, allocations: 46.64 kB / 0.5969 GB, free: 26.43 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004104/0.5307, allocations: 0.4987 MB / 0.5974 GB, free: 26.03 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000504/0.5312, allocations: 362.7 kB / 0.5978 GB, free: 25.75 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003938/0.5316, allocations: 146.8 kB / 0.5979 GB, free: 25.68 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.704e-05/0.5317, allocations: 303 kB / 0.5982 GB, free: 25.38 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001999/0.5337, allocations: 0.8435 MB / 0.599 GB, free: 25.08 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002077/0.5358, allocations: 1.014 MB / 0.6 GB, free: 24.63 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02696/0.5628, allocations: 6.235 MB / 0.6061 GB, free: 22.81 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.36e-05/0.5628, allocations: 0 / 0.6061 GB, free: 22.81 MB / 430.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.01788/0.5807, allocations: 5.288 MB / 0.6113 GB, free: 21.48 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.53e-05/0.5809, allocations: 68.84 kB / 0.6113 GB, free: 21.41 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.922e-05/0.5809, allocations: 3.062 kB / 0.6113 GB, free: 21.41 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006165/0.5871, allocations: 1.919 MB / 0.6132 GB, free: 19.5 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001542/0.5886, allocations: 288.1 kB / 0.6135 GB, free: 19.22 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01881/0.6075, allocations: 8.933 MB / 0.6222 GB, free: 10.14 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002214/0.6097, allocations: 242.6 kB / 0.6224 GB, free: 9.906 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002736/0.61, allocations: 55.98 kB / 0.6225 GB, free: 9.852 MB / 430.1 MB Warning: Assuming fixed start value for the following 5 variables: order5.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order2.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order2.delta:VARIABLE(flow=false start = order2.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order5.delta:VARIABLE(flow=false start = order5.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order5.e1q:VARIABLE(start = order5.e1q0 unit = "1" fixed = true ) "q-axis transient voltage" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (167): * Single equations (assignments): 164 * Array equations: 0 * Algorithm blocks: 2 * 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 {(20,14,23.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0008254/0.6109, allocations: 310.5 kB / 0.6228 GB, free: 9.539 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003514/0.6112, allocations: 126.4 kB / 0.6229 GB, free: 9.414 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01306/0.6243, allocations: 4.759 MB / 0.6275 GB, free: 4.625 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.09e-05/0.6244, allocations: 8.938 kB / 0.6276 GB, free: 4.617 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.245e-05/0.6244, allocations: 11.98 kB / 0.6276 GB, free: 4.605 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.549e-05/0.6244, allocations: 3.984 kB / 0.6276 GB, free: 4.602 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 postOpt removeSimpleEquations (simulation): time 0.01609/0.6405, allocations: 6.352 MB / 0.6338 GB, free: 14.14 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-05/0.6406, allocations: 4.031 kB / 0.6338 GB, free: 14.14 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007365/0.6413, allocations: 107.8 kB / 0.6339 GB, free: 14.03 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006177/0.6475, allocations: 1.873 MB / 0.6357 GB, free: 12.15 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000239/0.6478, allocations: 21.12 kB / 0.6357 GB, free: 12.13 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02094/0.6687, allocations: 9.698 MB / 0.6452 GB, free: 2.156 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/0.6688, allocations: 9.625 kB / 0.6452 GB, free: 2.148 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01654/0.6853, allocations: 5.69 MB / 0.6508 GB, free: 12.43 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006377/0.686, allocations: 235.2 kB / 0.651 GB, free: 12.18 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004455/0.6865, allocations: 23.98 kB / 0.651 GB, free: 12.15 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001571/0.6881, allocations: 143.9 kB / 0.6512 GB, free: 12.01 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006933/0.6888, allocations: 189.7 kB / 0.6513 GB, free: 11.82 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001245/0.6889, allocations: 27.98 kB / 0.6514 GB, free: 11.8 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001476/0.6904, allocations: 0.7592 MB / 0.6521 GB, free: 11.03 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.3e-07/0.6904, allocations: 0 / 0.6521 GB, free: 11.03 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002141/0.6926, allocations: 483.5 kB / 0.6526 GB, free: 10.56 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 11 (order2.delta,order2.w,order5.delta,order5.w,order5.e1q,order5.e2q,order5.e2d,aVRTypeII.ExcitationSystem.x_scaled[1],aVRTypeII.derivativeBlock.x,aVRTypeII.firstOrder2.y,aVRTypeII.simpleLagLim.state) * Number of discrete variables: 2 ($whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (65): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(18,14,25.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004042/0.693, allocations: 147.1 kB / 0.6527 GB, free: 10.4 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00757/0.7006, allocations: 2.873 MB / 0.6555 GB, free: 7.492 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.51e-06/0.7006, allocations: 0 / 0.6555 GB, free: 7.492 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004702/0.7053, allocations: 1.799 MB / 0.6573 GB, free: 5.656 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001513/0.7069, allocations: 116.5 kB / 0.6574 GB, free: 5.547 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005001/0.7119, allocations: 2.901 MB / 0.6602 GB, free: 2.672 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008715/0.7128, allocations: 1.128 MB / 0.6613 GB, free: 1.516 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0006083/0.7134, allocations: 121.2 kB / 0.6614 GB, free: 1.398 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003576/0.7138, allocations: 79.41 kB / 0.6615 GB, free: 1.32 MB / 462.1 MB Notification: Performance of SimCode: time 1.032e-06/0.7138, allocations: 0 / 0.6615 GB, free: 1.32 MB / 462.1 MB Notification: Performance of Templates: time 0.04164/0.7555, allocations: 21.64 MB / 0.6826 GB, free: 11.85 MB / 494.1 MB make -j1 -f OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.makefile Environment - environmentSimulation: (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.sim & ./OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.pipe 2>&1) Environment - environmentSimulation: