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.001229/0.001229, allocations: 115.6 kB / 16.37 MB, free: 6.004 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.392/1.392, allocations: 222.9 MB / 240 MB, free: 4.492 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.001425/0.001425, allocations: 184.5 kB / 290.3 MB, free: 2.215 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.463/0.463, allocations: 78.53 MB / 419 MB, free: 3.129 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001485/0.001485, allocations: 79.88 kB / 498.9 MB, free: 5.668 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1432/0.1447, allocations: 68.19 MB / 0.5538 GB, free: 1.445 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous): time 0.2383/0.3831, allocations: 6.558 MB / 0.5602 GB, free: 35.82 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003384/0.3865, allocations: 1.953 MB / 0.5621 GB, free: 35.29 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005735/0.3871, allocations: 15 kB / 0.5621 GB, free: 35.29 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006413/0.3878, allocations: 242 kB / 0.5623 GB, free: 35.28 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001671/0.3895, allocations: 0.8011 MB / 0.5631 GB, free: 35.12 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.001144/0.3906, allocations: 0.6212 MB / 0.5637 GB, free: 35.05 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001338/0.392, allocations: 1.591 MB / 0.5653 GB, free: 34.77 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004133/0.3924, allocations: 324.8 kB / 0.5656 GB, free: 34.73 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007056/0.3931, allocations: 0.6568 MB / 0.5662 GB, free: 34.55 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000722/0.3938, allocations: 0.8234 MB / 0.567 GB, free: 34.34 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001694/0.394, allocations: 120.7 kB / 0.5672 GB, free: 34.34 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004193/0.3944, allocations: 259 kB / 0.5674 GB, free: 34.33 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002154/0.3947, allocations: 333 kB / 0.5677 GB, free: 34.24 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004283/0.3951, allocations: 0.67 MB / 0.5684 GB, free: 34 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001167/0.3963, allocations: 1.662 MB / 0.57 GB, free: 33.61 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.277e-06/0.3963, allocations: 0 / 0.57 GB, free: 33.61 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.3963, allocations: 0.5625 kB / 0.57 GB, free: 33.61 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.58e-05/0.3963, allocations: 0.5625 kB / 0.57 GB, free: 33.61 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.007668/0.404, allocations: 2.684 MB / 0.5726 GB, free: 32.63 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.702e-05/0.4041, allocations: 10.75 kB / 0.5726 GB, free: 32.63 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004854/0.4089, allocations: 0.7723 MB / 0.5734 GB, free: 32.54 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001376/0.4103, allocations: 0.8867 MB / 0.5743 GB, free: 32.13 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002163/0.4105, allocations: 257.2 kB / 0.5745 GB, free: 31.94 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001523/0.4107, allocations: 86.81 kB / 0.5746 GB, free: 31.94 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001794/0.4125, allocations: 1.092 MB / 0.5756 GB, free: 31.85 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.976e-05/0.4125, allocations: 3.656 kB / 0.5756 GB, free: 31.85 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.14e-05/0.4126, allocations: 31 kB / 0.5757 GB, free: 31.85 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.394e-05/0.4126, allocations: 18.38 kB / 0.5757 GB, free: 31.85 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001738/0.4144, allocations: 0.987 MB / 0.5767 GB, free: 31.85 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.005388/0.4198, allocations: 3.805 MB / 0.5804 GB, free: 30.1 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006559/0.4264, allocations: 2.366 MB / 0.5827 GB, free: 29.29 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001387/0.4278, allocations: 0.6746 MB / 0.5833 GB, free: 29.02 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001168/0.4279, allocations: 22.67 kB / 0.5834 GB, free: 29.01 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00155/0.4294, allocations: 0.823 MB / 0.5842 GB, free: 28.69 MB / 430.1 MB Notification: Performance of pre-optimization done (n=96): time 2.445e-06/0.4295, allocations: 0 / 0.5842 GB, free: 28.69 MB / 430.1 MB Notification: Performance of matching and sorting (n=96): time 0.02818/0.4577, allocations: 7.076 MB / 0.5911 GB, free: 27.31 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000113/0.4578, allocations: 119 kB / 0.5912 GB, free: 27.18 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002418/0.4603, allocations: 1.086 MB / 0.5923 GB, free: 26.73 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000331/0.4606, allocations: 47 kB / 0.5923 GB, free: 26.68 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004829/0.4611, allocations: 493.1 kB / 0.5928 GB, free: 26.3 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005211/0.4616, allocations: 361.6 kB / 0.5931 GB, free: 26.02 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000667/0.4623, allocations: 282.1 kB / 0.5934 GB, free: 25.89 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.675e-05/0.4624, allocations: 307.1 kB / 0.5937 GB, free: 25.59 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001695/0.4641, allocations: 0.7599 MB / 0.5944 GB, free: 25.31 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00162/0.4658, allocations: 0.9428 MB / 0.5953 GB, free: 24.87 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02255/0.4883, allocations: 5.58 MB / 0.6008 GB, free: 23.13 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.139e-05/0.4884, allocations: 1.312 kB / 0.6008 GB, free: 23.13 MB / 430.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01308/0.5014, allocations: 4.344 MB / 0.605 GB, free: 21.95 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.539e-05/0.5015, allocations: 60.2 kB / 0.6051 GB, free: 21.88 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.833e-05/0.5016, allocations: 3.562 kB / 0.6051 GB, free: 21.88 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005165/0.5067, allocations: 1.514 MB / 0.6066 GB, free: 21.45 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001533/0.5083, allocations: 296.8 kB / 0.6069 GB, free: 21.39 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0177/0.526, allocations: 8.262 MB / 0.6149 GB, free: 15.56 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00214/0.5282, allocations: 198.8 kB / 0.6151 GB, free: 15.36 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002768/0.5285, allocations: 55.97 kB / 0.6152 GB, free: 15.31 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.0009438/0.5294, allocations: 305.9 kB / 0.6155 GB, free: 15 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004505/0.5299, allocations: 134.3 kB / 0.6156 GB, free: 14.86 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01076/0.5406, allocations: 3.865 MB / 0.6194 GB, free: 10.97 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.708e-06/0.5407, allocations: 12 kB / 0.6194 GB, free: 10.96 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.183e-05/0.5407, allocations: 6.719 kB / 0.6194 GB, free: 10.95 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.62e-05/0.5407, allocations: 12.59 kB / 0.6194 GB, free: 10.94 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.01244/0.5532, allocations: 5.452 MB / 0.6247 GB, free: 5.379 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.768e-06/0.5532, allocations: 0 / 0.6247 GB, free: 5.379 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005749/0.5538, allocations: 95.89 kB / 0.6248 GB, free: 5.285 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004712/0.5585, allocations: 1.608 MB / 0.6264 GB, free: 3.672 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001546/0.5587, allocations: 19.98 kB / 0.6264 GB, free: 3.652 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01892/0.5776, allocations: 9.602 MB / 0.6358 GB, free: 9.754 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.322e-06/0.5777, allocations: 8.75 kB / 0.6358 GB, free: 9.746 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01382/0.5915, allocations: 4.731 MB / 0.6404 GB, free: 4.977 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006631/0.5922, allocations: 227.2 kB / 0.6406 GB, free: 4.734 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004025/0.5926, allocations: 16 kB / 0.6406 GB, free: 4.719 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001307/0.594, allocations: 107.9 kB / 0.6407 GB, free: 4.613 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006487/0.5946, allocations: 196.7 kB / 0.6409 GB, free: 4.422 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001138/0.5947, allocations: 28.86 kB / 0.6409 GB, free: 4.395 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001232/0.596, allocations: 0.7313 MB / 0.6417 GB, free: 3.656 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.6e-07/0.596, allocations: 0 / 0.6417 GB, free: 3.656 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001798/0.5978, allocations: 471.6 kB / 0.6421 GB, free: 3.195 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.0003443/0.5982, allocations: 142.1 kB / 0.6422 GB, free: 3.051 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006355/0.6045, allocations: 2.503 MB / 0.6447 GB, free: 0.5156 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.6046, allocations: 0 / 0.6447 GB, free: 0.5156 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004301/0.6089, allocations: 1.61 MB / 0.6463 GB, free: 14.87 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001342/0.6102, allocations: 126.5 kB / 0.6464 GB, free: 14.75 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004699/0.6149, allocations: 2.241 MB / 0.6486 GB, free: 12.52 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008289/0.6158, allocations: 1.124 MB / 0.6497 GB, free: 11.36 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0005362/0.6163, allocations: 118.4 kB / 0.6498 GB, free: 11.24 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003227/0.6167, allocations: 79.42 kB / 0.6499 GB, free: 11.17 MB / 462.1 MB Notification: Performance of SimCode: time 1.102e-06/0.6167, allocations: 1.406 kB / 0.6499 GB, free: 11.17 MB / 462.1 MB Notification: Performance of Templates: time 0.04221/0.6589, allocations: 23.46 MB / 0.6728 GB, free: 3.941 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 -s gbode -lv LOG_STATS > OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe 2>&1)