Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo", uses=false) Using package OpenIPSL with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII") translateModel(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001833/0.001833, allocations: 182.9 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.443/1.443, allocations: 205.1 MB / 221.8 MB, free: 8.469 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001185/0.001185, allocations: 98.3 kB / 269.2 MB, free: 8.434 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08119/0.08119, allocations: 12.59 MB / 329.1 MB, free: 12.4 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.2928/0.2928, allocations: 78.52 MB / 457.8 MB, free: 13.72 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001748/0.001748, allocations: 106 kB / 0.5254 GB, free: 19.71 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1475/0.1492, allocations: 68.14 MB / 0.592 GB, free: 15.65 MB / 394.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII): time 0.008314/0.1576, allocations: 6.909 MB / 0.5987 GB, free: 8.699 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.006567/0.1642, allocations: 1.971 MB / 0.6006 GB, free: 6.719 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001685/0.166, allocations: 12 kB / 0.6007 GB, free: 6.707 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001595/0.1676, allocations: 186.8 kB / 0.6008 GB, free: 6.523 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003393/0.1711, allocations: 0.7214 MB / 0.6015 GB, free: 5.805 MB / 394.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/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.001706/0.1728, allocations: 0.5881 MB / 0.6021 GB, free: 5.223 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.002474/0.1753, allocations: 1.514 MB / 0.6036 GB, free: 3.703 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006598/0.176, allocations: 293.2 kB / 0.6039 GB, free: 3.406 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001165/0.1771, allocations: 0.5987 MB / 0.6045 GB, free: 2.805 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001313/0.1785, allocations: 0.7854 MB / 0.6052 GB, free: 2.016 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005466/0.179, allocations: 72 kB / 0.6053 GB, free: 1.945 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001122/0.1801, allocations: 199.9 kB / 0.6055 GB, free: 1.75 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006117/0.1808, allocations: 274.6 kB / 0.6057 GB, free: 1.48 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001066/0.1819, allocations: 0.6212 MB / 0.6064 GB, free: 0.8555 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002052/0.1839, allocations: 1.592 MB / 0.6079 GB, free: 15.26 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.1839, allocations: 0 / 0.6079 GB, free: 15.26 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1839, allocations: 0 / 0.6079 GB, free: 15.26 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.549e-05/0.184, allocations: 4 kB / 0.6079 GB, free: 15.25 MB / 410.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.009927/0.194, allocations: 2.688 MB / 0.6105 GB, free: 12.5 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.182e-05/0.194, allocations: 11.98 kB / 0.6105 GB, free: 12.49 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005069/0.1991, allocations: 0.7787 MB / 0.6113 GB, free: 11.71 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002042/0.2012, allocations: 0.8862 MB / 0.6122 GB, free: 10.77 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003264/0.2015, allocations: 256.2 kB / 0.6124 GB, free: 10.48 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002779/0.2018, allocations: 84 kB / 0.6125 GB, free: 10.39 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002454/0.2043, allocations: 1.086 MB / 0.6136 GB, free: 9.297 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.882e-05/0.2043, allocations: 4 kB / 0.6136 GB, free: 9.293 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.769e-05/0.2044, allocations: 32 kB / 0.6136 GB, free: 9.262 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.631e-05/0.2045, allocations: 16 kB / 0.6136 GB, free: 9.246 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002125/0.2066, allocations: 0.9916 MB / 0.6146 GB, free: 8.254 MB / 410.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.007417/0.214, allocations: 3.82 MB / 0.6183 GB, free: 4.258 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007479/0.2215, allocations: 2.368 MB / 0.6206 GB, free: 1.801 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001747/0.2234, allocations: 0.684 MB / 0.6213 GB, free: 1.113 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001788/0.2236, allocations: 24.97 kB / 0.6213 GB, free: 1.09 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001983/0.2256, allocations: 0.8138 MB / 0.6221 GB, free: 260 kB / 410.7 MB Notification: Performance of pre-optimization done (n=96): time 4.749e-06/0.2256, allocations: 0 / 0.6221 GB, free: 260 kB / 410.7 MB Notification: Performance of matching and sorting (n=96): time 0.029/0.2546, allocations: 7.077 MB / 0.629 GB, free: 9.113 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.611e-05/0.2548, allocations: 123.7 kB / 0.6291 GB, free: 8.969 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001944/0.2567, allocations: 1.087 MB / 0.6302 GB, free: 7.867 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000246/0.257, allocations: 45.7 kB / 0.6302 GB, free: 7.816 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004134/0.2574, allocations: 488.8 kB / 0.6307 GB, free: 7.332 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005165/0.2579, allocations: 359 kB / 0.6311 GB, free: 6.977 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008034/0.2587, allocations: 287.4 kB / 0.6313 GB, free: 6.691 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001023/0.2589, allocations: 309.1 kB / 0.6316 GB, free: 6.387 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001716/0.2606, allocations: 0.7574 MB / 0.6324 GB, free: 5.629 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001789/0.2624, allocations: 0.9382 MB / 0.6333 GB, free: 4.648 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2946/0.557, allocations: 5.575 MB / 0.6387 GB, free: 48.92 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.103e-05/0.557, allocations: 2.625 kB / 0.6387 GB, free: 48.92 MB / 426.7 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.0148/0.5718, allocations: 4.335 MB / 0.643 GB, free: 48.05 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.226e-05/0.572, allocations: 60.2 kB / 0.643 GB, free: 47.98 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.051e-05/0.572, allocations: 5.469 kB / 0.643 GB, free: 47.98 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005937/0.5779, allocations: 1.51 MB / 0.6445 GB, free: 47.78 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001915/0.5799, allocations: 293.5 kB / 0.6448 GB, free: 47.75 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01976/0.5997, allocations: 7.617 MB / 0.6522 GB, free: 44.32 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001977/0.6017, allocations: 205 kB / 0.6524 GB, free: 44.29 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001428/0.6019, allocations: 60.75 kB / 0.6525 GB, free: 44.27 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.0006098/0.6025, allocations: 300 kB / 0.6528 GB, free: 44.03 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002233/0.6027, allocations: 126.7 kB / 0.6529 GB, free: 43.97 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01273/0.6154, allocations: 3.874 MB / 0.6567 GB, free: 43.04 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-05/0.6155, allocations: 14.31 kB / 0.6567 GB, free: 43.04 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.27e-05/0.6155, allocations: 11.19 kB / 0.6567 GB, free: 43.04 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.312e-05/0.6156, allocations: 3.797 kB / 0.6567 GB, free: 43.04 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.01471/0.6303, allocations: 5.456 MB / 0.662 GB, free: 40.7 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.346e-05/0.6304, allocations: 0 / 0.662 GB, free: 40.7 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006611/0.631, allocations: 98.55 kB / 0.6621 GB, free: 40.68 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005271/0.6363, allocations: 1.611 MB / 0.6637 GB, free: 39.98 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002076/0.6366, allocations: 23.75 kB / 0.6637 GB, free: 39.96 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01746/0.654, allocations: 8.766 MB / 0.6723 GB, free: 33.36 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.915e-06/0.6541, allocations: 4 kB / 0.6723 GB, free: 33.35 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.08769/0.7418, allocations: 33.02 MB / 0.7045 GB, free: 15.88 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004279/0.7422, allocations: 223.2 kB / 0.7047 GB, free: 15.64 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003308/0.7426, allocations: 20 kB / 0.7047 GB, free: 15.62 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001329/0.7439, allocations: 111.7 kB / 0.7048 GB, free: 15.52 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00068/0.7446, allocations: 192.7 kB / 0.705 GB, free: 15.33 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000134/0.7448, allocations: 28 kB / 0.7051 GB, free: 15.3 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00123/0.746, allocations: 0.7312 MB / 0.7058 GB, free: 14.57 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.6e-07/0.746, allocations: 0 / 0.7058 GB, free: 14.57 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002475/0.7485, allocations: 0.651 MB / 0.7064 GB, free: 13.92 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.0003308/0.7489, allocations: 139 kB / 0.7065 GB, free: 13.77 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00655/0.7554, allocations: 2.5 MB / 0.709 GB, free: 11.23 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.299e-06/0.7555, allocations: 128 / 0.709 GB, free: 11.23 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004517/0.76, allocations: 1.618 MB / 0.7106 GB, free: 9.574 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001308/0.7613, allocations: 112.6 kB / 0.7107 GB, free: 9.465 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009027/0.7704, allocations: 4.123 MB / 0.7147 GB, free: 5.277 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001042/0.7714, allocations: 1.16 MB / 0.7158 GB, free: 4.086 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0007385/0.7722, allocations: 132 kB / 0.716 GB, free: 3.953 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004456/0.7727, allocations: 79.41 kB / 0.716 GB, free: 3.875 MB / 442.7 MB Notification: Performance of SimCode: time 2.024e-06/0.7727, allocations: 0 / 0.716 GB, free: 3.875 MB / 442.7 MB Notification: Performance of Templates: time 0.05575/0.8284, allocations: 31.66 MB / 0.7469 GB, free: 4.27 MB / 474.7 MB make -j1 -f OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.makefile (rm -f OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe ; mkfifo OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe >> ../files/OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.sim & ./OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe 2>&1)