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/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.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 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.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/Complex 4.0.0+maint.om/package.mo): time 0.001203/0.001203, allocations: 182.1 kB / 15.98 MB, free: 5.77 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.207/1.207, allocations: 222.9 MB / 239.7 MB, free: 10.98 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.0009673/0.0009673, allocations: 99 kB / 289.9 MB, free: 10.95 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.408/0.408, allocations: 78.51 MB / 418.5 MB, free: 8.508 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001215/0.001215, allocations: 67.89 kB / 497.5 MB, free: 10.29 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2603/0.2616, allocations: 68.16 MB / 0.5524 GB, free: 19.9 MB / 378.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII): time 0.004884/0.2665, allocations: 6.867 MB / 0.5591 GB, free: 13 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002967/0.2695, allocations: 2.005 MB / 0.5611 GB, free: 11 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004483/0.2699, allocations: 16 kB / 0.5611 GB, free: 10.98 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000505/0.2705, allocations: 186.8 kB / 0.5613 GB, free: 10.8 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001282/0.2718, allocations: 0.7137 MB / 0.562 GB, free: 10.08 MB / 378.7 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.0009524/0.2727, allocations: 0.5908 MB / 0.5625 GB, free: 9.5 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009389/0.2737, allocations: 1.51 MB / 0.564 GB, free: 7.984 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003235/0.274, allocations: 289.3 kB / 0.5643 GB, free: 7.691 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004908/0.2745, allocations: 0.5988 MB / 0.5649 GB, free: 7.09 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005344/0.2751, allocations: 0.7815 MB / 0.5656 GB, free: 6.305 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001192/0.2752, allocations: 72 kB / 0.5657 GB, free: 6.234 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000339/0.2755, allocations: 199.9 kB / 0.5659 GB, free: 6.039 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001774/0.2757, allocations: 278.7 kB / 0.5662 GB, free: 5.766 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003383/0.2761, allocations: 0.621 MB / 0.5668 GB, free: 5.141 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008868/0.277, allocations: 1.594 MB / 0.5683 GB, free: 3.543 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.277, allocations: 0 / 0.5683 GB, free: 3.543 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.042e-06/0.277, allocations: 0 / 0.5683 GB, free: 3.543 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.034e-05/0.277, allocations: 0 / 0.5683 GB, free: 3.543 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: 190 * Number of variables: 190 Notification: Performance of Generate backend data structure: time 0.007391/0.2844, allocations: 2.692 MB / 0.571 GB, free: 0.7852 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.409e-05/0.2844, allocations: 12.03 kB / 0.571 GB, free: 0.7734 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004337/0.2888, allocations: 0.7749 MB / 0.5717 GB, free: 15.99 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001345/0.2901, allocations: 0.8786 MB / 0.5726 GB, free: 15.06 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000249/0.2904, allocations: 264.1 kB / 0.5728 GB, free: 14.77 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001411/0.2905, allocations: 79.91 kB / 0.5729 GB, free: 14.69 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00201/0.2926, allocations: 1.098 MB / 0.574 GB, free: 13.58 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.581e-05/0.2926, allocations: 0 / 0.574 GB, free: 13.58 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.336e-05/0.2927, allocations: 28 kB / 0.574 GB, free: 13.55 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.269e-05/0.2927, allocations: 20 kB / 0.574 GB, free: 13.53 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001954/0.2947, allocations: 0.9916 MB / 0.575 GB, free: 12.54 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.006047/0.3007, allocations: 3.82 MB / 0.5787 GB, free: 8.539 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007294/0.308, allocations: 2.371 MB / 0.581 GB, free: 6.074 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001336/0.3094, allocations: 0.6722 MB / 0.5817 GB, free: 5.395 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001016/0.3095, allocations: 24.98 kB / 0.5817 GB, free: 5.371 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001498/0.311, allocations: 0.8215 MB / 0.5825 GB, free: 4.531 MB / 394.7 MB Notification: Performance of pre-optimization done (n=96): time 4.198e-06/0.311, allocations: 0 / 0.5825 GB, free: 4.531 MB / 394.7 MB Notification: Performance of matching and sorting (n=96): time 0.0277/0.3387, allocations: 7.085 MB / 0.5894 GB, free: 13.38 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.099e-05/0.3388, allocations: 115.8 kB / 0.5896 GB, free: 13.24 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001558/0.3404, allocations: 1.087 MB / 0.5906 GB, free: 12.14 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001639/0.3406, allocations: 45.7 kB / 0.5907 GB, free: 12.09 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000364/0.341, allocations: 492.8 kB / 0.5911 GB, free: 11.6 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000328/0.3413, allocations: 358.9 kB / 0.5915 GB, free: 11.25 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004779/0.3418, allocations: 287.5 kB / 0.5917 GB, free: 10.96 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.406e-05/0.3419, allocations: 301.1 kB / 0.592 GB, free: 10.66 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001506/0.3434, allocations: 0.7691 MB / 0.5928 GB, free: 9.895 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001663/0.345, allocations: 0.9381 MB / 0.5937 GB, free: 8.914 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02229/0.3673, allocations: 5.586 MB / 0.5992 GB, free: 3.242 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.783e-06/0.3674, allocations: 0 / 0.5992 GB, free: 3.242 MB / 410.7 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01288/0.3803, allocations: 4.332 MB / 0.6034 GB, free: 14.88 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.279e-05/0.3803, allocations: 59.39 kB / 0.6034 GB, free: 14.81 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.328e-05/0.3804, allocations: 4 kB / 0.6034 GB, free: 14.81 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005284/0.3857, allocations: 1.515 MB / 0.6049 GB, free: 13.29 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001368/0.387, allocations: 299.6 kB / 0.6052 GB, free: 13 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01789/0.4049, allocations: 7.621 MB / 0.6127 GB, free: 5.23 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001896/0.4069, allocations: 194.8 kB / 0.6128 GB, free: 5.039 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002377/0.4071, allocations: 55.97 kB / 0.6129 GB, free: 4.984 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: 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.0006625/0.4078, allocations: 296.3 kB / 0.6132 GB, free: 4.68 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003112/0.4081, allocations: 126.4 kB / 0.6133 GB, free: 4.555 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01266/0.4208, allocations: 3.873 MB / 0.6171 GB, free: 0.6523 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.017e-05/0.4208, allocations: 12 kB / 0.6171 GB, free: 0.6406 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.086e-05/0.4208, allocations: 11.94 kB / 0.6171 GB, free: 0.6289 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.089e-05/0.4209, allocations: 3.984 kB / 0.6171 GB, free: 0.625 MB / 426.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.01428/0.4351, allocations: 5.461 MB / 0.6224 GB, free: 11.05 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.769e-06/0.4352, allocations: 0 / 0.6224 GB, free: 11.05 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005344/0.4357, allocations: 99.89 kB / 0.6225 GB, free: 10.96 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005396/0.4411, allocations: 1.621 MB / 0.6241 GB, free: 9.328 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.445e-05/0.4412, allocations: 31.94 kB / 0.6241 GB, free: 9.297 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01843/0.4597, allocations: 8.741 MB / 0.6327 GB, free: 284 kB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.4597, allocations: 4 kB / 0.6327 GB, free: 280 kB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.09087/0.5506, allocations: 33.03 MB / 0.6649 GB, free: 14.71 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000295/0.5509, allocations: 219.3 kB / 0.6652 GB, free: 14.48 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002161/0.5511, allocations: 19.94 kB / 0.6652 GB, free: 14.46 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001165/0.5523, allocations: 111.9 kB / 0.6653 GB, free: 14.35 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005836/0.5529, allocations: 192.6 kB / 0.6655 GB, free: 14.16 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.552e-05/0.553, allocations: 28 kB / 0.6655 GB, free: 14.13 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001036/0.554, allocations: 0.7352 MB / 0.6662 GB, free: 13.39 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.554, allocations: 0 / 0.6662 GB, free: 13.39 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.001678/0.5557, allocations: 0.6519 MB / 0.6668 GB, free: 12.74 MB / 490.7 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.000245/0.556, allocations: 135.3 kB / 0.667 GB, free: 12.6 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.005971/0.562, allocations: 2.521 MB / 0.6694 GB, free: 10.05 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.562, allocations: 0.75 kB / 0.6694 GB, free: 10.05 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004239/0.5662, allocations: 1.608 MB / 0.671 GB, free: 8.398 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007438/0.567, allocations: 112.6 kB / 0.6711 GB, free: 8.285 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007103/0.5741, allocations: 4.128 MB / 0.6751 GB, free: 4.082 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006509/0.5748, allocations: 1.16 MB / 0.6763 GB, free: 2.895 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.0004491/0.5752, allocations: 124 kB / 0.6764 GB, free: 2.77 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002808/0.5755, allocations: 83.41 kB / 0.6765 GB, free: 2.688 MB / 490.7 MB Notification: Performance of SimCode: time 3.21e-07/0.5755, allocations: 0 / 0.6765 GB, free: 2.688 MB / 490.7 MB Notification: Performance of Templates: time 0.2346/0.8102, allocations: 31.66 MB / 0.7074 GB, free: 99.05 MB / 490.7 MB 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)