Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.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.TwoAreaOld.FourthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII") translateModel(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001112/0.001112, allocations: 111.5 kB / 15.99 MB, free: 5.91 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.282/1.282, allocations: 222.9 MB / 239.6 MB, free: 4.59 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.001291/0.001291, allocations: 196.5 kB / 289.9 MB, free: 2.34 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4782/0.4782, allocations: 78.52 MB / 418.6 MB, free: 3.262 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001477/0.001477, allocations: 75.88 kB / 497.6 MB, free: 6.703 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1313/0.1328, allocations: 68.18 MB / 0.5525 GB, free: 2.48 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII): time 0.2311/0.3639, allocations: 6.85 MB / 0.5592 GB, free: 35.72 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003534/0.3674, allocations: 1.994 MB / 0.5611 GB, free: 35.17 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006005/0.3681, allocations: 11.31 kB / 0.5612 GB, free: 35.17 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006725/0.3688, allocations: 187.1 kB / 0.5613 GB, free: 35.16 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00164/0.3704, allocations: 0.7073 MB / 0.562 GB, free: 35.01 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.001081/0.3715, allocations: 0.5847 MB / 0.5626 GB, free: 34.93 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001292/0.3728, allocations: 1.574 MB / 0.5641 GB, free: 34.85 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004021/0.3732, allocations: 324.2 kB / 0.5644 GB, free: 34.8 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007251/0.374, allocations: 0.6578 MB / 0.5651 GB, free: 34.66 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006435/0.3746, allocations: 0.8181 MB / 0.5659 GB, free: 34.47 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001458/0.3748, allocations: 121.2 kB / 0.566 GB, free: 34.47 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004694/0.3753, allocations: 271.5 kB / 0.5663 GB, free: 34.46 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002289/0.3755, allocations: 327.8 kB / 0.5666 GB, free: 34.38 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004353/0.3759, allocations: 0.6713 MB / 0.5672 GB, free: 34.14 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001006/0.3769, allocations: 1.279 MB / 0.5685 GB, free: 33.93 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.377, allocations: 1.031 kB / 0.5685 GB, free: 33.93 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.377, allocations: 0 / 0.5685 GB, free: 33.93 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.369e-05/0.377, allocations: 3.188 kB / 0.5685 GB, free: 33.93 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: 190 * Number of variables: 190 Notification: Performance of Generate backend data structure: time 0.00769/0.3847, allocations: 2.684 MB / 0.5711 GB, free: 32.95 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.427e-05/0.3847, allocations: 11.59 kB / 0.5711 GB, free: 32.95 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004549/0.3893, allocations: 0.775 MB / 0.5719 GB, free: 32.86 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001351/0.3907, allocations: 0.8808 MB / 0.5727 GB, free: 32.45 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002167/0.3909, allocations: 255.5 kB / 0.573 GB, free: 32.26 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001464/0.3911, allocations: 90.25 kB / 0.5731 GB, free: 32.25 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001892/0.3929, allocations: 1.092 MB / 0.5741 GB, free: 32.16 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.004e-05/0.393, allocations: 1.781 kB / 0.5741 GB, free: 32.16 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.773e-05/0.3931, allocations: 29.12 kB / 0.5741 GB, free: 32.16 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.408e-05/0.3931, allocations: 18.5 kB / 0.5742 GB, free: 32.16 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001701/0.3948, allocations: 0.9855 MB / 0.5751 GB, free: 32.16 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.005361/0.4002, allocations: 3.827 MB / 0.5789 GB, free: 30.59 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006561/0.4067, allocations: 2.371 MB / 0.5812 GB, free: 29.77 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001308/0.4081, allocations: 0.6815 MB / 0.5818 GB, free: 29.5 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001074/0.4082, allocations: 14.92 kB / 0.5819 GB, free: 29.5 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001498/0.4097, allocations: 0.8256 MB / 0.5827 GB, free: 29.18 MB / 430.1 MB Notification: Performance of pre-optimization done (n=96): time 3.226e-06/0.4097, allocations: 0 / 0.5827 GB, free: 29.18 MB / 430.1 MB Notification: Performance of matching and sorting (n=96): time 0.02819/0.4379, allocations: 7.08 MB / 0.5896 GB, free: 27.79 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.976e-05/0.438, allocations: 123 kB / 0.5897 GB, free: 27.66 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002259/0.4403, allocations: 1.081 MB / 0.5908 GB, free: 27.21 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002764/0.4406, allocations: 42.89 kB / 0.5908 GB, free: 27.17 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004139/0.441, allocations: 497.9 kB / 0.5913 GB, free: 26.78 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005104/0.4415, allocations: 360.9 kB / 0.5916 GB, free: 26.5 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000799/0.4424, allocations: 282.4 kB / 0.5919 GB, free: 26.38 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.19e-05/0.4424, allocations: 302.3 kB / 0.5922 GB, free: 26.08 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001744/0.4442, allocations: 0.7646 MB / 0.5929 GB, free: 25.79 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001834/0.446, allocations: 0.9448 MB / 0.5938 GB, free: 25.36 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02467/0.4707, allocations: 5.6 MB / 0.5993 GB, free: 23.6 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.82e-05/0.4708, allocations: 1.469 kB / 0.5993 GB, free: 23.6 MB / 430.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01637/0.4871, allocations: 4.333 MB / 0.6035 GB, free: 22.42 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.336e-05/0.4872, allocations: 59.23 kB / 0.6036 GB, free: 22.36 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.849e-05/0.4873, allocations: 3.344 kB / 0.6036 GB, free: 22.36 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005552/0.4928, allocations: 1.513 MB / 0.6051 GB, free: 22.08 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001615/0.4945, allocations: 298.3 kB / 0.6054 GB, free: 22.05 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01809/0.5126, allocations: 8.274 MB / 0.6134 GB, free: 16.61 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002089/0.5147, allocations: 194.8 kB / 0.6136 GB, free: 16.41 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003103/0.515, allocations: 59.97 kB / 0.6137 GB, free: 16.36 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 order2.delta:VARIABLE(flow=false start = order2.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order4.delta:VARIABLE(flow=false start = order4.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order4.e1q:VARIABLE(start = order4.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 (166): * Single equations (assignments): 163 * 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 {(18,13,25.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0008335/0.5159, allocations: 304.7 kB / 0.614 GB, free: 16.05 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003705/0.5162, allocations: 134.3 kB / 0.6141 GB, free: 15.91 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01145/0.5277, allocations: 3.865 MB / 0.6179 GB, free: 12.02 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.402e-05/0.5278, allocations: 8 kB / 0.6179 GB, free: 12.01 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.229e-05/0.5278, allocations: 8 kB / 0.6179 GB, free: 12 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.916e-05/0.5278, allocations: 11.97 kB / 0.6179 GB, free: 11.99 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.01342/0.5412, allocations: 5.459 MB / 0.6232 GB, free: 6.426 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-05/0.5413, allocations: 0 / 0.6232 GB, free: 6.426 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000596/0.5419, allocations: 99.89 kB / 0.6233 GB, free: 6.328 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004804/0.5467, allocations: 1.614 MB / 0.6249 GB, free: 4.711 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001643/0.5469, allocations: 20 kB / 0.6249 GB, free: 4.691 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01886/0.5658, allocations: 9.607 MB / 0.6343 GB, free: 10.79 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.5658, allocations: 0 / 0.6343 GB, free: 10.79 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01416/0.58, allocations: 4.741 MB / 0.6389 GB, free: 6.012 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005331/0.5806, allocations: 232.4 kB / 0.6392 GB, free: 5.766 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004174/0.581, allocations: 24 kB / 0.6392 GB, free: 5.742 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001387/0.5824, allocations: 103.9 kB / 0.6393 GB, free: 5.641 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006684/0.5831, allocations: 200.8 kB / 0.6395 GB, free: 5.441 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001162/0.5832, allocations: 28 kB / 0.6395 GB, free: 5.414 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001309/0.5845, allocations: 0.7274 MB / 0.6402 GB, free: 4.68 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.5845, allocations: 0 / 0.6402 GB, free: 4.68 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00175/0.5863, allocations: 471.5 kB / 0.6407 GB, free: 4.219 MB / 446.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,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 (64): * Single equations (assignments): 61 * 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 {(21,11,21.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003369/0.5866, allocations: 136.1 kB / 0.6408 GB, free: 4.082 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006506/0.5932, allocations: 2.543 MB / 0.6433 GB, free: 1.512 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.5932, allocations: 2.062 kB / 0.6433 GB, free: 1.512 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004126/0.5973, allocations: 1.611 MB / 0.6449 GB, free: 15.86 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00111/0.5984, allocations: 121 kB / 0.645 GB, free: 15.75 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004417/0.6029, allocations: 2.72 MB / 0.6476 GB, free: 13.02 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006969/0.6036, allocations: 1.124 MB / 0.6487 GB, free: 11.87 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003363/0.6039, allocations: 87.42 kB / 0.6488 GB, free: 11.79 MB / 462.1 MB Notification: Performance of SimCode: time 7.01e-07/0.6039, allocations: 4 kB / 0.6488 GB, free: 11.78 MB / 462.1 MB Notification: Performance of Templates: time 0.02864/0.6326, allocations: 23.43 MB / 0.6717 GB, free: 4.539 MB / 478.1 MB make -j1 -f OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.makefile (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.sim & ./OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe 2>&1)