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.006669/0.006669, allocations: 100.3 kB / 15.73 MB, free: 6.008 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.374/1.374, allocations: 222.9 MB / 239.4 MB, free: 4.508 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.001443/0.001443, allocations: 196.4 kB / 289.7 MB, free: 2.23 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.476/0.476, allocations: 78.53 MB / 418.4 MB, free: 3.086 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001609/0.001609, allocations: 83.81 kB / 0.5536 GB, free: 0.9219 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3836/0.3852, allocations: 68.16 MB / 0.6202 GB, free: 9.715 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII): time 0.006109/0.3914, allocations: 6.557 MB / 0.6266 GB, free: 3.641 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003876/0.3953, allocations: 1.966 MB / 0.6285 GB, free: 1.668 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00112/0.3965, allocations: 8 kB / 0.6285 GB, free: 1.66 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009167/0.3974, allocations: 237.9 kB / 0.6288 GB, free: 1.426 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002392/0.3998, allocations: 0.8048 MB / 0.6295 GB, free: 0.6211 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.001391/0.4012, allocations: 0.6293 MB / 0.6302 GB, free: 15.99 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002168/0.4034, allocations: 1.581 MB / 0.6317 GB, free: 14.41 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005733/0.404, allocations: 334.4 kB / 0.632 GB, free: 14.07 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001034/0.405, allocations: 0.6535 MB / 0.6327 GB, free: 13.41 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008547/0.4059, allocations: 0.8206 MB / 0.6335 GB, free: 12.59 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001691/0.4061, allocations: 124 kB / 0.6336 GB, free: 12.47 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005152/0.4066, allocations: 251.9 kB / 0.6338 GB, free: 12.22 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002999/0.4069, allocations: 330.6 kB / 0.6341 GB, free: 11.9 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005698/0.4075, allocations: 0.6719 MB / 0.6348 GB, free: 11.22 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001802/0.4093, allocations: 1.67 MB / 0.6364 GB, free: 9.551 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.359e-06/0.4093, allocations: 0 / 0.6364 GB, free: 9.551 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.4093, allocations: 4 kB / 0.6364 GB, free: 9.547 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.704e-05/0.4094, allocations: 4 kB / 0.6364 GB, free: 9.543 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.008633/0.418, allocations: 2.726 MB / 0.6391 GB, free: 6.75 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.884e-05/0.4181, allocations: 12.03 kB / 0.6391 GB, free: 6.738 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005013/0.4231, allocations: 0.7757 MB / 0.6399 GB, free: 5.961 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001535/0.4246, allocations: 0.8912 MB / 0.6407 GB, free: 5.016 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003119/0.425, allocations: 264.2 kB / 0.641 GB, free: 4.719 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001566/0.4251, allocations: 83.95 kB / 0.6411 GB, free: 4.637 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002207/0.4274, allocations: 1.09 MB / 0.6421 GB, free: 3.535 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.025e-05/0.4274, allocations: 0 / 0.6421 GB, free: 3.535 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.756e-05/0.4275, allocations: 32 kB / 0.6422 GB, free: 3.504 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.737e-05/0.4275, allocations: 16 kB / 0.6422 GB, free: 3.488 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002055/0.4296, allocations: 0.9877 MB / 0.6431 GB, free: 2.5 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.006582/0.4362, allocations: 3.805 MB / 0.6468 GB, free: 14.52 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007285/0.4435, allocations: 2.381 MB / 0.6492 GB, free: 12.05 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001475/0.445, allocations: 0.6828 MB / 0.6498 GB, free: 11.36 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001128/0.4451, allocations: 20.98 kB / 0.6499 GB, free: 11.34 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001618/0.4467, allocations: 0.827 MB / 0.6507 GB, free: 10.5 MB / 462.1 MB Notification: Performance of pre-optimization done (n=96): time 2.846e-06/0.4468, allocations: 0 / 0.6507 GB, free: 10.5 MB / 462.1 MB Notification: Performance of matching and sorting (n=96): time 0.02815/0.4749, allocations: 7.093 MB / 0.6576 GB, free: 3.34 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.551e-05/0.475, allocations: 115.8 kB / 0.6577 GB, free: 3.203 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001975/0.477, allocations: 1.087 MB / 0.6588 GB, free: 2.102 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002298/0.4773, allocations: 49.73 kB / 0.6588 GB, free: 2.047 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004468/0.4777, allocations: 0.4897 MB / 0.6593 GB, free: 1.551 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00052/0.4783, allocations: 364.9 kB / 0.6596 GB, free: 1.191 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007059/0.479, allocations: 295.5 kB / 0.6599 GB, free: 0.8984 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.239e-05/0.4791, allocations: 305.1 kB / 0.6602 GB, free: 0.5977 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001658/0.4807, allocations: 0.7574 MB / 0.661 GB, free: 15.84 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001761/0.4825, allocations: 0.9382 MB / 0.6619 GB, free: 14.86 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0238/0.5063, allocations: 5.575 MB / 0.6673 GB, free: 9.199 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.235e-05/0.5064, allocations: 0 / 0.6673 GB, free: 9.199 MB / 478.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01426/0.5206, allocations: 4.344 MB / 0.6716 GB, free: 4.828 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.906e-05/0.5208, allocations: 59.41 kB / 0.6716 GB, free: 4.758 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.083e-05/0.5208, allocations: 7.984 kB / 0.6716 GB, free: 4.75 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005673/0.5265, allocations: 1.52 MB / 0.6731 GB, free: 3.227 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001605/0.5281, allocations: 295.6 kB / 0.6734 GB, free: 2.938 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01992/0.548, allocations: 8.273 MB / 0.6815 GB, free: 10.51 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001977/0.5501, allocations: 199 kB / 0.6817 GB, free: 10.31 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001312/0.5502, allocations: 55.97 kB / 0.6817 GB, free: 10.26 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.0006304/0.5508, allocations: 307.3 kB / 0.682 GB, free: 9.945 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002159/0.5511, allocations: 135.1 kB / 0.6821 GB, free: 9.812 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01259/0.5637, allocations: 3.873 MB / 0.6859 GB, free: 5.902 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.711e-05/0.5637, allocations: 12 kB / 0.6859 GB, free: 5.891 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.139e-05/0.5637, allocations: 4 kB / 0.6859 GB, free: 5.887 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.342e-05/0.5638, allocations: 7.984 kB / 0.6859 GB, free: 5.879 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.01541/0.5792, allocations: 5.468 MB / 0.6913 GB, free: 312 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.229e-05/0.5792, allocations: 0 / 0.6913 GB, free: 312 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000667/0.5799, allocations: 95.89 kB / 0.6914 GB, free: 216 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005819/0.5858, allocations: 1.61 MB / 0.6929 GB, free: 14.59 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000199/0.586, allocations: 20 kB / 0.693 GB, free: 14.57 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02124/0.6072, allocations: 9.612 MB / 0.7023 GB, free: 4.676 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.222e-06/0.6073, allocations: 7.938 kB / 0.7024 GB, free: 4.668 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01517/0.6224, allocations: 4.739 MB / 0.707 GB, free: 15.89 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005127/0.623, allocations: 239.9 kB / 0.7072 GB, free: 15.64 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003807/0.6234, allocations: 16 kB / 0.7072 GB, free: 15.62 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001391/0.6248, allocations: 107.9 kB / 0.7073 GB, free: 15.52 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006852/0.6255, allocations: 196.7 kB / 0.7075 GB, free: 15.33 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001218/0.6257, allocations: 24 kB / 0.7075 GB, free: 15.3 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001292/0.6269, allocations: 0.7274 MB / 0.7082 GB, free: 14.57 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.7e-07/0.627, allocations: 0 / 0.7082 GB, free: 14.57 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001619/0.6286, allocations: 479.6 kB / 0.7087 GB, free: 14.1 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.0003193/0.6289, allocations: 133.7 kB / 0.7088 GB, free: 13.96 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.006377/0.6353, allocations: 2.513 MB / 0.7113 GB, free: 11.4 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/0.6353, allocations: 0 / 0.7113 GB, free: 11.4 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.004468/0.6398, allocations: 1.623 MB / 0.7129 GB, free: 9.746 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001298/0.6411, allocations: 116.5 kB / 0.713 GB, free: 9.633 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004765/0.6459, allocations: 2.292 MB / 0.7152 GB, free: 7.312 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007833/0.6467, allocations: 1.12 MB / 0.7163 GB, free: 6.16 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0005028/0.6472, allocations: 120.1 kB / 0.7164 GB, free: 6.039 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000317/0.6475, allocations: 83.41 kB / 0.7165 GB, free: 5.957 MB / 0.5137 GB Notification: Performance of SimCode: time 1.322e-06/0.6475, allocations: 0 / 0.7165 GB, free: 5.957 MB / 0.5137 GB Notification: Performance of Templates: time 0.0405/0.688, allocations: 23.69 MB / 0.7396 GB, free: 14.27 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)