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.00111/0.00111, allocations: 107 kB / 15.99 MB, free: 6.359 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.28/1.28, allocations: 222.9 MB / 239.6 MB, free: 4.758 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.001462/0.001463, allocations: 192.5 kB / 289.9 MB, free: 2.488 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4195/0.4195, allocations: 78.52 MB / 418.6 MB, free: 3.262 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001307/0.001307, allocations: 75.89 kB / 497.6 MB, free: 6.723 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1278/0.1291, allocations: 68.17 MB / 0.5525 GB, free: 2.508 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII): time 0.2745/0.4037, allocations: 14.46 MB / 0.5666 GB, free: 31.05 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.007523/0.4113, allocations: 3.597 MB / 0.5701 GB, free: 30 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001397/0.4127, allocations: 33.31 kB / 0.5702 GB, free: 30 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001162/0.4139, allocations: 435.2 kB / 0.5706 GB, free: 29.85 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002943/0.4169, allocations: 1.213 MB / 0.5718 GB, free: 29.28 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.002637/0.4195, allocations: 1.411 MB / 0.5731 GB, free: 29.09 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.00334/0.4229, allocations: 3.704 MB / 0.5768 GB, free: 28.25 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001084/0.424, allocations: 0.8966 MB / 0.5776 GB, free: 28.03 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002047/0.426, allocations: 1.535 MB / 0.5791 GB, free: 27.6 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001945/0.428, allocations: 1.953 MB / 0.581 GB, free: 27.02 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004325/0.4284, allocations: 281.2 kB / 0.5813 GB, free: 27.02 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008531/0.4293, allocations: 437.1 kB / 0.5817 GB, free: 26.98 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00054/0.4298, allocations: 0.7678 MB / 0.5825 GB, free: 26.46 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00119/0.431, allocations: 1.635 MB / 0.5841 GB, free: 25.36 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00264/0.4337, allocations: 3.085 MB / 0.5871 GB, free: 24.12 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.621e-06/0.4337, allocations: 3.938 kB / 0.5871 GB, free: 24.11 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.4337, allocations: 0 / 0.5871 GB, free: 24.11 MB / 430.1 MB Notification: Performance of Transformations before backend: time 4.008e-05/0.4337, allocations: 0 / 0.5871 GB, free: 24.11 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.02224/0.456, allocations: 6.571 MB / 0.5935 GB, free: 21.5 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.043e-05/0.4561, allocations: 8.969 kB / 0.5935 GB, free: 21.5 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01428/0.4703, allocations: 2.275 MB / 0.5957 GB, free: 21.05 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003905/0.4743, allocations: 1.876 MB / 0.5976 GB, free: 19.89 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006585/0.4749, allocations: 0.7228 MB / 0.5983 GB, free: 19.24 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005353/0.4755, allocations: 217.3 kB / 0.5985 GB, free: 19.17 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007112/0.4826, allocations: 3.031 MB / 0.6014 GB, free: 18.02 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.418e-05/0.4827, allocations: 5.312 kB / 0.6015 GB, free: 18.02 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002769/0.483, allocations: 85.14 kB / 0.6015 GB, free: 17.95 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.699e-05/0.483, allocations: 50.25 kB / 0.6016 GB, free: 17.95 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006281/0.4893, allocations: 2.787 MB / 0.6043 GB, free: 17.01 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.02061/0.5099, allocations: 9.887 MB / 0.614 GB, free: 11.51 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01139/0.5213, allocations: 4.186 MB / 0.618 GB, free: 9.789 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003932/0.5253, allocations: 1.971 MB / 0.62 GB, free: 8.773 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003684/0.5257, allocations: 48.23 kB / 0.62 GB, free: 8.754 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004641/0.5303, allocations: 2.229 MB / 0.6222 GB, free: 7.473 MB / 430.1 MB Notification: Performance of pre-optimization done (n=248): time 9.618e-06/0.5303, allocations: 4 kB / 0.6222 GB, free: 7.469 MB / 430.1 MB Notification: Performance of matching and sorting (n=248): time 0.1119/0.6422, allocations: 27.3 MB / 0.6489 GB, free: 12.19 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001073/0.6424, allocations: 180.2 kB / 0.649 GB, free: 11.98 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00356/0.646, allocations: 2.273 MB / 0.6512 GB, free: 9.684 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007584/0.6467, allocations: 73.77 kB / 0.6513 GB, free: 9.605 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009001/0.6476, allocations: 1.16 MB / 0.6525 GB, free: 8.434 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001049/0.6487, allocations: 0.8665 MB / 0.6533 GB, free: 7.555 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001067/0.6498, allocations: 0.5618 MB / 0.6538 GB, free: 6.984 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.000101/0.6499, allocations: 305.1 kB / 0.6541 GB, free: 6.684 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004106/0.654, allocations: 1.954 MB / 0.656 GB, free: 4.727 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004374/0.6584, allocations: 2.325 MB / 0.6583 GB, free: 2.312 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.05415/0.7125, allocations: 14.08 MB / 0.6721 GB, free: 4.035 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.822e-05/0.7126, allocations: 4 kB / 0.6721 GB, free: 4.031 MB / 478.1 MB Notification: Performance of matching and sorting (n=417) (initialization): time 0.04322/0.7559, allocations: 12.5 MB / 0.6843 GB, free: 7.457 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001295/0.756, allocations: 118.8 kB / 0.6844 GB, free: 7.316 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.023e-05/0.7561, allocations: 4 kB / 0.6844 GB, free: 7.312 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01783/0.7739, allocations: 5.296 MB / 0.6896 GB, free: 2.012 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003065/0.777, allocations: 0.574 MB / 0.6901 GB, free: 1.438 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0594/0.8364, allocations: 23.2 MB / 0.7128 GB, free: 10.07 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005087/0.8416, allocations: 493 kB / 0.7133 GB, free: 9.59 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008336/0.8424, allocations: 120 kB / 0.7134 GB, free: 9.473 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.002241/0.8447, allocations: 0.5271 MB / 0.7139 GB, free: 8.93 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00127/0.846, allocations: 304.3 kB / 0.7142 GB, free: 8.629 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04022/0.8862, allocations: 11.9 MB / 0.7258 GB, free: 12.68 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.394e-05/0.8863, allocations: 28 kB / 0.7258 GB, free: 12.66 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.002e-05/0.8864, allocations: 16 kB / 0.7258 GB, free: 12.64 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.503e-05/0.8864, allocations: 11.95 kB / 0.7258 GB, free: 12.63 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.04805/0.9345, allocations: 15.51 MB / 0.741 GB, free: 12.95 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.776e-05/0.9346, allocations: 2.531 kB / 0.741 GB, free: 12.95 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001695/0.9363, allocations: 247.6 kB / 0.7412 GB, free: 12.71 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01821/0.9545, allocations: 5.252 MB / 0.7464 GB, free: 7.438 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009543/0.9555, allocations: 52.98 kB / 0.7464 GB, free: 7.387 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3148/1.27, allocations: 24.97 MB / 0.7708 GB, free: 165.3 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.282e-06/1.27, allocations: 0.6875 kB / 0.7708 GB, free: 165.3 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04194/1.312, allocations: 14.27 MB / 0.7847 GB, free: 164.9 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009831/1.313, allocations: 411.9 kB / 0.7851 GB, free: 164.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006036/1.314, allocations: 44.81 kB / 0.7852 GB, free: 164.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002908/1.317, allocations: 299.3 kB / 0.7855 GB, free: 164.8 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00214/1.319, allocations: 0.5855 MB / 0.786 GB, free: 164.8 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002395/1.319, allocations: 63.86 kB / 0.7861 GB, free: 164.8 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002159/1.321, allocations: 1.5 MB / 0.7876 GB, free: 164.6 MB / 0.5606 GB Notification: Performance of sort global known variables: time 4.5e-07/1.321, allocations: 3.75 kB / 0.7876 GB, free: 164.6 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003524/1.325, allocations: 1.17 MB / 0.7887 GB, free: 164.6 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.0004438/1.325, allocations: 178.1 kB / 0.7889 GB, free: 164.6 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0199/1.345, allocations: 6.722 MB / 0.7954 GB, free: 163.9 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 7.013e-06/1.345, allocations: 0.9375 kB / 0.7954 GB, free: 163.9 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.01371/1.359, allocations: 4.393 MB / 0.7997 GB, free: 163.1 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002582/1.362, allocations: 266.3 kB / 0.8 GB, free: 162.9 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01103/1.373, allocations: 6.528 MB / 0.8064 GB, free: 159.1 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001661/1.374, allocations: 1.806 MB / 0.8081 GB, free: 158.3 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001151/1.376, allocations: 187.9 kB / 0.8083 GB, free: 158.3 MB / 0.5606 GB Notification: Performance of SimCode: time 1.582e-06/1.376, allocations: 1.25 kB / 0.8083 GB, free: 158.3 MB / 0.5606 GB Notification: Performance of Templates: time 0.07729/1.453, allocations: 63.76 MB / 0.8706 GB, free: 108.9 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 -lv LOG_STATS > OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe 2>&1)