Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRI.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.FourthOrder_AVRI,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRI") translateModel(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRI,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRI") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000959/0.0009591, allocations: 100.2 kB / 15.05 MB, free: 1.105 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.328/1.328, allocations: 223.2 MB / 238.9 MB, free: 5.676 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.001102/0.001102, allocations: 181 kB / 290.2 MB, free: 2.367 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4398/0.4398, allocations: 78.52 MB / 419.8 MB, free: 4.34 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003633/0.0003636, allocations: 15.98 kB / 499.7 MB, free: 6.434 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1472/0.1476, allocations: 69.36 MB / 0.5557 GB, free: 1.035 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRI): time 0.2409/0.3885, allocations: 5.606 MB / 0.5611 GB, free: 37.49 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003508/0.3921, allocations: 1.953 MB / 0.5631 GB, free: 37.23 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006215/0.3927, allocations: 12.56 kB / 0.5631 GB, free: 37.23 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000604/0.3934, allocations: 173.7 kB / 0.5632 GB, free: 37.16 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001744/0.3951, allocations: 0.7088 MB / 0.5639 GB, free: 37.08 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.xq <> order4.x1q, <> on Real numbers is only allowed inside functions. Notification: Performance of NFTyping.typeClassSections: time 0.001189/0.3963, allocations: 0.5449 MB / 0.5645 GB, free: 37.05 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001412/0.3977, allocations: 0.9787 MB / 0.5654 GB, free: 37.01 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004033/0.3982, allocations: 255.2 kB / 0.5657 GB, free: 36.97 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000747/0.3989, allocations: 0.5435 MB / 0.5662 GB, free: 36.86 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000824/0.3997, allocations: 0.7084 MB / 0.5669 GB, free: 36.73 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001752/0.3999, allocations: 56.06 kB / 0.5669 GB, free: 36.73 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004482/0.4004, allocations: 166 kB / 0.5671 GB, free: 36.73 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000262/0.4007, allocations: 258.6 kB / 0.5673 GB, free: 36.68 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000244/0.4009, allocations: 233.5 kB / 0.5676 GB, free: 36.6 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001102/0.402, allocations: 1.175 MB / 0.5687 GB, free: 36.46 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.454e-06/0.402, allocations: 0 / 0.5687 GB, free: 36.46 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.4021, allocations: 0 / 0.5687 GB, free: 36.46 MB / 430.1 MB Notification: Performance of Transformations before backend: time 2.546e-05/0.4021, allocations: 0.5625 kB / 0.5687 GB, free: 36.46 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: 187 * Number of variables: 187 Notification: Performance of Generate backend data structure: time 0.00768/0.4098, allocations: 2.489 MB / 0.5711 GB, free: 35.53 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.593e-05/0.4098, allocations: 8.75 kB / 0.5711 GB, free: 35.53 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004842/0.4147, allocations: 0.7853 MB / 0.5719 GB, free: 35.44 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0015/0.4162, allocations: 0.8357 MB / 0.5727 GB, free: 35.08 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002361/0.4164, allocations: 235.6 kB / 0.573 GB, free: 34.92 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001818/0.4166, allocations: 92 kB / 0.573 GB, free: 34.91 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002077/0.4187, allocations: 1.139 MB / 0.5742 GB, free: 34.64 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.188e-05/0.4188, allocations: 3.938 kB / 0.5742 GB, free: 34.63 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.1e-05/0.4189, allocations: 32.06 kB / 0.5742 GB, free: 34.61 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.619e-05/0.4189, allocations: 19.12 kB / 0.5742 GB, free: 34.61 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001911/0.4208, allocations: 1.073 MB / 0.5753 GB, free: 34.27 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.00594/0.4267, allocations: 4.139 MB / 0.5793 GB, free: 31.75 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007227/0.434, allocations: 2.889 MB / 0.5821 GB, free: 30.88 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001236/0.4341, allocations: 16.94 kB / 0.5821 GB, free: 30.88 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.946e-05/0.4342, allocations: 46.05 kB / 0.5822 GB, free: 30.83 MB / 430.1 MB Notification: Performance of pre-optimization done (n=93): time 3.186e-06/0.4342, allocations: 0 / 0.5822 GB, free: 30.83 MB / 430.1 MB Notification: Performance of matching and sorting (n=93): time 0.02864/0.4628, allocations: 8.362 MB / 0.5903 GB, free: 29.41 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.235e-05/0.4629, allocations: 140 kB / 0.5905 GB, free: 29.25 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001791/0.4647, allocations: 1.065 MB / 0.5915 GB, free: 28.81 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002566/0.465, allocations: 46.05 kB / 0.5916 GB, free: 28.76 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000341/0.4654, allocations: 0.4886 MB / 0.592 GB, free: 28.37 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003586/0.4657, allocations: 354.5 kB / 0.5924 GB, free: 28.09 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.534e-05/0.4658, allocations: 29.5 kB / 0.5924 GB, free: 28.07 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.954e-05/0.4659, allocations: 364.2 kB / 0.5928 GB, free: 27.74 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001628/0.4676, allocations: 0.8204 MB / 0.5936 GB, free: 27.45 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001692/0.4693, allocations: 0.9821 MB / 0.5945 GB, free: 27.01 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001795/0.4711, allocations: 0.953 MB / 0.5954 GB, free: 26.57 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.015e-06/0.4711, allocations: 1.375 kB / 0.5954 GB, free: 26.57 MB / 430.1 MB Notification: Performance of matching and sorting (n=186) (initialization): time 0.01475/0.4859, allocations: 5.137 MB / 0.6005 GB, free: 25.32 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002949/0.4862, allocations: 1.196 MB / 0.6016 GB, free: 24.04 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.648e-05/0.4862, allocations: 4.859 kB / 0.6016 GB, free: 24.04 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006371/0.4926, allocations: 1.854 MB / 0.6034 GB, free: 23.72 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001583/0.4942, allocations: 277.4 kB / 0.6037 GB, free: 23.7 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02208/0.5163, allocations: 9.215 MB / 0.6127 GB, free: 19.3 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002129/0.5185, allocations: 223 kB / 0.6129 GB, free: 19.12 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002974/0.5188, allocations: 55.88 kB / 0.613 GB, free: 19.07 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.434e-05/0.5188, allocations: 5.094 kB / 0.613 GB, free: 19.07 MB / 430.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01308/0.5319, allocations: 4.978 MB / 0.6178 GB, free: 14.12 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.116e-05/0.532, allocations: 5.312 kB / 0.6178 GB, free: 14.12 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005458/0.5374, allocations: 1.86 MB / 0.6197 GB, free: 12.26 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001365/0.5388, allocations: 275.6 kB / 0.6199 GB, free: 11.99 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01862/0.5575, allocations: 9.2 MB / 0.6289 GB, free: 2.66 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001898/0.5594, allocations: 207 kB / 0.6291 GB, free: 2.457 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002993/0.5597, allocations: 55.97 kB / 0.6292 GB, free: 2.402 MB / 430.1 MB Warning: Assuming fixed start value for the following 4 variables: order4.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order4.e1d:VARIABLE(start = order4.e1d0 unit = "1" fixed = true ) "d-axis transient voltage" type: Real order4.e1q:VARIABLE(start = order4.e1q0 unit = "1" fixed = true ) "q-axis transient voltage" type: Real order4.delta:VARIABLE(flow=false start = order4.delta0 unit = "rad" fixed = true ) "Rotor angle" 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (155): * Single equations (assignments): 152 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {19 13} Notification: Performance of prepare postOptimizeDAE: time 0.0009455/0.5607, allocations: 382.7 kB / 0.6295 GB, free: 2.02 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000438/0.5611, allocations: 126.4 kB / 0.6296 GB, free: 1.895 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01292/0.5741, allocations: 4.595 MB / 0.6341 GB, free: 13.27 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.088e-05/0.5741, allocations: 12 kB / 0.6341 GB, free: 13.25 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.897e-05/0.5741, allocations: 7.953 kB / 0.6342 GB, free: 13.25 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.055e-05/0.5742, allocations: 3.984 kB / 0.6342 GB, free: 13.24 MB / 446.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.01639/0.5906, allocations: 6.28 MB / 0.6403 GB, free: 6.836 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.159e-05/0.5906, allocations: 0.875 kB / 0.6403 GB, free: 6.836 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007556/0.5914, allocations: 115.9 kB / 0.6404 GB, free: 6.723 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005701/0.5971, allocations: 1.787 MB / 0.6421 GB, free: 4.934 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000229/0.5974, allocations: 23.98 kB / 0.6422 GB, free: 4.91 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01834/0.6157, allocations: 8.02 MB / 0.65 GB, free: 12.75 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.467e-06/0.6158, allocations: 0 / 0.65 GB, free: 12.75 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01531/0.6311, allocations: 5.529 MB / 0.6554 GB, free: 7.184 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005285/0.6316, allocations: 227.3 kB / 0.6556 GB, free: 6.941 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003552/0.632, allocations: 20 kB / 0.6556 GB, free: 6.922 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001337/0.6334, allocations: 145.8 kB / 0.6558 GB, free: 6.781 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006172/0.634, allocations: 176.6 kB / 0.6559 GB, free: 6.605 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000126/0.6342, allocations: 31.98 kB / 0.656 GB, free: 6.574 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001244/0.6354, allocations: 0.7155 MB / 0.6567 GB, free: 5.852 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.6354, allocations: 0 / 0.6567 GB, free: 5.852 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002588/0.638, allocations: 0.7531 MB / 0.6574 GB, free: 5.098 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 10 (order2.delta,order2.w,order4.delta,order4.w,order4.e1q,order4.e1d,aVRTypeIchange1_1.firstOrder.y,aVRTypeIchange1_1.firstOrder2.y,aVRTypeIchange1_1.transferFunction.x_scaled[1],aVRTypeIchange1_1.transferFunction.x_scaled[2]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (67): * Single equations (assignments): 65 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(19,24.4%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003165/0.6383, allocations: 142.9 kB / 0.6575 GB, free: 4.953 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0123/0.6507, allocations: 4.833 MB / 0.6623 GB, free: 64 kB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.185e-06/0.6507, allocations: 0 / 0.6623 GB, free: 64 kB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004622/0.6553, allocations: 1.656 MB / 0.6639 GB, free: 14.38 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001139/0.6565, allocations: 99.03 kB / 0.664 GB, free: 14.29 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005139/0.6617, allocations: 2.698 MB / 0.6666 GB, free: 11.61 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009045/0.6626, allocations: 1.16 MB / 0.6677 GB, free: 10.42 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0008374/0.6635, allocations: 151 kB / 0.6679 GB, free: 10.28 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003116/0.6638, allocations: 80.62 kB / 0.668 GB, free: 10.2 MB / 478.1 MB Notification: Performance of SimCode: time 1.242e-06/0.6638, allocations: 4 kB / 0.668 GB, free: 10.2 MB / 478.1 MB Notification: Performance of Templates: time 0.04455/0.7083, allocations: 26.86 MB / 0.6942 GB, free: 15.5 MB / 0.4981 GB make -j1 -f OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRI.makefile Environment - environmentSimulation: (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRI.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRI.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRI.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRI.sim & ./OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRI -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRI.pipe 2>&1) Environment - environmentSimulation: