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.002157/0.002157, allocations: 168.2 kB / 16.1 MB, free: 5.691 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.405/1.405, allocations: 223.3 MB / 240.1 MB, free: 9.957 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009533/0.0009533, allocations: 99.5 kB / 291.3 MB, free: 10.54 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4359/0.4359, allocations: 78.61 MB / 421 MB, free: 9.031 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004213/0.0004213, allocations: 11.94 kB / 0.4894 GB, free: 9.211 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3152/0.3157, allocations: 69.35 MB / 0.5571 GB, free: 18.79 MB / 378.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII): time 0.005122/0.3209, allocations: 6.393 MB / 0.5634 GB, free: 12.37 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.003841/0.3247, allocations: 1.994 MB / 0.5653 GB, free: 10.37 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001235/0.326, allocations: 12 kB / 0.5653 GB, free: 10.36 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009053/0.3269, allocations: 190.8 kB / 0.5655 GB, free: 10.17 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002425/0.3294, allocations: 0.6957 MB / 0.5662 GB, free: 9.473 MB / 378.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.001359/0.3307, allocations: 0.5948 MB / 0.5668 GB, free: 8.883 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.001817/0.3326, allocations: 1.499 MB / 0.5682 GB, free: 7.375 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005147/0.3331, allocations: 281.3 kB / 0.5685 GB, free: 7.09 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009272/0.334, allocations: 0.5637 MB / 0.5691 GB, free: 6.523 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009976/0.335, allocations: 0.7464 MB / 0.5698 GB, free: 5.773 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003268/0.3354, allocations: 60 kB / 0.5698 GB, free: 5.715 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006616/0.3361, allocations: 195.8 kB / 0.57 GB, free: 5.523 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003015/0.3364, allocations: 258.7 kB / 0.5703 GB, free: 5.27 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005704/0.3369, allocations: 0.6227 MB / 0.5709 GB, free: 4.637 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009444/0.3379, allocations: 1.225 MB / 0.5721 GB, free: 3.41 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.3379, allocations: 0 / 0.5721 GB, free: 3.41 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.903e-06/0.3379, allocations: 0 / 0.5721 GB, free: 3.41 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.84e-05/0.3379, allocations: 0 / 0.5721 GB, free: 3.41 MB / 378.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.007067/0.345, allocations: 2.494 MB / 0.5745 GB, free: 0.8516 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.981e-05/0.3451, allocations: 8.031 kB / 0.5745 GB, free: 0.8438 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00484/0.3499, allocations: 0.7788 MB / 0.5753 GB, free: 64 kB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002142/0.3521, allocations: 0.8863 MB / 0.5762 GB, free: 15.12 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003035/0.3524, allocations: 268.2 kB / 0.5764 GB, free: 14.82 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001763/0.3526, allocations: 83.91 kB / 0.5765 GB, free: 14.74 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002151/0.3548, allocations: 1.161 MB / 0.5776 GB, free: 13.57 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.467e-05/0.3548, allocations: 3.984 kB / 0.5776 GB, free: 13.56 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.77e-05/0.3549, allocations: 28 kB / 0.5777 GB, free: 13.54 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.572e-05/0.3549, allocations: 20 kB / 0.5777 GB, free: 13.52 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00198/0.3569, allocations: 1.046 MB / 0.5787 GB, free: 12.47 MB / 394.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.006619/0.3636, allocations: 3.917 MB / 0.5825 GB, free: 8.375 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007465/0.371, allocations: 2.906 MB / 0.5854 GB, free: 5.375 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0014/0.3725, allocations: 0.7445 MB / 0.5861 GB, free: 4.625 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001104/0.3726, allocations: 20.97 kB / 0.5861 GB, free: 4.605 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001575/0.3742, allocations: 0.8802 MB / 0.587 GB, free: 3.707 MB / 394.7 MB Notification: Performance of pre-optimization done (n=96): time 4.649e-06/0.3742, allocations: 0 / 0.587 GB, free: 3.707 MB / 394.7 MB Notification: Performance of matching and sorting (n=96): time 0.02783/0.402, allocations: 8.671 MB / 0.5954 GB, free: 10.97 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.012e-05/0.4022, allocations: 119.8 kB / 0.5955 GB, free: 10.83 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001721/0.4039, allocations: 1.087 MB / 0.5966 GB, free: 9.727 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002343/0.4042, allocations: 45.7 kB / 0.5967 GB, free: 9.676 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004026/0.4046, allocations: 488.8 kB / 0.5971 GB, free: 9.191 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004091/0.405, allocations: 362.9 kB / 0.5975 GB, free: 8.832 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002178/0.4052, allocations: 149.6 kB / 0.5976 GB, free: 8.68 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001299/0.4054, allocations: 301.1 kB / 0.5979 GB, free: 8.383 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001636/0.407, allocations: 0.8238 MB / 0.5987 GB, free: 7.559 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001761/0.4088, allocations: 1.005 MB / 0.5997 GB, free: 6.516 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02239/0.4312, allocations: 6.012 MB / 0.6056 GB, free: 428 kB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.068e-05/0.4312, allocations: 0 / 0.6056 GB, free: 428 kB / 410.7 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01383/0.4451, allocations: 5.172 MB / 0.6106 GB, free: 11.22 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.298e-05/0.4452, allocations: 63.39 kB / 0.6107 GB, free: 11.14 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.847e-05/0.4452, allocations: 4 kB / 0.6107 GB, free: 11.14 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005454/0.4507, allocations: 1.789 MB / 0.6124 GB, free: 9.348 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001441/0.4522, allocations: 291.6 kB / 0.6127 GB, free: 9.062 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01767/0.4698, allocations: 8.613 MB / 0.6211 GB, free: 312 kB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001718/0.4716, allocations: 238.8 kB / 0.6213 GB, free: 72 kB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001212/0.4717, allocations: 59.97 kB / 0.6214 GB, free: 12 kB / 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.0006129/0.4724, allocations: 296.3 kB / 0.6217 GB, free: 15.71 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001802/0.4725, allocations: 126.4 kB / 0.6218 GB, free: 15.58 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01258/0.4851, allocations: 4.721 MB / 0.6264 GB, free: 10.83 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.597e-05/0.4852, allocations: 12 kB / 0.6264 GB, free: 10.82 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.373e-05/0.4852, allocations: 11.94 kB / 0.6264 GB, free: 10.8 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.257e-05/0.4852, allocations: 7.969 kB / 0.6264 GB, free: 10.8 MB / 442.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.01417/0.4994, allocations: 6.301 MB / 0.6326 GB, free: 4.387 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.156e-06/0.4995, allocations: 0 / 0.6326 GB, free: 4.387 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005553/0.5, allocations: 99.89 kB / 0.6327 GB, free: 4.289 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005355/0.5054, allocations: 1.903 MB / 0.6345 GB, free: 2.379 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000137/0.5056, allocations: 20 kB / 0.6346 GB, free: 2.359 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0185/0.5241, allocations: 9.656 MB / 0.644 GB, free: 8.414 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.5241, allocations: 3.938 kB / 0.644 GB, free: 8.41 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01434/0.5385, allocations: 5.643 MB / 0.6495 GB, free: 2.734 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000544/0.539, allocations: 231.2 kB / 0.6497 GB, free: 2.488 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001696/0.5392, allocations: 24 kB / 0.6497 GB, free: 2.465 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001074/0.5403, allocations: 139.9 kB / 0.6499 GB, free: 2.328 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005912/0.5409, allocations: 200.6 kB / 0.6501 GB, free: 2.129 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.302e-05/0.541, allocations: 24.09 kB / 0.6501 GB, free: 2.105 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001054/0.542, allocations: 0.7312 MB / 0.6508 GB, free: 1.367 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5421, allocations: 0 / 0.6508 GB, free: 1.367 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001362/0.5434, allocations: 471.5 kB / 0.6513 GB, free: 0.9062 MB / 458.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.0002832/0.5437, allocations: 135 kB / 0.6514 GB, free: 0.7656 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005988/0.5497, allocations: 2.79 MB / 0.6541 GB, free: 13.93 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 7.123e-06/0.5497, allocations: 7.938 kB / 0.6541 GB, free: 13.93 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004133/0.5539, allocations: 1.816 MB / 0.6559 GB, free: 12.08 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009931/0.5549, allocations: 118.9 kB / 0.656 GB, free: 11.96 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003956/0.5589, allocations: 2.815 MB / 0.6588 GB, free: 9.117 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006566/0.5595, allocations: 1.128 MB / 0.6599 GB, free: 7.957 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003269/0.5599, allocations: 83.41 kB / 0.6599 GB, free: 7.875 MB / 474.7 MB Notification: Performance of SimCode: time 5.11e-07/0.5599, allocations: 0 / 0.6599 GB, free: 7.875 MB / 474.7 MB Notification: Performance of Templates: time 0.02926/0.5891, allocations: 23.29 MB / 0.6827 GB, free: 0.5703 MB / 490.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)