Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.conf.json 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/Modelica 4.0.0+maint.om/package.mo", uses=false) 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/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII") translateModel(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001375/0.001375, allocations: 175.6 kB / 15.42 MB, free: 6.148 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.219/1.219, allocations: 222.9 MB / 239 MB, free: 1.797 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007314/0.0007314, allocations: 88.14 kB / 289.8 MB, free: 14.32 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4516/0.4516, allocations: 78.42 MB / 418.9 MB, free: 44.32 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003364/0.0003366, allocations: 8 kB / 498.4 MB, free: 3.918 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3066/0.307, allocations: 68.75 MB / 0.5539 GB, free: 39.63 MB / 426.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII): time 0.00615/0.3132, allocations: 6.854 MB / 0.5606 GB, free: 36.92 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.003787/0.317, allocations: 2.01 MB / 0.5625 GB, free: 36.13 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006425/0.3177, allocations: 13.25 kB / 0.5626 GB, free: 36.13 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006205/0.3183, allocations: 192 kB / 0.5627 GB, free: 36.05 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001659/0.32, allocations: 0.7111 MB / 0.5634 GB, free: 35.75 MB / 426.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/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.001309/0.3213, allocations: 0.5907 MB / 0.564 GB, free: 35.63 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.001746/0.3231, allocations: 1.498 MB / 0.5655 GB, free: 35.29 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004636/0.3235, allocations: 288.2 kB / 0.5657 GB, free: 35.21 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008183/0.3244, allocations: 0.5667 MB / 0.5663 GB, free: 35.04 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006767/0.325, allocations: 0.7446 MB / 0.567 GB, free: 34.73 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001404/0.3252, allocations: 63.09 kB / 0.5671 GB, free: 34.73 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005015/0.3257, allocations: 185.7 kB / 0.5673 GB, free: 34.69 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002052/0.3259, allocations: 261.4 kB / 0.5675 GB, free: 34.54 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004693/0.3264, allocations: 0.6019 MB / 0.5681 GB, free: 34.15 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001151/0.3276, allocations: 1.552 MB / 0.5696 GB, free: 33.57 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.3276, allocations: 2.906 kB / 0.5696 GB, free: 33.57 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3276, allocations: 0.6562 kB / 0.5696 GB, free: 33.57 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.298e-05/0.3276, allocations: 4 kB / 0.5696 GB, free: 33.57 MB / 426.7 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.007127/0.3347, allocations: 2.423 MB / 0.572 GB, free: 32.45 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.774e-05/0.3348, allocations: 8.625 kB / 0.572 GB, free: 32.45 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004603/0.3394, allocations: 0.7755 MB / 0.5728 GB, free: 32.3 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001338/0.3408, allocations: 0.8826 MB / 0.5736 GB, free: 31.7 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002203/0.341, allocations: 253.7 kB / 0.5739 GB, free: 31.48 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001468/0.3411, allocations: 90.56 kB / 0.5739 GB, free: 31.45 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001767/0.3429, allocations: 1.095 MB / 0.575 GB, free: 31.03 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.856e-05/0.3429, allocations: 2.812 kB / 0.575 GB, free: 31.03 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.476e-05/0.343, allocations: 33.95 kB / 0.5751 GB, free: 31 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.47e-05/0.3431, allocations: 17.16 kB / 0.5751 GB, free: 31 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001756/0.3448, allocations: 0.9859 MB / 0.576 GB, free: 30.67 MB / 426.7 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.005272/0.3501, allocations: 3.823 MB / 0.5798 GB, free: 28.46 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006191/0.3563, allocations: 2.37 MB / 0.5821 GB, free: 27.64 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001115/0.3574, allocations: 0.6742 MB / 0.5827 GB, free: 27.37 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001003/0.3575, allocations: 23.94 kB / 0.5828 GB, free: 27.36 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001293/0.3588, allocations: 0.8176 MB / 0.5836 GB, free: 27.05 MB / 426.7 MB Notification: Performance of pre-optimization done (n=96): time 2.515e-06/0.3589, allocations: 0 / 0.5836 GB, free: 27.05 MB / 426.7 MB Notification: Performance of matching and sorting (n=96): time 0.0243/0.3832, allocations: 7.085 MB / 0.5905 GB, free: 25.65 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.045e-05/0.3832, allocations: 120.2 kB / 0.5906 GB, free: 25.52 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001461/0.3847, allocations: 1.081 MB / 0.5916 GB, free: 25.07 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001274/0.3849, allocations: 42.27 kB / 0.5917 GB, free: 25.03 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002958/0.3852, allocations: 494.3 kB / 0.5922 GB, free: 24.64 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003393/0.3855, allocations: 357.7 kB / 0.5925 GB, free: 24.37 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000207/0.3857, allocations: 145.4 kB / 0.5926 GB, free: 24.3 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 4.163e-05/0.3858, allocations: 301.7 kB / 0.5929 GB, free: 24 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001527/0.3873, allocations: 0.7687 MB / 0.5937 GB, free: 23.71 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001567/0.3889, allocations: 0.938 MB / 0.5946 GB, free: 23.28 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02182/0.4107, allocations: 5.585 MB / 0.6 GB, free: 21.54 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.808e-06/0.4107, allocations: 0 / 0.6 GB, free: 21.54 MB / 426.7 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01231/0.4231, allocations: 4.336 MB / 0.6043 GB, free: 19.82 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.551e-05/0.4232, allocations: 67.86 kB / 0.6043 GB, free: 19.75 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.63e-05/0.4232, allocations: 2.719 kB / 0.6043 GB, free: 19.75 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005016/0.4282, allocations: 1.504 MB / 0.6058 GB, free: 19.08 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001424/0.4296, allocations: 296.6 kB / 0.6061 GB, free: 19.01 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0155/0.4452, allocations: 7.628 MB / 0.6136 GB, free: 14.01 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001748/0.4469, allocations: 198.8 kB / 0.6137 GB, free: 13.81 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.983e-05/0.447, allocations: 55.97 kB / 0.6138 GB, free: 13.76 MB / 426.7 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.0005083/0.4476, allocations: 300.8 kB / 0.6141 GB, free: 13.45 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001518/0.4477, allocations: 130.4 kB / 0.6142 GB, free: 13.32 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01076/0.4585, allocations: 3.869 MB / 0.618 GB, free: 9.418 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.566e-06/0.4585, allocations: 12 kB / 0.618 GB, free: 9.406 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.155e-06/0.4585, allocations: 7.938 kB / 0.618 GB, free: 9.398 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.116e-05/0.4585, allocations: 11.92 kB / 0.618 GB, free: 9.387 MB / 426.7 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.01171/0.4702, allocations: 5.453 MB / 0.6233 GB, free: 3.824 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.08e-06/0.4703, allocations: 3.984 kB / 0.6233 GB, free: 3.82 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004654/0.4707, allocations: 99.89 kB / 0.6234 GB, free: 3.723 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004503/0.4752, allocations: 1.614 MB / 0.625 GB, free: 2.102 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.588e-05/0.4753, allocations: 20 kB / 0.625 GB, free: 2.082 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01623/0.4916, allocations: 8.754 MB / 0.6336 GB, free: 9.043 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.4916, allocations: 0 / 0.6336 GB, free: 9.043 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01302/0.5046, allocations: 4.737 MB / 0.6382 GB, free: 4.273 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000401/0.505, allocations: 231.2 kB / 0.6384 GB, free: 4.027 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001542/0.5052, allocations: 20 kB / 0.6384 GB, free: 4.008 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001028/0.5062, allocations: 107.9 kB / 0.6385 GB, free: 3.902 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005196/0.5068, allocations: 184.7 kB / 0.6387 GB, free: 3.719 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.9e-05/0.5068, allocations: 31.98 kB / 0.6388 GB, free: 3.688 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0009606/0.5078, allocations: 0.7274 MB / 0.6395 GB, free: 2.953 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5078, allocations: 0 / 0.6395 GB, free: 2.953 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001256/0.5091, allocations: 471.5 kB / 0.6399 GB, free: 2.492 MB / 442.7 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.0002396/0.5093, allocations: 142.8 kB / 0.6401 GB, free: 2.344 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005394/0.5147, allocations: 2.505 MB / 0.6425 GB, free: 15.81 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.5148, allocations: 3.938 kB / 0.6425 GB, free: 15.8 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003735/0.5185, allocations: 1.595 MB / 0.6441 GB, free: 14.18 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007951/0.5193, allocations: 121.7 kB / 0.6442 GB, free: 14.05 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003438/0.5227, allocations: 2.683 MB / 0.6468 GB, free: 11.35 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005439/0.5233, allocations: 1.116 MB / 0.6479 GB, free: 10.2 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0003939/0.5237, allocations: 124 kB / 0.648 GB, free: 10.08 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002379/0.524, allocations: 79.41 kB / 0.6481 GB, free: 10 MB / 458.7 MB Notification: Performance of SimCode: time 3.6e-07/0.524, allocations: 0 / 0.6481 GB, free: 10 MB / 458.7 MB Notification: Performance of Templates: time 0.02958/0.5535, allocations: 20.97 MB / 0.6686 GB, free: 5.059 MB / 474.7 MB make -j1 -f OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.makefile (rm -f OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe ; mkfifo OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe >> ../files/OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.sim & ./OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe 2>&1)