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.007747/0.007747, allocations: 100.4 kB / 15.73 MB, free: 6.035 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.351/1.351, allocations: 222.9 MB / 239.4 MB, free: 4.562 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.001492/0.001492, allocations: 196.5 kB / 289.7 MB, free: 2.273 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4569/0.4569, allocations: 78.52 MB / 418.4 MB, free: 3.172 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00155/0.00155, allocations: 76.09 kB / 0.5536 GB, free: 0.9805 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3423/0.3438, allocations: 68.18 MB / 0.6202 GB, free: 9.691 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII): time 0.005555/0.3494, allocations: 6.56 MB / 0.6266 GB, free: 3.633 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003331/0.3528, allocations: 1.951 MB / 0.6285 GB, free: 1.676 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005719/0.3534, allocations: 15.94 kB / 0.6285 GB, free: 1.66 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000596/0.354, allocations: 242 kB / 0.6288 GB, free: 1.422 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001525/0.3556, allocations: 0.8075 MB / 0.6295 GB, free: 0.6172 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.001045/0.3566, allocations: 0.6253 MB / 0.6302 GB, free: 15.99 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001631/0.3582, allocations: 1.584 MB / 0.6317 GB, free: 14.41 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004642/0.3587, allocations: 330.4 kB / 0.632 GB, free: 14.07 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008173/0.3595, allocations: 0.6613 MB / 0.6327 GB, free: 13.41 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000935/0.3605, allocations: 0.8206 MB / 0.6335 GB, free: 12.58 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001818/0.3607, allocations: 124 kB / 0.6336 GB, free: 12.46 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004922/0.3612, allocations: 259.8 kB / 0.6338 GB, free: 12.21 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002931/0.3615, allocations: 326.6 kB / 0.6341 GB, free: 11.89 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005517/0.3621, allocations: 0.6641 MB / 0.6348 GB, free: 11.22 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001657/0.3637, allocations: 1.664 MB / 0.6364 GB, free: 9.555 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.3637, allocations: 0 / 0.6364 GB, free: 9.555 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.3637, allocations: 4 kB / 0.6364 GB, free: 9.551 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.863e-05/0.3638, allocations: 4 kB / 0.6364 GB, free: 9.547 MB / 446.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.0079/0.3717, allocations: 2.684 MB / 0.639 GB, free: 6.793 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.501e-05/0.3717, allocations: 12.03 kB / 0.6391 GB, free: 6.781 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004733/0.3765, allocations: 0.7748 MB / 0.6398 GB, free: 6.004 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001367/0.3778, allocations: 0.8786 MB / 0.6407 GB, free: 5.07 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002646/0.3781, allocations: 256.2 kB / 0.6409 GB, free: 4.781 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001606/0.3783, allocations: 91.91 kB / 0.641 GB, free: 4.691 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001978/0.3803, allocations: 1.09 MB / 0.6421 GB, free: 3.59 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.845e-05/0.3803, allocations: 0 / 0.6421 GB, free: 3.59 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.807e-05/0.3804, allocations: 32 kB / 0.6421 GB, free: 3.559 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.38e-05/0.3804, allocations: 16 kB / 0.6421 GB, free: 3.543 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001907/0.3823, allocations: 0.9877 MB / 0.6431 GB, free: 2.555 MB / 446.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.006101/0.3884, allocations: 3.804 MB / 0.6468 GB, free: 14.57 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006923/0.3954, allocations: 2.371 MB / 0.6491 GB, free: 12.11 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001414/0.3968, allocations: 0.6839 MB / 0.6498 GB, free: 11.42 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001213/0.397, allocations: 20.98 kB / 0.6498 GB, free: 11.4 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001536/0.3985, allocations: 0.8215 MB / 0.6506 GB, free: 10.56 MB / 462.1 MB Notification: Performance of pre-optimization done (n=96): time 2.935e-06/0.3985, allocations: 0 / 0.6506 GB, free: 10.56 MB / 462.1 MB Notification: Performance of matching and sorting (n=96): time 0.0258/0.4243, allocations: 7.085 MB / 0.6575 GB, free: 3.41 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.576e-05/0.4244, allocations: 115.8 kB / 0.6576 GB, free: 3.273 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001543/0.426, allocations: 1.083 MB / 0.6587 GB, free: 2.176 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001523/0.4261, allocations: 41.73 kB / 0.6587 GB, free: 2.129 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003844/0.4265, allocations: 0.493 MB / 0.6592 GB, free: 1.629 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003739/0.4269, allocations: 354.9 kB / 0.6595 GB, free: 1.277 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000506/0.4274, allocations: 287.5 kB / 0.6598 GB, free: 0.9922 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001102/0.4275, allocations: 301.1 kB / 0.6601 GB, free: 0.6953 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00151/0.4291, allocations: 0.7613 MB / 0.6609 GB, free: 15.93 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001644/0.4307, allocations: 0.9459 MB / 0.6618 GB, free: 14.95 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02113/0.4519, allocations: 5.579 MB / 0.6672 GB, free: 9.281 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.023e-06/0.4519, allocations: 0 / 0.6672 GB, free: 9.281 MB / 478.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.0121/0.464, allocations: 4.332 MB / 0.6715 GB, free: 4.922 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.026e-05/0.4641, allocations: 59.41 kB / 0.6715 GB, free: 4.852 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.463e-05/0.4641, allocations: 7.984 kB / 0.6715 GB, free: 4.844 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004887/0.469, allocations: 1.512 MB / 0.673 GB, free: 3.328 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001343/0.4703, allocations: 299.6 kB / 0.6733 GB, free: 3.035 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01766/0.488, allocations: 8.26 MB / 0.6813 GB, free: 10.62 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001698/0.4898, allocations: 194.8 kB / 0.6815 GB, free: 10.43 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000136/0.4899, allocations: 55.97 kB / 0.6816 GB, free: 10.37 MB / 494.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.0005771/0.4905, allocations: 304.3 kB / 0.6819 GB, free: 10.06 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002062/0.4907, allocations: 130.3 kB / 0.682 GB, free: 9.93 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01155/0.5023, allocations: 3.877 MB / 0.6858 GB, free: 6.016 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.429e-05/0.5023, allocations: 12 kB / 0.6858 GB, free: 6.004 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.136e-05/0.5023, allocations: 4 kB / 0.6858 GB, free: 6 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.003e-05/0.5023, allocations: 11.98 kB / 0.6858 GB, free: 5.988 MB / 494.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.01333/0.5157, allocations: 5.46 MB / 0.6911 GB, free: 432 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.769e-06/0.5157, allocations: 0 / 0.6911 GB, free: 432 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000584/0.5163, allocations: 91.91 kB / 0.6912 GB, free: 340 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005162/0.5215, allocations: 1.61 MB / 0.6928 GB, free: 14.71 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001681/0.5217, allocations: 20 kB / 0.6928 GB, free: 14.7 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01916/0.5409, allocations: 9.606 MB / 0.7022 GB, free: 4.805 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.851e-06/0.5409, allocations: 12.06 kB / 0.7022 GB, free: 4.793 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01327/0.5542, allocations: 4.727 MB / 0.7068 GB, free: 32 kB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000452/0.5547, allocations: 231.1 kB / 0.7071 GB, free: 15.79 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001558/0.5548, allocations: 20 kB / 0.7071 GB, free: 15.77 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001054/0.5559, allocations: 107.9 kB / 0.7072 GB, free: 15.66 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005937/0.5565, allocations: 200.8 kB / 0.7074 GB, free: 15.46 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.882e-05/0.5566, allocations: 24 kB / 0.7074 GB, free: 15.44 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001043/0.5576, allocations: 0.7274 MB / 0.7081 GB, free: 14.71 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5577, allocations: 0 / 0.7081 GB, free: 14.71 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001321/0.559, allocations: 467.5 kB / 0.7085 GB, free: 14.25 MB / 0.5137 GB 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.0002964/0.5593, allocations: 141.4 kB / 0.7087 GB, free: 14.1 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.005606/0.5649, allocations: 2.501 MB / 0.7111 GB, free: 11.55 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 5.471e-06/0.5649, allocations: 0 / 0.7111 GB, free: 11.55 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.003831/0.5688, allocations: 1.615 MB / 0.7127 GB, free: 9.906 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008195/0.5696, allocations: 122.9 kB / 0.7128 GB, free: 9.789 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003717/0.5733, allocations: 2.244 MB / 0.715 GB, free: 7.52 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000637/0.574, allocations: 1.124 MB / 0.7161 GB, free: 6.363 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0003741/0.5743, allocations: 120.1 kB / 0.7162 GB, free: 6.242 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002524/0.5746, allocations: 79.41 kB / 0.7163 GB, free: 6.164 MB / 0.5137 GB Notification: Performance of SimCode: time 5.51e-07/0.5746, allocations: 0 / 0.7163 GB, free: 6.164 MB / 0.5137 GB Notification: Performance of Templates: time 0.03544/0.6101, allocations: 23.68 MB / 0.7394 GB, free: 14.48 MB / 0.545 GB 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)