Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.ThirdOrder_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.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.TwoArea.ThirdOrder_AVRI,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.ThirdOrder_AVRI") translateModel(OpenIPSL.Examples.PSATSystems.TwoArea.ThirdOrder_AVRI,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.ThirdOrder_AVRI") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001021/0.001021, allocations: 99.34 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.345/1.345, allocations: 223.3 MB / 240 MB, free: 5.496 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.001002/0.001002, allocations: 172.5 kB / 291.3 MB, free: 2.168 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5348/0.5348, allocations: 91.92 MB / 434.3 MB, free: 10.25 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004655/0.0004656, allocations: 8 kB / 0.5054 GB, free: 7.254 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3538/0.3543, allocations: 72.47 MB / 0.5762 GB, free: 36.72 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoArea.ThirdOrder_AVRI): time 0.01454/0.3689, allocations: 22.29 MB / 0.5979 GB, free: 20.44 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01175/0.3807, allocations: 5.141 MB / 0.603 GB, free: 16.71 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004703/0.3855, allocations: 54.31 kB / 0.603 GB, free: 16.7 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002428/0.3879, allocations: 0.6749 MB / 0.6037 GB, free: 16.44 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007718/0.3956, allocations: 1.722 MB / 0.6054 GB, free: 15.23 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005119/0.4008, allocations: 1.92 MB / 0.6072 GB, free: 14.14 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.008999/0.4098, allocations: 5.388 MB / 0.6125 GB, free: 11.41 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002613/0.4124, allocations: 1.133 MB / 0.6136 GB, free: 10.83 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004255/0.4167, allocations: 2.04 MB / 0.6156 GB, free: 9.852 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005165/0.4219, allocations: 2.677 MB / 0.6182 GB, free: 8.574 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002044/0.4239, allocations: 232.6 kB / 0.6184 GB, free: 8.574 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003205/0.4271, allocations: 382.2 kB / 0.6188 GB, free: 8.523 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002124/0.4293, allocations: 0.9301 MB / 0.6197 GB, free: 7.949 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0059/0.4352, allocations: 2.389 MB / 0.622 GB, free: 6.387 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008293/0.4435, allocations: 4.616 MB / 0.6265 GB, free: 4.914 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.561e-06/0.4435, allocations: 0 / 0.6265 GB, free: 4.914 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.136e-06/0.4435, allocations: 0 / 0.6265 GB, free: 4.914 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0003313/0.4439, allocations: 1.125 kB / 0.6265 GB, free: 4.914 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: 889 * Number of variables: 889 Notification: Performance of Generate backend data structure: time 0.0327/0.4766, allocations: 8.379 MB / 0.6347 GB, free: 1.02 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.855e-05/0.4767, allocations: 12.78 kB / 0.6347 GB, free: 1.016 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02904/0.5057, allocations: 4.043 MB / 0.6387 GB, free: 13.54 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007777/0.5136, allocations: 2.651 MB / 0.6413 GB, free: 10.81 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001243/0.5148, allocations: 0.9673 MB / 0.6422 GB, free: 9.715 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001881/0.5168, allocations: 351.9 kB / 0.6426 GB, free: 9.371 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01562/0.5324, allocations: 4.989 MB / 0.6474 GB, free: 4.348 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001288/0.5326, allocations: 3.938 kB / 0.6474 GB, free: 4.344 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001193/0.5338, allocations: 144 kB / 0.6476 GB, free: 4.203 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.378e-05/0.5339, allocations: 80 kB / 0.6476 GB, free: 4.125 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01252/0.5464, allocations: 4.537 MB / 0.6521 GB, free: 15.58 MB / 462.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.0432/0.5896, allocations: 18.83 MB / 0.6705 GB, free: 11.56 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01468/0.6044, allocations: 5.719 MB / 0.6761 GB, free: 5.762 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007291/0.6117, allocations: 3.056 MB / 0.679 GB, free: 2.695 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007441/0.6125, allocations: 66.89 kB / 0.6791 GB, free: 2.629 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.665e-05/0.6126, allocations: 81.47 kB / 0.6792 GB, free: 2.539 MB / 478.1 MB Notification: Performance of pre-optimization done (n=379): time 8.977e-06/0.6126, allocations: 0 / 0.6792 GB, free: 2.539 MB / 478.1 MB Notification: Performance of matching and sorting (n=379): time 0.3319/0.9445, allocations: 80.42 MB / 0.7577 GB, free: 1.941 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001268/0.9447, allocations: 167.5 kB / 0.7579 GB, free: 1.746 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006869/0.9516, allocations: 3.21 MB / 0.761 GB, free: 14.52 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.001079/0.9527, allocations: 97.7 kB / 0.7611 GB, free: 14.41 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001781/0.9545, allocations: 1.955 MB / 0.763 GB, free: 12.45 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.002328/0.9568, allocations: 1.298 MB / 0.7643 GB, free: 11.13 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001059/0.9579, allocations: 334.5 kB / 0.7646 GB, free: 10.79 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 8.893e-05/0.958, allocations: 305.1 kB / 0.7649 GB, free: 10.49 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006886/0.9649, allocations: 2.835 MB / 0.7677 GB, free: 7.648 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008136/0.9731, allocations: 3.47 MB / 0.771 GB, free: 3.949 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.3781/1.351, allocations: 20.62 MB / 0.7912 GB, free: 157.2 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.77e-05/1.351, allocations: 4.531 kB / 0.7912 GB, free: 157.2 MB / 0.5606 GB Notification: Performance of matching and sorting (n=524) (initialization): time 0.06264/1.414, allocations: 20.71 MB / 0.8114 GB, free: 153.3 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.000316/1.414, allocations: 0.595 MB / 0.812 GB, free: 152.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.564e-05/1.414, allocations: 15.78 kB / 0.812 GB, free: 152.5 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02662/1.441, allocations: 8.56 MB / 0.8204 GB, free: 150.2 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003431/1.444, allocations: 0.6448 MB / 0.821 GB, free: 149.6 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08901/1.533, allocations: 35.27 MB / 0.8554 GB, free: 115.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006913/1.54, allocations: 0.7498 MB / 0.8562 GB, free: 115 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008399/1.541, allocations: 148 kB / 0.8563 GB, free: 114.8 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.14e-05/1.541, allocations: 4 kB / 0.8563 GB, free: 114.8 MB / 0.5606 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.05608/1.597, allocations: 20.26 MB / 0.8761 GB, free: 94.54 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.203e-05/1.597, allocations: 16 kB / 0.8761 GB, free: 94.52 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02659/1.624, allocations: 8.561 MB / 0.8845 GB, free: 85.95 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003461/1.628, allocations: 0.6436 MB / 0.8851 GB, free: 85.31 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08956/1.717, allocations: 35.29 MB / 0.9196 GB, free: 49.91 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007141/1.724, allocations: 0.7016 MB / 0.9203 GB, free: 49.23 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001142/1.725, allocations: 148 kB / 0.9204 GB, free: 49.09 MB / 0.5606 GB Warning: Assuming fixed start value for the following 4 variables: order3_1.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order3.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order3.delta:VARIABLE(flow=false start = order3.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order3.e1q:VARIABLE(start = order3.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: 65 * 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 (388): * Single equations (assignments): 385 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(92,45)} Notification: Performance of prepare postOptimizeDAE: time 0.003593/1.729, allocations: 0.7449 MB / 0.9211 GB, free: 48.32 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002129/1.731, allocations: 454.4 kB / 0.9216 GB, free: 47.87 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05929/1.791, allocations: 20.52 MB / 0.9416 GB, free: 27.29 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.287e-05/1.791, allocations: 36 kB / 0.9416 GB, free: 27.25 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.683e-05/1.791, allocations: 34.08 kB / 0.9417 GB, free: 27.22 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001338/1.791, allocations: 19.88 kB / 0.9417 GB, free: 27.2 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.06653/1.857, allocations: 25.8 MB / 0.9669 GB, free: 1.312 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.397e-05/1.857, allocations: 0 / 0.9669 GB, free: 1.312 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002517/1.86, allocations: 403.4 kB / 0.9673 GB, free: 0.918 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02863/1.889, allocations: 8.616 MB / 0.9757 GB, free: 8.293 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001209/1.89, allocations: 67.98 kB / 0.9757 GB, free: 8.227 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4071/2.297, allocations: 30.61 MB / 1.006 GB, free: 175.7 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/2.297, allocations: 2.906 kB / 1.006 GB, free: 175.7 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.07222/2.369, allocations: 24.14 MB / 1.029 GB, free: 172.9 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001808/2.371, allocations: 0.555 MB / 1.03 GB, free: 172.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00169/2.373, allocations: 71.25 kB / 1.03 GB, free: 172.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005566/2.378, allocations: 0.497 MB / 1.03 GB, free: 172.4 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00306/2.382, allocations: 0.7511 MB / 1.031 GB, free: 172.3 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003114/2.382, allocations: 90.36 kB / 1.031 GB, free: 172.3 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.002959/2.385, allocations: 2.115 MB / 1.033 GB, free: 171.5 MB / 0.5919 GB Notification: Performance of sort global known variables: time 4.31e-07/2.385, allocations: 0 / 1.033 GB, free: 171.5 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.009535/2.394, allocations: 2.955 MB / 1.036 GB, free: 171 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 10 (order3.delta,order3.w,order3.e1q,order3_1.delta,order3_1.w,order3_1.e1q,aVRTypeI.firstOrder.y,aVRTypeI.firstOrder2.y,aVRTypeI.transferFunction.x_scaled[1],aVRTypeI.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 (249): * Single equations (assignments): 247 * Array equations: 0 * Algorithm blocks: 1 * 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 {(100,36,5.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006131/2.395, allocations: 201.5 kB / 1.036 GB, free: 170.9 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.04587/2.441, allocations: 17.6 MB / 1.053 GB, free: 161.8 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 6.692e-06/2.441, allocations: 0 / 1.053 GB, free: 161.8 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.01965/2.461, allocations: 6.915 MB / 1.06 GB, free: 155.9 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004114/2.465, allocations: 378.4 kB / 1.061 GB, free: 155.6 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01391/2.479, allocations: 9.897 MB / 1.07 GB, free: 146.3 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001695/2.48, allocations: 2.497 MB / 1.073 GB, free: 144.4 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001654/2.482, allocations: 266.6 kB / 1.073 GB, free: 144.2 MB / 0.5919 GB Notification: Performance of SimCode: time 1.233e-06/2.482, allocations: 0 / 1.073 GB, free: 144.2 MB / 0.5919 GB Notification: Performance of Templates: time 0.1092/2.591, allocations: 83.33 MB / 1.154 GB, free: 63.7 MB / 0.5919 GB make -j1 -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.ThirdOrder_AVRI.makefile (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.ThirdOrder_AVRI.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.ThirdOrder_AVRI.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.ThirdOrder_AVRI.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.ThirdOrder_AVRI.sim & ./OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.ThirdOrder_AVRI -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.ThirdOrder_AVRI.pipe 2>&1)