Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.conf.json 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/Modelica 4.0.0+maint.om/package.mo", uses=false) 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/OpenIPSL 3.1.0-master/package.mo", uses=false) Using package OpenIPSL with version 3.1.0-dev (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/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) 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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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_release_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_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001289/0.001289, allocations: 169.3 kB / 16.1 MB, free: 5.688 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.308/1.308, allocations: 223.3 MB / 240.1 MB, free: 11.69 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000873/0.0008729, allocations: 104.8 kB / 291.3 MB, free: 10.76 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4448/0.4448, allocations: 78.62 MB / 421 MB, free: 9.051 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000373/0.0003731, allocations: 8 kB / 0.4894 GB, free: 9.262 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.304/0.3044, allocations: 69.34 MB / 0.5571 GB, free: 18.81 MB / 378.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete): time 0.004658/0.3091, allocations: 6.049 MB / 0.563 GB, free: 12.73 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.003434/0.3126, allocations: 1.896 MB / 0.5649 GB, free: 10.84 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001102/0.3137, allocations: 12 kB / 0.5649 GB, free: 10.82 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007512/0.3145, allocations: 162.9 kB / 0.5651 GB, free: 10.66 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002331/0.3168, allocations: 0.6589 MB / 0.5657 GB, free: 10 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/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.001279/0.3181, allocations: 0.548 MB / 0.5662 GB, free: 9.461 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.001535/0.3197, allocations: 1.312 MB / 0.5675 GB, free: 8.141 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004744/0.3202, allocations: 248.6 kB / 0.5678 GB, free: 7.891 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007971/0.321, allocations: 0.5248 MB / 0.5683 GB, free: 7.363 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008683/0.3218, allocations: 0.6881 MB / 0.5689 GB, free: 6.672 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003108/0.3222, allocations: 56 kB / 0.569 GB, free: 6.617 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006088/0.3228, allocations: 183.9 kB / 0.5692 GB, free: 6.438 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002874/0.3231, allocations: 238.7 kB / 0.5694 GB, free: 6.203 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006553/0.3237, allocations: 0.5801 MB / 0.57 GB, free: 5.613 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009799/0.3247, allocations: 1.089 MB / 0.571 GB, free: 4.523 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.3247, allocations: 0 / 0.571 GB, free: 4.523 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.914e-06/0.3248, allocations: 0 / 0.571 GB, free: 4.523 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.274e-05/0.3248, allocations: 0 / 0.571 GB, free: 4.523 MB / 378.7 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.006998/0.3318, allocations: 2.31 MB / 0.5733 GB, free: 2.16 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.604e-05/0.3319, allocations: 8.031 kB / 0.5733 GB, free: 2.152 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004622/0.3365, allocations: 0.7711 MB / 0.574 GB, free: 1.379 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001098/0.3376, allocations: 0.7891 MB / 0.5748 GB, free: 0.5312 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002237/0.3379, allocations: 272.1 kB / 0.5751 GB, free: 236 kB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001277/0.338, allocations: 76 kB / 0.5751 GB, free: 160 kB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002374/0.3404, allocations: 1.248 MB / 0.5764 GB, free: 14.89 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.06e-05/0.3404, allocations: 3.938 kB / 0.5764 GB, free: 14.88 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.075e-05/0.3405, allocations: 28 kB / 0.5764 GB, free: 14.86 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.756e-05/0.3405, allocations: 20 kB / 0.5764 GB, free: 14.84 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00197/0.3425, allocations: 1.02 MB / 0.5774 GB, free: 13.82 MB / 394.7 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.005679/0.3482, allocations: 3.624 MB / 0.5809 GB, free: 10 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007467/0.3557, allocations: 2.861 MB / 0.5837 GB, free: 7.047 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001354/0.357, allocations: 0.7259 MB / 0.5845 GB, free: 6.316 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001126/0.3572, allocations: 24.5 kB / 0.5845 GB, free: 6.293 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.192e-05/0.3572, allocations: 43.22 kB / 0.5845 GB, free: 6.242 MB / 394.7 MB Notification: Performance of pre-optimization done (n=92): time 3.166e-06/0.3572, allocations: 0 / 0.5845 GB, free: 6.242 MB / 394.7 MB Notification: Performance of matching and sorting (n=92): time 0.02705/0.3843, allocations: 8.253 MB / 0.5926 GB, free: 13.93 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001277/0.3844, allocations: 101.6 kB / 0.5927 GB, free: 13.81 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001381/0.3858, allocations: 0.9657 MB / 0.5936 GB, free: 12.83 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001892/0.386, allocations: 41.7 kB / 0.5937 GB, free: 12.78 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003512/0.3864, allocations: 460.7 kB / 0.5941 GB, free: 12.32 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003442/0.3867, allocations: 315.7 kB / 0.5944 GB, free: 12.01 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001705/0.3869, allocations: 129.6 kB / 0.5945 GB, free: 11.88 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001141/0.387, allocations: 313.1 kB / 0.5948 GB, free: 11.57 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00149/0.3885, allocations: 0.7574 MB / 0.5956 GB, free: 10.81 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001634/0.3902, allocations: 0.9771 MB / 0.5965 GB, free: 9.766 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02103/0.4112, allocations: 5.492 MB / 0.6019 GB, free: 4.199 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-05/0.4113, allocations: 0 / 0.6019 GB, free: 4.199 MB / 410.7 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.01347/0.4248, allocations: 4.98 MB / 0.6067 GB, free: 15.2 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.263e-05/0.4248, allocations: 4 kB / 0.6067 GB, free: 15.2 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.802e-05/0.4249, allocations: 8 kB / 0.6068 GB, free: 15.19 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005648/0.4305, allocations: 1.793 MB / 0.6085 GB, free: 13.39 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001237/0.4318, allocations: 263.5 kB / 0.6088 GB, free: 13.14 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01892/0.4507, allocations: 8.613 MB / 0.6172 GB, free: 4.383 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001605/0.4524, allocations: 202.9 kB / 0.6174 GB, free: 4.184 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001125/0.4525, allocations: 59.97 kB / 0.6174 GB, free: 4.125 MB / 426.7 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.0005803/0.4531, allocations: 250.7 kB / 0.6177 GB, free: 3.871 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009708/0.4541, allocations: 361.3 kB / 0.618 GB, free: 3.508 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01231/0.4664, allocations: 4.424 MB / 0.6223 GB, free: 15.06 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.25e-05/0.4665, allocations: 19.88 kB / 0.6223 GB, free: 15.04 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.394e-05/0.4665, allocations: 8 kB / 0.6223 GB, free: 15.04 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.436e-05/0.4665, allocations: 3.984 kB / 0.6224 GB, free: 15.03 MB / 442.7 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.01501/0.4815, allocations: 5.977 MB / 0.6282 GB, free: 8.949 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.245e-05/0.4816, allocations: 0 / 0.6282 GB, free: 8.949 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006234/0.4822, allocations: 115.8 kB / 0.6283 GB, free: 8.836 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00573/0.4879, allocations: 1.86 MB / 0.6301 GB, free: 6.969 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001465/0.4881, allocations: 27.92 kB / 0.6301 GB, free: 6.941 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01926/0.5074, allocations: 10.81 MB / 0.6407 GB, free: 11.79 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.11e-06/0.5074, allocations: 0 / 0.6407 GB, free: 11.79 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01518/0.5226, allocations: 5.534 MB / 0.6461 GB, free: 6.223 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004616/0.5231, allocations: 211.5 kB / 0.6463 GB, free: 5.996 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001578/0.5233, allocations: 23.98 kB / 0.6463 GB, free: 5.973 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009993/0.5243, allocations: 124.1 kB / 0.6464 GB, free: 5.852 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005384/0.5248, allocations: 164.7 kB / 0.6466 GB, free: 5.691 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.249e-05/0.5249, allocations: 39.92 kB / 0.6466 GB, free: 5.652 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0008308/0.5257, allocations: 0.6356 MB / 0.6473 GB, free: 5.008 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5257, allocations: 0 / 0.6473 GB, free: 5.008 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001276/0.527, allocations: 439.6 kB / 0.6477 GB, free: 4.578 MB / 458.7 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.0002477/0.5273, allocations: 143.1 kB / 0.6478 GB, free: 4.43 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.006045/0.5333, allocations: 2.562 MB / 0.6503 GB, free: 1.844 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.5334, allocations: 0 / 0.6503 GB, free: 1.844 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003984/0.5373, allocations: 1.546 MB / 0.6518 GB, free: 292 kB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001471/0.5388, allocations: 367 kB / 0.6522 GB, free: 15.91 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003908/0.5428, allocations: 2.564 MB / 0.6547 GB, free: 13.32 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006376/0.5434, allocations: 1.077 MB / 0.6557 GB, free: 12.21 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002726/0.5437, allocations: 79.41 kB / 0.6558 GB, free: 12.13 MB / 474.7 MB Notification: Performance of SimCode: time 9.82e-07/0.5437, allocations: 0 / 0.6558 GB, free: 12.13 MB / 474.7 MB Notification: Performance of Templates: time 0.02721/0.5709, allocations: 21.21 MB / 0.6765 GB, free: 6.875 MB / 490.7 MB make -j1 -f OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.makefile (rm -f OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; mkfifo OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; head -c 1048576 < OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe >> ../files/OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.sim & ./OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe 2>&1)