Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.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_Discrete,tolerance=0.001,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete") translateModel(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete,tolerance=0.001,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001322/0.001322, allocations: 104.2 kB / 16.35 MB, free: 5.824 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.505/1.505, allocations: 222.9 MB / 240 MB, free: 4.504 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.001563/0.001563, allocations: 204.2 kB / 290.3 MB, free: 2.234 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4864/0.4864, allocations: 78.53 MB / 419 MB, free: 3.176 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001749/0.001749, allocations: 79.86 kB / 498.9 MB, free: 5.617 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1397/0.1415, allocations: 68.17 MB / 0.5538 GB, free: 1.402 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete): time 0.2416/0.3831, allocations: 6.199 MB / 0.5598 GB, free: 35.91 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003465/0.3866, allocations: 1.851 MB / 0.5616 GB, free: 35.38 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005874/0.3872, allocations: 9.906 kB / 0.5616 GB, free: 35.38 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004827/0.3878, allocations: 215.1 kB / 0.5618 GB, free: 35.37 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001701/0.3895, allocations: 0.7525 MB / 0.5626 GB, free: 35.22 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.001196/0.3907, allocations: 0.5891 MB / 0.5632 GB, free: 35.14 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001381/0.3921, allocations: 1.377 MB / 0.5645 GB, free: 34.94 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004019/0.3925, allocations: 284.3 kB / 0.5648 GB, free: 34.89 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005908/0.3931, allocations: 0.5793 MB / 0.5653 GB, free: 34.73 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006741/0.3938, allocations: 0.7569 MB / 0.5661 GB, free: 34.53 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001527/0.3939, allocations: 107 kB / 0.5662 GB, free: 34.53 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004627/0.3944, allocations: 240.4 kB / 0.5664 GB, free: 34.52 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002151/0.3946, allocations: 292.3 kB / 0.5667 GB, free: 34.45 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004097/0.395, allocations: 0.6173 MB / 0.5673 GB, free: 34.22 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001147/0.3962, allocations: 1.492 MB / 0.5687 GB, free: 33.86 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.3962, allocations: 0 / 0.5687 GB, free: 33.86 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.3962, allocations: 0 / 0.5687 GB, free: 33.86 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.357e-05/0.3962, allocations: 0 / 0.5687 GB, free: 33.86 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: 178 * Number of variables: 178 Notification: Performance of Generate backend data structure: time 0.0071/0.4033, allocations: 2.482 MB / 0.5712 GB, free: 32.98 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.493e-05/0.4034, allocations: 8.375 kB / 0.5712 GB, free: 32.98 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004778/0.4082, allocations: 0.7626 MB / 0.5719 GB, free: 32.9 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001181/0.4094, allocations: 0.7979 MB / 0.5727 GB, free: 32.5 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002302/0.4096, allocations: 256.7 kB / 0.5729 GB, free: 32.31 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001394/0.4098, allocations: 78.83 kB / 0.573 GB, free: 32.31 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001973/0.4117, allocations: 1.175 MB / 0.5742 GB, free: 32.18 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.92e-05/0.4118, allocations: 10.97 kB / 0.5742 GB, free: 32.17 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.924e-05/0.4119, allocations: 25.47 kB / 0.5742 GB, free: 32.17 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.658e-05/0.4119, allocations: 19.25 kB / 0.5742 GB, free: 32.17 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001721/0.4136, allocations: 0.9504 MB / 0.5752 GB, free: 32.16 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.004988/0.4186, allocations: 3.526 MB / 0.5786 GB, free: 30.88 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006406/0.425, allocations: 2.309 MB / 0.5809 GB, free: 30.16 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001193/0.4262, allocations: 0.6552 MB / 0.5815 GB, free: 29.9 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000108/0.4264, allocations: 19.47 kB / 0.5815 GB, free: 29.9 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.456e-05/0.4264, allocations: 42.81 kB / 0.5816 GB, free: 29.85 MB / 430.1 MB Notification: Performance of pre-optimization done (n=92): time 2.374e-06/0.4264, allocations: 0 / 0.5816 GB, free: 29.85 MB / 430.1 MB Notification: Performance of matching and sorting (n=92): time 0.02512/0.4515, allocations: 6.755 MB / 0.5881 GB, free: 28.54 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001005/0.4517, allocations: 95.17 kB / 0.5882 GB, free: 28.44 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001607/0.4533, allocations: 0.9634 MB / 0.5892 GB, free: 28.02 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002182/0.4535, allocations: 46.05 kB / 0.5892 GB, free: 27.98 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003206/0.4538, allocations: 455.6 kB / 0.5897 GB, free: 27.62 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003619/0.4542, allocations: 310.4 kB / 0.59 GB, free: 27.38 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004893/0.4547, allocations: 256.9 kB / 0.5902 GB, free: 27.26 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 6.064e-05/0.4548, allocations: 305.8 kB / 0.5905 GB, free: 26.96 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001462/0.4562, allocations: 0.698 MB / 0.5912 GB, free: 26.7 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001535/0.4578, allocations: 0.9171 MB / 0.5921 GB, free: 26.22 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02129/0.4791, allocations: 5.063 MB / 0.597 GB, free: 24.75 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.511e-05/0.4791, allocations: 2.531 kB / 0.597 GB, free: 24.75 MB / 430.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.0131/0.4922, allocations: 4.144 MB / 0.6011 GB, free: 23.69 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.035e-05/0.4923, allocations: 11.97 kB / 0.6011 GB, free: 23.69 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.496e-05/0.4924, allocations: 6.781 kB / 0.6011 GB, free: 23.69 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005583/0.4979, allocations: 1.516 MB / 0.6026 GB, free: 23.41 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001412/0.4994, allocations: 259.8 kB / 0.6028 GB, free: 23.38 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01838/0.5178, allocations: 8.264 MB / 0.6109 GB, free: 18.65 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00189/0.5197, allocations: 172.1 kB / 0.611 GB, free: 18.55 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001249/0.5199, allocations: 54.47 kB / 0.6111 GB, free: 18.53 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: 23 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 4 (aVRTypeII.vf,aVRTypeII.vr2,aVRTypeII.vr1,aVRTypeII.vm) * Top-level inputs: 0 Notification: Strong component statistics for initialization (151): * Single equations (assignments): 150 * Array equations: 0 * Algorithm blocks: 0 * 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.0006451/0.5205, allocations: 269.2 kB / 0.6113 GB, free: 18.31 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009459/0.5215, allocations: 329.5 kB / 0.6117 GB, free: 18.13 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01031/0.5318, allocations: 3.59 MB / 0.6152 GB, free: 15.24 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.769e-05/0.5318, allocations: 12 kB / 0.6152 GB, free: 15.23 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.597e-05/0.5319, allocations: 8 kB / 0.6152 GB, free: 15.22 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.166e-05/0.5319, allocations: 8.812 kB / 0.6152 GB, free: 15.21 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.01239/0.5443, allocations: 5.128 MB / 0.6202 GB, free: 9.98 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.676e-06/0.5443, allocations: 4.688 kB / 0.6202 GB, free: 9.977 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005542/0.5449, allocations: 107.9 kB / 0.6203 GB, free: 9.871 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0047/0.5496, allocations: 1.576 MB / 0.6219 GB, free: 8.289 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001084/0.5497, allocations: 20.5 kB / 0.6219 GB, free: 8.27 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01782/0.5676, allocations: 10.76 MB / 0.6324 GB, free: 13.16 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.001e-05/0.5676, allocations: 5.453 kB / 0.6324 GB, free: 13.16 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01438/0.582, allocations: 4.613 MB / 0.6369 GB, free: 8.516 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004881/0.5825, allocations: 215.5 kB / 0.6371 GB, free: 8.285 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001719/0.5827, allocations: 16 kB / 0.6371 GB, free: 8.27 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009893/0.5837, allocations: 83.91 kB / 0.6372 GB, free: 8.188 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006001/0.5843, allocations: 176.7 kB / 0.6374 GB, free: 8.016 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.275e-05/0.5844, allocations: 28.86 kB / 0.6374 GB, free: 7.988 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0008654/0.5853, allocations: 0.6434 MB / 0.638 GB, free: 7.336 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5853, allocations: 4 kB / 0.638 GB, free: 7.332 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001386/0.5867, allocations: 435.6 kB / 0.6384 GB, free: 6.906 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 6 (order2.delta,order2.w,order4.delta,order4.w,order4.e1q,order4.e1d) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 4 (aVRTypeII.vm,aVRTypeII.vr1,aVRTypeII.vr2,aVRTypeII.vf) * Top-level inputs: 0 Notification: Strong component statistics for simulation (61): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 0 * 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 {(20,12,23.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002852/0.587, allocations: 131.1 kB / 0.6386 GB, free: 6.766 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005858/0.5929, allocations: 2.288 MB / 0.6408 GB, free: 4.469 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.5929, allocations: 4.062 kB / 0.6408 GB, free: 4.465 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003883/0.5968, allocations: 1.323 MB / 0.6421 GB, free: 3.125 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001529/0.5983, allocations: 344.1 kB / 0.6424 GB, free: 2.773 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004032/0.6024, allocations: 2.056 MB / 0.6444 GB, free: 0.7227 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006429/0.603, allocations: 1.077 MB / 0.6455 GB, free: 15.62 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0003504/0.6034, allocations: 105.9 kB / 0.6456 GB, free: 15.51 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002379/0.6036, allocations: 75.42 kB / 0.6457 GB, free: 15.44 MB / 462.1 MB Notification: Performance of SimCode: time 7.62e-07/0.6036, allocations: 1.5 kB / 0.6457 GB, free: 15.44 MB / 462.1 MB Notification: Performance of Templates: time 0.04103/0.6447, allocations: 21.43 MB / 0.6666 GB, free: 10.21 MB / 478.1 MB make -j1 -f OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.makefile (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.sim & ./OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe 2>&1)