Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_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.ThirdOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII") translateModel(OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001829/0.001829, allocations: 111.1 kB / 16.41 MB, free: 6.027 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.417/1.417, allocations: 222.9 MB / 240.1 MB, free: 4.535 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.00158/0.00158, allocations: 188.5 kB / 290.4 MB, free: 2.254 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5289/0.5289, allocations: 91.9 MB / 432.4 MB, free: 9.164 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001465/0.001465, allocations: 73.22 kB / 0.5734 GB, free: 33.77 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1511/0.1526, allocations: 71.29 MB / 0.6431 GB, free: 3.488 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII): time 0.01238/0.165, allocations: 13.61 MB / 0.6563 GB, free: 5.82 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.008431/0.1735, allocations: 3.476 MB / 0.6597 GB, free: 2.328 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003378/0.1769, allocations: 28 kB / 0.6598 GB, free: 2.301 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002001/0.1789, allocations: 0.5459 MB / 0.6603 GB, free: 1.75 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006378/0.1854, allocations: 1.435 MB / 0.6617 GB, free: 324 kB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004642/0.19, allocations: 1.507 MB / 0.6632 GB, free: 14.83 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.007905/0.1979, allocations: 3.722 MB / 0.6668 GB, free: 11.09 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002432/0.2004, allocations: 0.8895 MB / 0.6677 GB, free: 10.15 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003654/0.2041, allocations: 1.529 MB / 0.6692 GB, free: 8.617 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0033/0.2074, allocations: 1.956 MB / 0.6711 GB, free: 6.652 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001286/0.2087, allocations: 284 kB / 0.6714 GB, free: 6.375 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001943/0.2107, allocations: 435.8 kB / 0.6718 GB, free: 5.949 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001375/0.2121, allocations: 0.7546 MB / 0.6725 GB, free: 5.191 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002919/0.215, allocations: 1.635 MB / 0.6741 GB, free: 3.547 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00528/0.2203, allocations: 3.974 MB / 0.678 GB, free: 15.56 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.179e-06/0.2204, allocations: 0 / 0.678 GB, free: 15.56 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.2204, allocations: 0 / 0.678 GB, free: 15.56 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.0001195/0.2205, allocations: 4 kB / 0.678 GB, free: 15.55 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 522 * Number of variables: 522 Notification: Performance of Generate backend data structure: time 0.02417/0.2447, allocations: 6.563 MB / 0.6844 GB, free: 8.895 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.812e-05/0.2447, allocations: 16.02 kB / 0.6844 GB, free: 8.879 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01572/0.2605, allocations: 2.279 MB / 0.6866 GB, free: 6.594 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005294/0.2658, allocations: 1.874 MB / 0.6885 GB, free: 4.652 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009102/0.2667, allocations: 0.7252 MB / 0.6892 GB, free: 3.812 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001041/0.2678, allocations: 212 kB / 0.6894 GB, free: 3.605 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008819/0.2766, allocations: 3.035 MB / 0.6923 GB, free: 0.4922 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.381e-05/0.2767, allocations: 0 / 0.6923 GB, free: 0.4922 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006004/0.2774, allocations: 91.88 kB / 0.6924 GB, free: 412 kB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.729e-05/0.2774, allocations: 48 kB / 0.6925 GB, free: 364 kB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007206/0.2846, allocations: 2.784 MB / 0.6952 GB, free: 13.55 MB / 0.4981 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 preOpt removeSimpleEquations (simulation): time 0.02306/0.3077, allocations: 9.801 MB / 0.7048 GB, free: 3.336 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0117/0.3195, allocations: 4.176 MB / 0.7088 GB, free: 15.02 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005073/0.3246, allocations: 1.968 MB / 0.7108 GB, free: 13.05 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004805/0.3251, allocations: 45.95 kB / 0.7108 GB, free: 13 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005884/0.331, allocations: 2.226 MB / 0.713 GB, free: 10.76 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=247): time 8.957e-06/0.3311, allocations: 4 kB / 0.713 GB, free: 10.75 MB / 0.5137 GB Notification: Performance of matching and sorting (n=247): time 0.129/0.4601, allocations: 29.46 MB / 0.7418 GB, free: 13.17 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001275/0.4602, allocations: 184.2 kB / 0.7419 GB, free: 12.95 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004837/0.4651, allocations: 2.281 MB / 0.7442 GB, free: 10.65 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0008303/0.466, allocations: 73.69 kB / 0.7442 GB, free: 10.57 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.001155/0.4671, allocations: 1.176 MB / 0.7454 GB, free: 9.387 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001642/0.4688, allocations: 0.8627 MB / 0.7462 GB, free: 8.512 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002768/0.4716, allocations: 0.5577 MB / 0.7468 GB, free: 7.945 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001145/0.4717, allocations: 301.1 kB / 0.7471 GB, free: 7.648 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005191/0.4769, allocations: 1.947 MB / 0.749 GB, free: 5.699 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005465/0.4824, allocations: 2.31 MB / 0.7512 GB, free: 3.297 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.05885/0.5413, allocations: 14 MB / 0.7649 GB, free: 5.059 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.238e-05/0.5413, allocations: 3.938 kB / 0.7649 GB, free: 5.055 MB / 0.5606 GB Notification: Performance of matching and sorting (n=413) (initialization): time 0.4676/1.009, allocations: 12.28 MB / 0.7769 GB, free: 108.3 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.00013/1.009, allocations: 124.5 kB / 0.777 GB, free: 108.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.236e-05/1.009, allocations: 5.938 kB / 0.777 GB, free: 108.2 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02051/1.03, allocations: 5.32 MB / 0.7822 GB, free: 108 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003247/1.033, allocations: 0.5634 MB / 0.7827 GB, free: 108 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06263/1.096, allocations: 23.48 MB / 0.8057 GB, free: 98.58 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005097/1.101, allocations: 487.1 kB / 0.8061 GB, free: 98.23 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008426/1.102, allocations: 119.9 kB / 0.8063 GB, free: 98.11 MB / 0.5606 GB Warning: Assuming fixed start value for the following 6 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 order3_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 (325): * Single equations (assignments): 320 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(63,26)} Notification: Performance of prepare postOptimizeDAE: time 0.002204/1.104, allocations: 0.5201 MB / 0.8068 GB, free: 97.58 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001193/1.105, allocations: 298.8 kB / 0.807 GB, free: 97.3 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03921/1.144, allocations: 11.9 MB / 0.8187 GB, free: 85.36 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.678e-05/1.144, allocations: 24 kB / 0.8187 GB, free: 85.33 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.674e-05/1.145, allocations: 20 kB / 0.8187 GB, free: 85.31 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.147e-05/1.145, allocations: 11.95 kB / 0.8187 GB, free: 85.3 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.04547/1.19, allocations: 15.49 MB / 0.8339 GB, free: 69.74 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.83e-05/1.19, allocations: 2.078 kB / 0.8339 GB, free: 69.74 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001574/1.192, allocations: 239.7 kB / 0.8341 GB, free: 69.51 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01707/1.209, allocations: 5.287 MB / 0.8392 GB, free: 64.21 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000814/1.21, allocations: 51.98 kB / 0.8393 GB, free: 64.16 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05862/1.268, allocations: 24.94 MB / 0.8637 GB, free: 38.82 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.215e-06/1.268, allocations: 4.406 kB / 0.8637 GB, free: 38.82 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04535/1.314, allocations: 14.26 MB / 0.8776 GB, free: 24.45 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001091/1.315, allocations: 406.8 kB / 0.878 GB, free: 24.05 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001389/1.316, allocations: 48 kB / 0.878 GB, free: 24.01 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003752/1.32, allocations: 300.4 kB / 0.8783 GB, free: 23.71 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002678/1.323, allocations: 0.5802 MB / 0.8789 GB, free: 23.13 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005704/1.323, allocations: 67.98 kB / 0.8789 GB, free: 23.07 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.00273/1.326, allocations: 1.511 MB / 0.8804 GB, free: 21.55 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.71e-07/1.326, allocations: 0 / 0.8804 GB, free: 21.55 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004959/1.331, allocations: 1.169 MB / 0.8815 GB, free: 20.38 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 16 (order3_2.delta,order3_2.w,order3_2.e1q,order2.delta,order2.w,order3_1.delta,order3_1.w,order3_1.e1q,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 (156): * Single equations (assignments): 151 * 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 {(66,22,7.7%)} * 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.000811/1.332, allocations: 180.4 kB / 0.8817 GB, free: 20.2 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01858/1.351, allocations: 6.698 MB / 0.8883 GB, free: 13.43 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 8.697e-06/1.351, allocations: 0 / 0.8883 GB, free: 13.43 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.01367/1.364, allocations: 4.395 MB / 0.8926 GB, free: 8.969 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004369/1.369, allocations: 271.3 kB / 0.8928 GB, free: 8.707 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01361/1.382, allocations: 5.326 MB / 0.898 GB, free: 3.371 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001701/1.384, allocations: 1.806 MB / 0.8998 GB, free: 1.531 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001197/1.385, allocations: 191.3 kB / 0.9 GB, free: 1.344 MB / 0.5606 GB Notification: Performance of SimCode: time 5.71e-07/1.385, allocations: 0 / 0.9 GB, free: 1.344 MB / 0.5606 GB Notification: Performance of Templates: time 0.09189/1.477, allocations: 64.07 MB / 0.9625 GB, free: 1.223 MB / 0.6231 GB make -j1 -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.makefile (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.sim & ./OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.pipe 2>&1)