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.001293/0.001293, allocations: 108 kB / 15.6 MB, free: 132 kB / 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.2 MB, free: 4.578 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.002188/0.002188, allocations: 187.8 kB / 289.5 MB, free: 2.312 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.501/0.501, allocations: 78.52 MB / 418.2 MB, free: 3.191 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0017/0.0017, allocations: 79.88 kB / 497.4 MB, free: 6.402 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.142/0.1438, allocations: 68.18 MB / 0.5524 GB, free: 2.188 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII): time 0.2593/0.4031, allocations: 6.554 MB / 0.5588 GB, free: 36.01 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003904/0.407, allocations: 1.96 MB / 0.5607 GB, free: 35.47 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007509/0.4078, allocations: 11.09 kB / 0.5607 GB, free: 35.47 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007301/0.4086, allocations: 239.6 kB / 0.5609 GB, free: 35.46 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001782/0.4104, allocations: 0.792 MB / 0.5617 GB, free: 35.31 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.001226/0.4116, allocations: 0.6355 MB / 0.5623 GB, free: 35.23 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.00144/0.4131, allocations: 1.572 MB / 0.5638 GB, free: 35.04 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004173/0.4135, allocations: 325.7 kB / 0.5641 GB, free: 34.99 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007093/0.4142, allocations: 0.6554 MB / 0.5648 GB, free: 34.82 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000736/0.415, allocations: 0.827 MB / 0.5656 GB, free: 34.6 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001863/0.4152, allocations: 119.8 kB / 0.5657 GB, free: 34.6 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004977/0.4157, allocations: 263.6 kB / 0.566 GB, free: 34.59 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002427/0.4159, allocations: 328 kB / 0.5663 GB, free: 34.51 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004569/0.4164, allocations: 0.6739 MB / 0.5669 GB, free: 34.26 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001281/0.4177, allocations: 1.633 MB / 0.5685 GB, free: 33.89 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.4177, allocations: 4.906 kB / 0.5685 GB, free: 33.89 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.4177, allocations: 0 / 0.5685 GB, free: 33.89 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.564e-05/0.4177, allocations: 0 / 0.5685 GB, free: 33.89 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: 190 * Number of variables: 190 Notification: Performance of Generate backend data structure: time 0.008101/0.4258, allocations: 2.687 MB / 0.5712 GB, free: 32.91 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.515e-05/0.4259, allocations: 8.594 kB / 0.5712 GB, free: 32.91 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004798/0.4307, allocations: 0.7758 MB / 0.5719 GB, free: 32.81 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001317/0.432, allocations: 0.8805 MB / 0.5728 GB, free: 32.4 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002174/0.4323, allocations: 261.4 kB / 0.573 GB, free: 32.21 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001484/0.4324, allocations: 85.81 kB / 0.5731 GB, free: 32.21 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001822/0.4342, allocations: 1.098 MB / 0.5742 GB, free: 32.12 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.774e-05/0.4343, allocations: 2.625 kB / 0.5742 GB, free: 32.12 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.743e-05/0.4344, allocations: 29.53 kB / 0.5742 GB, free: 32.12 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.445e-05/0.4344, allocations: 19.03 kB / 0.5742 GB, free: 32.12 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001748/0.4361, allocations: 0.9871 MB / 0.5752 GB, free: 32.12 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.005597/0.4418, allocations: 3.819 MB / 0.5789 GB, free: 30.42 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006754/0.4485, allocations: 2.371 MB / 0.5812 GB, free: 29.6 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001554/0.4501, allocations: 0.6767 MB / 0.5819 GB, free: 29.34 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001015/0.4502, allocations: 15.59 kB / 0.5819 GB, free: 29.33 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001564/0.4518, allocations: 0.827 MB / 0.5827 GB, free: 29 MB / 430.1 MB Notification: Performance of pre-optimization done (n=96): time 2.966e-06/0.4518, allocations: 0 / 0.5827 GB, free: 29 MB / 430.1 MB Notification: Performance of matching and sorting (n=96): time 0.02859/0.4804, allocations: 7.076 MB / 0.5896 GB, free: 27.62 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.51e-05/0.4805, allocations: 122.2 kB / 0.5898 GB, free: 27.49 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001926/0.4825, allocations: 1.085 MB / 0.5908 GB, free: 27.04 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000285/0.4827, allocations: 42.81 kB / 0.5909 GB, free: 27 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003709/0.4831, allocations: 497.9 kB / 0.5913 GB, free: 26.61 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004149/0.4835, allocations: 361.5 kB / 0.5917 GB, free: 26.33 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005348/0.4841, allocations: 283 kB / 0.5919 GB, free: 26.2 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 5.466e-05/0.4842, allocations: 306 kB / 0.5922 GB, free: 25.9 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001611/0.4858, allocations: 0.7597 MB / 0.593 GB, free: 25.62 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001703/0.4875, allocations: 0.9442 MB / 0.5939 GB, free: 25.18 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02372/0.5112, allocations: 5.601 MB / 0.5994 GB, free: 23.43 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.101e-05/0.5113, allocations: 1.125 kB / 0.5994 GB, free: 23.43 MB / 430.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01435/0.5256, allocations: 4.337 MB / 0.6036 GB, free: 22.25 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.293e-05/0.5257, allocations: 59.03 kB / 0.6037 GB, free: 22.18 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.022e-05/0.5258, allocations: 3.219 kB / 0.6037 GB, free: 22.18 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005866/0.5316, allocations: 1.516 MB / 0.6051 GB, free: 21.78 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001719/0.5334, allocations: 297.8 kB / 0.6054 GB, free: 21.71 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0202/0.5536, allocations: 8.259 MB / 0.6135 GB, free: 16.07 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002342/0.556, allocations: 202.8 kB / 0.6137 GB, free: 15.87 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003792/0.5564, allocations: 56.59 kB / 0.6137 GB, free: 15.82 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: 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.0009699/0.5574, allocations: 307.6 kB / 0.614 GB, free: 15.5 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004714/0.5579, allocations: 130.3 kB / 0.6142 GB, free: 15.38 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01189/0.5698, allocations: 3.875 MB / 0.6179 GB, free: 11.47 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-05/0.5698, allocations: 9.875 kB / 0.618 GB, free: 11.46 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.286e-05/0.5699, allocations: 8 kB / 0.618 GB, free: 11.45 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.3e-05/0.5699, allocations: 7.984 kB / 0.618 GB, free: 11.45 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.01421/0.5841, allocations: 5.454 MB / 0.6233 GB, free: 5.883 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.509e-05/0.5842, allocations: 7.938 kB / 0.6233 GB, free: 5.875 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006304/0.5848, allocations: 95.89 kB / 0.6234 GB, free: 5.781 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005125/0.59, allocations: 1.606 MB / 0.625 GB, free: 4.168 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001884/0.5902, allocations: 24.73 kB / 0.625 GB, free: 4.145 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02025/0.6104, allocations: 9.61 MB / 0.6344 GB, free: 10.24 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.6105, allocations: 0 / 0.6344 GB, free: 10.24 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01494/0.6254, allocations: 4.733 MB / 0.639 GB, free: 5.469 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005959/0.6261, allocations: 231.2 kB / 0.6392 GB, free: 5.223 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004862/0.6266, allocations: 16 kB / 0.6392 GB, free: 5.207 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001506/0.6281, allocations: 107.9 kB / 0.6393 GB, free: 5.102 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007187/0.6288, allocations: 200.7 kB / 0.6395 GB, free: 4.902 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001563/0.629, allocations: 27.98 kB / 0.6395 GB, free: 4.875 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001393/0.6304, allocations: 0.7312 MB / 0.6403 GB, free: 4.137 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.6304, allocations: 0 / 0.6403 GB, free: 4.137 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002028/0.6325, allocations: 477.8 kB / 0.6407 GB, free: 3.672 MB / 446.1 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.0003873/0.6329, allocations: 136 kB / 0.6408 GB, free: 3.531 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007236/0.6401, allocations: 2.535 MB / 0.6433 GB, free: 0.9688 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.501e-06/0.6402, allocations: 0 / 0.6433 GB, free: 0.9688 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004782/0.645, allocations: 1.617 MB / 0.6449 GB, free: 15.32 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001553/0.6465, allocations: 120.1 kB / 0.645 GB, free: 15.21 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004923/0.6515, allocations: 2.277 MB / 0.6472 GB, free: 12.94 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009063/0.6524, allocations: 1.12 MB / 0.6483 GB, free: 11.79 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0006142/0.653, allocations: 125 kB / 0.6485 GB, free: 11.66 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003491/0.6534, allocations: 80.83 kB / 0.6485 GB, free: 11.59 MB / 462.1 MB Notification: Performance of SimCode: time 1.553e-06/0.6534, allocations: 0 / 0.6485 GB, free: 11.59 MB / 462.1 MB Notification: Performance of Templates: time 0.0416/0.695, allocations: 23.45 MB / 0.6714 GB, free: 4.344 MB / 478.1 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)