Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_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.FifthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII") translateModel(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005411/0.005412, allocations: 98.75 kB / 15.73 MB, free: 6.059 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.341/1.341, allocations: 222.9 MB / 239.4 MB, free: 4.52 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.00136/0.00136, allocations: 192.5 kB / 289.7 MB, free: 2.242 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.5138/0.5138, allocations: 78.53 MB / 418.4 MB, free: 3.133 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001587/0.001587, allocations: 83.88 kB / 0.5536 GB, free: 0.9141 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3464/0.348, allocations: 68.16 MB / 0.6202 GB, free: 9.719 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII): time 0.00563/0.3537, allocations: 6.657 MB / 0.6267 GB, free: 3.535 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003648/0.3574, allocations: 1.99 MB / 0.6286 GB, free: 1.539 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006514/0.3581, allocations: 12 kB / 0.6287 GB, free: 1.527 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007468/0.3588, allocations: 238 kB / 0.6289 GB, free: 1.293 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001896/0.3608, allocations: 0.8124 MB / 0.6297 GB, free: 492 kB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00129/0.3621, allocations: 0.64 MB / 0.6303 GB, free: 15.85 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001766/0.3638, allocations: 1.636 MB / 0.6319 GB, free: 14.21 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004968/0.3644, allocations: 326.5 kB / 0.6322 GB, free: 13.88 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007685/0.3651, allocations: 0.6808 MB / 0.6329 GB, free: 13.19 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009588/0.3661, allocations: 0.8479 MB / 0.6337 GB, free: 12.34 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001819/0.3663, allocations: 128 kB / 0.6338 GB, free: 12.21 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004824/0.3668, allocations: 271.8 kB / 0.6341 GB, free: 11.95 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000309/0.3671, allocations: 342.6 kB / 0.6344 GB, free: 11.61 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005813/0.3677, allocations: 0.6913 MB / 0.6351 GB, free: 10.92 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001788/0.3695, allocations: 1.717 MB / 0.6368 GB, free: 9.199 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.3695, allocations: 4 kB / 0.6368 GB, free: 9.195 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.3695, allocations: 0 / 0.6368 GB, free: 9.195 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.457e-05/0.3695, allocations: 0 / 0.6368 GB, free: 9.195 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: 191 * Number of variables: 191 Notification: Performance of Generate backend data structure: time 0.008998/0.3785, allocations: 2.796 MB / 0.6395 GB, free: 6.328 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.453e-05/0.3786, allocations: 8.031 kB / 0.6395 GB, free: 6.32 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004943/0.3835, allocations: 0.7835 MB / 0.6403 GB, free: 5.535 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001462/0.385, allocations: 0.9304 MB / 0.6412 GB, free: 4.551 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000283/0.3853, allocations: 260.2 kB / 0.6414 GB, free: 4.258 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001604/0.3855, allocations: 87.95 kB / 0.6415 GB, free: 4.172 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002145/0.3876, allocations: 1.102 MB / 0.6426 GB, free: 3.059 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.04e-05/0.3877, allocations: 3.938 kB / 0.6426 GB, free: 3.055 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.062e-05/0.3878, allocations: 32 kB / 0.6426 GB, free: 3.023 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.674e-05/0.3878, allocations: 20 kB / 0.6426 GB, free: 3.004 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002001/0.3898, allocations: 0.9955 MB / 0.6436 GB, free: 2.008 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.006564/0.3964, allocations: 3.86 MB / 0.6474 GB, free: 13.97 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007402/0.4038, allocations: 2.405 MB / 0.6497 GB, free: 11.47 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001386/0.4052, allocations: 0.684 MB / 0.6504 GB, free: 10.79 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001122/0.4053, allocations: 16.98 kB / 0.6504 GB, free: 10.77 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001621/0.407, allocations: 0.8273 MB / 0.6512 GB, free: 9.922 MB / 462.1 MB Notification: Performance of pre-optimization done (n=97): time 3.537e-06/0.407, allocations: 7.938 kB / 0.6512 GB, free: 9.914 MB / 462.1 MB Notification: Performance of matching and sorting (n=97): time 0.02967/0.4367, allocations: 7.222 MB / 0.6583 GB, free: 2.629 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.719e-05/0.4368, allocations: 111.8 kB / 0.6584 GB, free: 2.496 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002023/0.4388, allocations: 1.123 MB / 0.6595 GB, free: 1.359 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002452/0.4391, allocations: 49.7 kB / 0.6595 GB, free: 1.305 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000431/0.4395, allocations: 0.5014 MB / 0.66 GB, free: 0.7969 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005193/0.44, allocations: 384.8 kB / 0.6604 GB, free: 428 kB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000719/0.4408, allocations: 291.5 kB / 0.6607 GB, free: 132 kB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001215/0.4409, allocations: 305.1 kB / 0.661 GB, free: 15.83 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001743/0.4426, allocations: 0.7847 MB / 0.6617 GB, free: 15.04 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001799/0.4445, allocations: 0.9538 MB / 0.6627 GB, free: 14.05 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02494/0.4694, allocations: 5.794 MB / 0.6683 GB, free: 8.168 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.125e-05/0.4695, allocations: 0 / 0.6683 GB, free: 8.168 MB / 478.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.01472/0.4842, allocations: 4.454 MB / 0.6727 GB, free: 3.684 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.371e-05/0.4843, allocations: 63.34 kB / 0.6727 GB, free: 3.609 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.165e-05/0.4843, allocations: 8 kB / 0.6727 GB, free: 3.602 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006172/0.4905, allocations: 1.635 MB / 0.6743 GB, free: 1.965 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00156/0.4921, allocations: 283.6 kB / 0.6746 GB, free: 1.688 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02113/0.5133, allocations: 8.617 MB / 0.683 GB, free: 8.922 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002176/0.5155, allocations: 203.2 kB / 0.6832 GB, free: 8.723 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003333/0.5158, allocations: 67.91 kB / 0.6833 GB, free: 8.656 MB / 494.1 MB Warning: Assuming fixed start value for the following 5 variables: order5.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order2.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 order5.delta:VARIABLE(flow=false start = order5.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order5.e1q:VARIABLE(start = order5.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 (167): * Single equations (assignments): 164 * 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 {(20,14,23.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0009477/0.5168, allocations: 304.3 kB / 0.6836 GB, free: 8.34 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004213/0.5172, allocations: 131.2 kB / 0.6837 GB, free: 8.211 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01296/0.5302, allocations: 3.896 MB / 0.6875 GB, free: 4.277 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-05/0.5303, allocations: 12 kB / 0.6875 GB, free: 4.266 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.299e-05/0.5303, allocations: 11.94 kB / 0.6875 GB, free: 4.254 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.379e-05/0.5303, allocations: 7.984 kB / 0.6875 GB, free: 4.246 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.01548/0.5458, allocations: 5.518 MB / 0.6929 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.439e-05/0.5459, allocations: 4 kB / 0.6929 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006972/0.5466, allocations: 103.8 kB / 0.693 GB, free: 14.52 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005661/0.5523, allocations: 1.587 MB / 0.6946 GB, free: 12.92 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001963/0.5525, allocations: 19.98 kB / 0.6946 GB, free: 12.9 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02141/0.5739, allocations: 9.651 MB / 0.704 GB, free: 2.961 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.699e-06/0.5739, allocations: 0 / 0.704 GB, free: 2.961 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01546/0.5894, allocations: 4.79 MB / 0.7087 GB, free: 14.14 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00061/0.5901, allocations: 235.9 kB / 0.7089 GB, free: 13.89 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004816/0.5906, allocations: 27.94 kB / 0.7089 GB, free: 13.86 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001566/0.5922, allocations: 111.9 kB / 0.709 GB, free: 13.75 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007921/0.593, allocations: 200.7 kB / 0.7092 GB, free: 13.55 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001935/0.5932, allocations: 28 kB / 0.7093 GB, free: 13.53 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001834/0.595, allocations: 0.7553 MB / 0.71 GB, free: 12.77 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.5e-07/0.595, allocations: 0 / 0.71 GB, free: 12.77 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.002552/0.5976, allocations: 487.7 kB / 0.7105 GB, free: 12.29 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 11 (order2.delta,order2.w,order5.delta,order5.w,order5.e1q,order5.e2q,order5.e2d,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 (65): * Single equations (assignments): 62 * 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 {(18,14,25.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004793/0.5981, allocations: 130 kB / 0.7106 GB, free: 12.15 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.008009/0.6061, allocations: 2.604 MB / 0.7131 GB, free: 9.504 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.23e-05/0.6062, allocations: 0.75 kB / 0.7131 GB, free: 9.504 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.005012/0.6112, allocations: 1.598 MB / 0.7147 GB, free: 7.863 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001601/0.6129, allocations: 116.5 kB / 0.7148 GB, free: 7.75 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00519/0.6181, allocations: 2.397 MB / 0.7171 GB, free: 5.328 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009187/0.619, allocations: 1.136 MB / 0.7183 GB, free: 4.16 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0005678/0.6196, allocations: 116.1 kB / 0.7184 GB, free: 4.043 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003687/0.62, allocations: 79.41 kB / 0.7184 GB, free: 3.965 MB / 0.5137 GB Notification: Performance of SimCode: time 1.362e-06/0.62, allocations: 4 kB / 0.7184 GB, free: 3.961 MB / 0.5137 GB Notification: Performance of Templates: time 0.04117/0.6612, allocations: 24.42 MB / 0.7423 GB, free: 11.55 MB / 0.545 GB make -j1 -f OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.makefile (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.sim & ./OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.pipe 2>&1)