Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.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.Discretization.FourthOrder_AVRII_Continuous,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous") translateModel(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001345/0.001345, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.403/1.403, allocations: 222.9 MB / 239 MB, free: 4.73 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.001668/0.001668, allocations: 196.1 kB / 289.3 MB, free: 2.473 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4546/0.4546, allocations: 78.52 MB / 417.9 MB, free: 3.297 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001414/0.001414, allocations: 75.88 kB / 496.9 MB, free: 6.711 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1523/0.1537, allocations: 68.18 MB / 0.5519 GB, free: 2.5 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous): time 0.3156/0.4694, allocations: 6.872 MB / 0.5586 GB, free: 35.93 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.005625/0.4751, allocations: 1.988 MB / 0.5605 GB, free: 35.38 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001186/0.4763, allocations: 12.88 kB / 0.5605 GB, free: 35.38 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008441/0.4772, allocations: 180.4 kB / 0.5607 GB, free: 35.37 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00215/0.4794, allocations: 0.7058 MB / 0.5614 GB, free: 35.21 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.001378/0.4807, allocations: 0.5838 MB / 0.562 GB, free: 35.14 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001726/0.4825, allocations: 1.576 MB / 0.5635 GB, free: 35.06 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004784/0.483, allocations: 324.6 kB / 0.5638 GB, free: 35.01 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008314/0.4838, allocations: 0.6558 MB / 0.5645 GB, free: 34.87 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008141/0.4846, allocations: 0.8232 MB / 0.5653 GB, free: 34.68 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001959/0.4848, allocations: 120.9 kB / 0.5654 GB, free: 34.68 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005407/0.4854, allocations: 265.6 kB / 0.5656 GB, free: 34.66 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000275/0.4857, allocations: 329.4 kB / 0.5659 GB, free: 34.58 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005365/0.4862, allocations: 0.6719 MB / 0.5666 GB, free: 34.34 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001413/0.4877, allocations: 1.641 MB / 0.5682 GB, free: 33.96 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.873e-06/0.4877, allocations: 1.594 kB / 0.5682 GB, free: 33.96 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.454e-06/0.4877, allocations: 0 / 0.5682 GB, free: 33.96 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.673e-05/0.4877, allocations: 0 / 0.5682 GB, free: 33.96 MB / 430.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.008268/0.496, allocations: 2.69 MB / 0.5708 GB, free: 32.97 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.688e-05/0.496, allocations: 8.812 kB / 0.5708 GB, free: 32.97 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004617/0.5007, allocations: 0.7768 MB / 0.5716 GB, free: 32.88 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001633/0.5023, allocations: 0.8803 MB / 0.5725 GB, free: 32.48 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002623/0.5026, allocations: 256.8 kB / 0.5727 GB, free: 32.29 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001569/0.5028, allocations: 89.72 kB / 0.5728 GB, free: 32.28 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001927/0.5047, allocations: 1.09 MB / 0.5739 GB, free: 32.2 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.009e-05/0.5047, allocations: 0 / 0.5739 GB, free: 32.2 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.822e-05/0.5048, allocations: 30.28 kB / 0.5739 GB, free: 32.2 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.794e-05/0.5049, allocations: 21.59 kB / 0.5739 GB, free: 32.2 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001769/0.5066, allocations: 0.9809 MB / 0.5749 GB, free: 32.2 MB / 430.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.005925/0.5126, allocations: 3.832 MB / 0.5786 GB, free: 30.48 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006955/0.5195, allocations: 2.368 MB / 0.5809 GB, free: 29.66 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001521/0.5211, allocations: 0.6822 MB / 0.5816 GB, free: 29.39 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001155/0.5212, allocations: 19.39 kB / 0.5816 GB, free: 29.39 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001752/0.523, allocations: 0.8246 MB / 0.5824 GB, free: 29.07 MB / 430.1 MB Notification: Performance of pre-optimization done (n=96): time 2.775e-06/0.523, allocations: 0 / 0.5824 GB, free: 29.07 MB / 430.1 MB Notification: Performance of matching and sorting (n=96): time 0.0286/0.5516, allocations: 7.077 MB / 0.5893 GB, free: 27.68 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.917e-05/0.5517, allocations: 118.6 kB / 0.5894 GB, free: 27.55 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001809/0.5535, allocations: 1.081 MB / 0.5905 GB, free: 27.11 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002561/0.5538, allocations: 42.73 kB / 0.5905 GB, free: 27.07 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003419/0.5541, allocations: 498.6 kB / 0.591 GB, free: 26.68 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003672/0.5545, allocations: 365.2 kB / 0.5914 GB, free: 26.39 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005271/0.555, allocations: 282.1 kB / 0.5916 GB, free: 26.27 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.996e-05/0.5551, allocations: 308.6 kB / 0.5919 GB, free: 25.96 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001576/0.5567, allocations: 0.7602 MB / 0.5927 GB, free: 25.68 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001648/0.5583, allocations: 0.9473 MB / 0.5936 GB, free: 25.24 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02269/0.581, allocations: 5.597 MB / 0.5991 GB, free: 23.49 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.291e-05/0.5811, allocations: 1.375 kB / 0.5991 GB, free: 23.49 MB / 430.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01378/0.5949, allocations: 4.332 MB / 0.6033 GB, free: 22.31 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.472e-05/0.595, allocations: 60.59 kB / 0.6033 GB, free: 22.25 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.864e-05/0.595, allocations: 3.156 kB / 0.6033 GB, free: 22.25 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005514/0.6005, allocations: 1.508 MB / 0.6048 GB, free: 21.98 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001726/0.6023, allocations: 298.2 kB / 0.6051 GB, free: 21.95 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0172/0.6195, allocations: 8.273 MB / 0.6132 GB, free: 16.24 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002149/0.6217, allocations: 202.8 kB / 0.6134 GB, free: 16.04 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001519/0.6219, allocations: 55.97 kB / 0.6134 GB, free: 15.98 MB / 430.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.0006179/0.6225, allocations: 309.2 kB / 0.6137 GB, free: 15.67 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002383/0.6227, allocations: 130.3 kB / 0.6138 GB, free: 15.54 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01139/0.6341, allocations: 3.871 MB / 0.6176 GB, free: 11.64 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.261e-05/0.6342, allocations: 12 kB / 0.6176 GB, free: 11.63 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.086e-05/0.6342, allocations: 4 kB / 0.6176 GB, free: 11.63 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.199e-05/0.6342, allocations: 4.734 kB / 0.6176 GB, free: 11.62 MB / 430.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.01291/0.6471, allocations: 5.458 MB / 0.623 GB, free: 6.059 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.267e-05/0.6472, allocations: 4 kB / 0.623 GB, free: 6.055 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006221/0.6478, allocations: 95.89 kB / 0.6231 GB, free: 5.961 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004894/0.6527, allocations: 1.619 MB / 0.6247 GB, free: 4.336 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001712/0.6529, allocations: 16.94 kB / 0.6247 GB, free: 4.32 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01856/0.6715, allocations: 9.608 MB / 0.6341 GB, free: 10.41 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.977e-06/0.6715, allocations: 4 kB / 0.6341 GB, free: 10.41 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01423/0.6858, allocations: 4.725 MB / 0.6387 GB, free: 5.648 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006055/0.6864, allocations: 231.2 kB / 0.6389 GB, free: 5.402 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002013/0.6866, allocations: 17.25 kB / 0.6389 GB, free: 5.387 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001181/0.6878, allocations: 111.9 kB / 0.639 GB, free: 5.277 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006259/0.6885, allocations: 204.8 kB / 0.6392 GB, free: 5.074 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.929e-05/0.6885, allocations: 23.98 kB / 0.6392 GB, free: 5.051 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001014/0.6896, allocations: 0.7313 MB / 0.6399 GB, free: 4.312 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.6896, allocations: 0 / 0.6399 GB, free: 4.312 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001491/0.6911, allocations: 477.8 kB / 0.6404 GB, free: 3.848 MB / 446.1 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.0003016/0.6914, allocations: 135.8 kB / 0.6405 GB, free: 3.711 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006514/0.6979, allocations: 2.542 MB / 0.643 GB, free: 1.141 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.961e-06/0.6979, allocations: 4.188 kB / 0.643 GB, free: 1.137 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004271/0.7022, allocations: 1.608 MB / 0.6446 GB, free: 15.49 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001142/0.7034, allocations: 119.7 kB / 0.6447 GB, free: 15.38 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00424/0.7076, allocations: 2.683 MB / 0.6473 GB, free: 12.7 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006591/0.7083, allocations: 1.124 MB / 0.6484 GB, free: 11.54 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0004782/0.7088, allocations: 124.8 kB / 0.6485 GB, free: 11.42 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002409/0.709, allocations: 79.42 kB / 0.6486 GB, free: 11.34 MB / 462.1 MB Notification: Performance of SimCode: time 6.81e-07/0.709, allocations: 0 / 0.6486 GB, free: 11.34 MB / 462.1 MB Notification: Performance of Templates: time 0.0337/0.7427, allocations: 22.7 MB / 0.6708 GB, free: 4.875 MB / 478.1 MB make -j1 -f OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.makefile (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.sim & ./OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe 2>&1)