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.007477/0.007477, allocations: 167.7 kB / 15.13 MB, free: 6.02 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.363/1.363, allocations: 223.3 MB / 239.1 MB, free: 1.703 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.0008299/0.0008298, allocations: 101.3 kB / 290.3 MB, free: 13.91 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.6329/0.6329, allocations: 78.61 MB / 420 MB, free: 44.16 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003356/0.0003356, allocations: 16 kB / 499.9 MB, free: 2.914 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3378/0.3382, allocations: 69.35 MB / 0.5559 GB, free: 38.86 MB / 426.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII): time 0.005102/0.3433, allocations: 6.001 MB / 0.5618 GB, free: 37.6 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.003203/0.3465, allocations: 1.905 MB / 0.5636 GB, free: 36.25 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000402/0.3469, allocations: 10.44 kB / 0.5636 GB, free: 36.25 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004905/0.3474, allocations: 171.2 kB / 0.5638 GB, free: 36.17 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001386/0.3488, allocations: 0.6623 MB / 0.5644 GB, free: 35.74 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.00104/0.3499, allocations: 0.5281 MB / 0.565 GB, free: 35.48 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.001252/0.3512, allocations: 1.415 MB / 0.5663 GB, free: 34.77 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003575/0.3515, allocations: 260.9 kB / 0.5666 GB, free: 34.65 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006258/0.3522, allocations: 0.5586 MB / 0.5671 GB, free: 34.41 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006904/0.3529, allocations: 0.7226 MB / 0.5678 GB, free: 34.11 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001392/0.353, allocations: 58.25 kB / 0.5679 GB, free: 34.11 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003703/0.3534, allocations: 191.4 kB / 0.5681 GB, free: 34.06 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001742/0.3536, allocations: 242.6 kB / 0.5683 GB, free: 33.93 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001786/0.3538, allocations: 232.9 kB / 0.5685 GB, free: 33.78 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007712/0.3545, allocations: 1.223 MB / 0.5697 GB, free: 33.42 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.3545, allocations: 0 / 0.5697 GB, free: 33.42 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.185e-06/0.3546, allocations: 3.469 kB / 0.5697 GB, free: 33.42 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.699e-05/0.3546, allocations: 7.938 kB / 0.5697 GB, free: 33.41 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.00729/0.3619, allocations: 2.503 MB / 0.5722 GB, free: 32.29 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.507e-05/0.3619, allocations: 15.06 kB / 0.5722 GB, free: 32.29 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004714/0.3666, allocations: 0.7822 MB / 0.573 GB, free: 32.13 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001337/0.368, allocations: 0.8421 MB / 0.5738 GB, free: 31.58 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002288/0.3682, allocations: 272.1 kB / 0.574 GB, free: 31.35 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001343/0.3684, allocations: 83.69 kB / 0.5741 GB, free: 31.32 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001965/0.3703, allocations: 1.137 MB / 0.5752 GB, free: 30.91 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.736e-05/0.3704, allocations: 0 / 0.5752 GB, free: 30.91 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.262e-05/0.3705, allocations: 30.91 kB / 0.5753 GB, free: 30.88 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.844e-05/0.3705, allocations: 21.14 kB / 0.5753 GB, free: 30.88 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001843/0.3723, allocations: 1.051 MB / 0.5763 GB, free: 30.54 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.005703/0.3781, allocations: 3.907 MB / 0.5801 GB, free: 28.32 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007443/0.3855, allocations: 2.916 MB / 0.583 GB, free: 27.43 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001322/0.3869, allocations: 0.7346 MB / 0.5837 GB, free: 27.15 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.121e-05/0.387, allocations: 13.34 kB / 0.5837 GB, free: 27.15 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001468/0.3884, allocations: 0.871 MB / 0.5845 GB, free: 26.83 MB / 426.7 MB Notification: Performance of pre-optimization done (n=96): time 3.867e-06/0.3885, allocations: 0 / 0.5845 GB, free: 26.83 MB / 426.7 MB Notification: Performance of matching and sorting (n=96): time 0.02876/0.4172, allocations: 8.638 MB / 0.593 GB, free: 25.26 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.181e-05/0.4173, allocations: 117.9 kB / 0.5931 GB, free: 25.13 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001474/0.4188, allocations: 1.069 MB / 0.5941 GB, free: 24.69 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001988/0.419, allocations: 46.08 kB / 0.5942 GB, free: 24.64 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002863/0.4193, allocations: 498.5 kB / 0.5947 GB, free: 24.25 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002997/0.4196, allocations: 353 kB / 0.595 GB, free: 23.98 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.839e-05/0.4197, allocations: 30.81 kB / 0.595 GB, free: 23.96 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 8.675e-05/0.4198, allocations: 369.3 kB / 0.5954 GB, free: 23.62 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001561/0.4213, allocations: 0.8178 MB / 0.5962 GB, free: 23.33 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001601/0.423, allocations: 0.9953 MB / 0.5971 GB, free: 22.89 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001687/0.4247, allocations: 0.9619 MB / 0.5981 GB, free: 22.43 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.522e-06/0.4247, allocations: 5.656 kB / 0.5981 GB, free: 22.43 MB / 426.7 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01476/0.4394, allocations: 5.16 MB / 0.6031 GB, free: 21.17 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.033e-05/0.4395, allocations: 62.08 kB / 0.6032 GB, free: 21.11 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.804e-05/0.4396, allocations: 2.469 kB / 0.6032 GB, free: 21.11 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006803/0.4464, allocations: 1.898 MB / 0.605 GB, free: 20.8 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001602/0.448, allocations: 301.1 kB / 0.6053 GB, free: 20.77 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01938/0.4674, allocations: 9.016 MB / 0.6141 GB, free: 14.16 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001925/0.4694, allocations: 242.6 kB / 0.6144 GB, free: 13.92 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001211/0.4695, allocations: 55.97 kB / 0.6144 GB, free: 13.86 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 aVRTypeII.firstOrder2.y:VARIABLE(flow=false start = aVRTypeII.firstOrder2.y_start fixed = true ) "Connector of Real output signal" type: Real order4.e1d:VARIABLE(start = order4.e1d0 unit = "1" fixed = true ) "d-axis transient voltage" 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 ($whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (164): * Single equations (assignments): 161 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {19 14} Notification: Performance of prepare postOptimizeDAE: time 0.0005186/0.47, allocations: 300.5 kB / 0.6147 GB, free: 13.55 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000178/0.4702, allocations: 126.4 kB / 0.6148 GB, free: 13.43 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01278/0.483, allocations: 4.713 MB / 0.6194 GB, free: 8.684 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-05/0.4831, allocations: 12 kB / 0.6194 GB, free: 8.672 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.226e-05/0.4831, allocations: 8 kB / 0.6195 GB, free: 8.664 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.037e-05/0.4831, allocations: 7.938 kB / 0.6195 GB, free: 8.656 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.01431/0.4974, allocations: 6.294 MB / 0.6256 GB, free: 2.254 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.274e-05/0.4975, allocations: 7.984 kB / 0.6256 GB, free: 2.246 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006324/0.4981, allocations: 95.84 kB / 0.6257 GB, free: 2.152 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00546/0.5036, allocations: 1.899 MB / 0.6276 GB, free: 252 kB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001579/0.5038, allocations: 20 kB / 0.6276 GB, free: 232 kB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02009/0.5239, allocations: 9.634 MB / 0.637 GB, free: 6.309 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/0.5239, allocations: 7.953 kB / 0.637 GB, free: 6.301 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01589/0.5398, allocations: 5.639 MB / 0.6425 GB, free: 0.6289 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005808/0.5404, allocations: 227.3 kB / 0.6427 GB, free: 396 kB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001894/0.5406, allocations: 23.95 kB / 0.6427 GB, free: 372 kB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001244/0.5419, allocations: 143.9 kB / 0.6429 GB, free: 228 kB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000519/0.5424, allocations: 196.7 kB / 0.6431 GB, free: 28 kB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.27e-05/0.5425, allocations: 27.98 kB / 0.6431 GB, free: 0 / 442.7 MB Notification: Performance of sorting global known variables: time 0.0011/0.5436, allocations: 0.7157 MB / 0.6438 GB, free: 15.28 MB / 458.7 MB Notification: Performance of sort global known variables: time 5.91e-07/0.5436, allocations: 0 / 0.6438 GB, free: 15.28 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001428/0.5451, allocations: 487.4 kB / 0.6443 GB, free: 14.8 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(21,21.8%) 11} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002573/0.5453, allocations: 132.3 kB / 0.6444 GB, free: 14.66 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.006489/0.5518, allocations: 2.78 MB / 0.6471 GB, free: 11.85 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.5518, allocations: 0 / 0.6471 GB, free: 11.85 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00456/0.5564, allocations: 1.831 MB / 0.6489 GB, free: 9.98 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008236/0.5572, allocations: 116.6 kB / 0.649 GB, free: 9.863 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003688/0.5609, allocations: 2.647 MB / 0.6516 GB, free: 7.195 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006179/0.5616, allocations: 1.124 MB / 0.6527 GB, free: 6.043 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0004313/0.562, allocations: 120.1 kB / 0.6528 GB, free: 5.922 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002481/0.5623, allocations: 75.41 kB / 0.6529 GB, free: 5.848 MB / 458.7 MB Notification: Performance of SimCode: time 2.034e-06/0.5623, allocations: 0 / 0.6529 GB, free: 5.848 MB / 458.7 MB Notification: Performance of Templates: time 0.03262/0.5949, allocations: 21.31 MB / 0.6737 GB, free: 0.5664 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)