Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.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.ThreeArea.FourthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII") translateModel(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009971/0.0009971, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.472/1.472, allocations: 223.3 MB / 239 MB, free: 5.582 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.001476/0.001475, allocations: 172.6 kB / 290.3 MB, free: 2.273 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.5458/0.5458, allocations: 78.56 MB / 419.9 MB, free: 4.363 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003766/0.0003766, allocations: 12 kB / 499.8 MB, free: 6.375 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1669/0.1673, allocations: 69.36 MB / 0.5558 GB, free: 0.957 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII): time 0.3325/0.4999, allocations: 12.83 MB / 0.5683 GB, free: 35.51 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.009306/0.5092, allocations: 3.438 MB / 0.5717 GB, free: 33.04 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00379/0.5131, allocations: 36.44 kB / 0.5717 GB, free: 33.04 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002422/0.5155, allocations: 387 kB / 0.5721 GB, free: 32.87 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006113/0.5217, allocations: 1.2 MB / 0.5733 GB, free: 32.07 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_1.xq <> order4_1.x1q, <> on Real numbers is only allowed inside functions. Notification: Performance of NFTyping.typeClassSections: time 0.003914/0.5256, allocations: 1.283 MB / 0.5745 GB, free: 31.48 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.006467/0.5321, allocations: 3.332 MB / 0.5778 GB, free: 29.79 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001616/0.5337, allocations: 0.6923 MB / 0.5785 GB, free: 29.49 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002777/0.5365, allocations: 1.314 MB / 0.5797 GB, free: 28.89 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003539/0.5401, allocations: 1.711 MB / 0.5814 GB, free: 28.14 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009842/0.5411, allocations: 143.9 kB / 0.5815 GB, free: 28.14 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001369/0.5424, allocations: 267.3 kB / 0.5818 GB, free: 28.1 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004698/0.5429, allocations: 0.5863 MB / 0.5824 GB, free: 27.76 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008571/0.5438, allocations: 0.522 MB / 0.5829 GB, free: 27.44 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003194/0.547, allocations: 2.945 MB / 0.5858 GB, free: 26.52 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.208e-06/0.547, allocations: 4 kB / 0.5858 GB, free: 26.52 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.617e-06/0.547, allocations: 0 / 0.5858 GB, free: 26.52 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001334/0.5472, allocations: 2.969 kB / 0.5858 GB, free: 26.52 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: 523 * Number of variables: 523 Notification: Performance of Generate backend data structure: time 0.02129/0.5685, allocations: 6.152 MB / 0.5918 GB, free: 24.26 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.287e-05/0.5686, allocations: 9.188 kB / 0.5918 GB, free: 24.26 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01574/0.5843, allocations: 2.29 MB / 0.594 GB, free: 23.84 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005558/0.5899, allocations: 1.774 MB / 0.5958 GB, free: 22.79 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007922/0.5907, allocations: 0.7522 MB / 0.5965 GB, free: 22.13 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007673/0.5915, allocations: 218.6 kB / 0.5967 GB, free: 22.05 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008197/0.5997, allocations: 3.213 MB / 0.5998 GB, free: 20.88 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.296e-05/0.5998, allocations: 0.75 kB / 0.5998 GB, free: 20.88 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002586/0.6001, allocations: 86.56 kB / 0.5999 GB, free: 20.82 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.614e-05/0.6001, allocations: 49.56 kB / 0.6 GB, free: 20.82 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006912/0.6071, allocations: 2.972 MB / 0.6029 GB, free: 19.85 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.02376/0.6309, allocations: 10.13 MB / 0.6128 GB, free: 14.33 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01215/0.643, allocations: 4.859 MB / 0.6175 GB, free: 12.47 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004965/0.6481, allocations: 2.164 MB / 0.6196 GB, free: 11.43 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004388/0.6485, allocations: 43.77 kB / 0.6197 GB, free: 11.41 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005325/0.6539, allocations: 2.421 MB / 0.622 GB, free: 9.887 MB / 430.1 MB Notification: Performance of pre-optimization done (n=248): time 5.049e-06/0.6539, allocations: 3.938 kB / 0.622 GB, free: 9.883 MB / 430.1 MB Notification: Performance of matching and sorting (n=248): time 0.1153/0.7692, allocations: 33.5 MB / 0.6547 GB, free: 8.266 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00014/0.7694, allocations: 184.2 kB / 0.6549 GB, free: 8.047 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004214/0.7736, allocations: 2.261 MB / 0.6571 GB, free: 5.766 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000966/0.7746, allocations: 65.7 kB / 0.6572 GB, free: 5.695 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001102/0.7757, allocations: 1.164 MB / 0.6583 GB, free: 4.52 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001364/0.7771, allocations: 0.8704 MB / 0.6592 GB, free: 3.637 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002536/0.7774, allocations: 64 kB / 0.6592 GB, free: 3.574 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0002269/0.7776, allocations: 432.8 kB / 0.6596 GB, free: 3.145 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004471/0.7821, allocations: 2.138 MB / 0.6617 GB, free: 1.004 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004728/0.7868, allocations: 2.513 MB / 0.6642 GB, free: 14.4 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004753/0.7916, allocations: 2.403 MB / 0.6665 GB, free: 11.96 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.154e-05/0.7916, allocations: 5.781 kB / 0.6665 GB, free: 11.95 MB / 478.1 MB Notification: Performance of matching and sorting (n=417) (initialization): time 0.04175/0.8334, allocations: 15.16 MB / 0.6813 GB, free: 12.71 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000117/0.8335, allocations: 118.8 kB / 0.6815 GB, free: 12.57 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.26e-05/0.8336, allocations: 4 kB / 0.6815 GB, free: 12.57 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01949/0.8531, allocations: 6.413 MB / 0.6877 GB, free: 6.172 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003264/0.8564, allocations: 0.5695 MB / 0.6883 GB, free: 5.602 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0608/0.9172, allocations: 25.15 MB / 0.7128 GB, free: 12.32 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006012/0.9233, allocations: 0.5831 MB / 0.7134 GB, free: 11.73 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00103/0.9244, allocations: 116 kB / 0.7135 GB, free: 11.62 MB / 0.5137 GB Warning: Assuming fixed start value for the following 7 variables: Exc2.firstOrder2.y:VARIABLE(flow=false start = Exc2.firstOrder2.y_start fixed = true ) "Connector of Real output signal" type: Real Exc1.firstOrder2.y:VARIABLE(flow=false start = Exc1.firstOrder2.y_start fixed = true ) "Connector of Real output signal" type: Real order4_1.e1d:VARIABLE(start = order4_1.e1d0 unit = "1" fixed = true ) "d-axis transient voltage" type: Real order4_1.e1q:VARIABLE(start = order4_1.e1q0 unit = "1" fixed = true ) "q-axis transient voltage" type: Real order4_1.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 order3_2.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (327): * Single equations (assignments): 322 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {65 26} Notification: Performance of prepare postOptimizeDAE: time 0.002033/0.9264, allocations: 0.5372 MB / 0.714 GB, free: 11.07 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001154/0.9276, allocations: 296.3 kB / 0.7143 GB, free: 10.77 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04098/0.9686, allocations: 14.73 MB / 0.7287 GB, free: 11.99 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.454e-05/0.9687, allocations: 24 kB / 0.7287 GB, free: 11.97 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.073e-05/0.9687, allocations: 20.94 kB / 0.7288 GB, free: 11.95 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.259e-05/0.9688, allocations: 11.95 kB / 0.7288 GB, free: 11.94 MB / 0.5294 GB 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.04943/1.018, allocations: 18.33 MB / 0.7467 GB, free: 9.449 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.856e-05/1.018, allocations: 0.5625 kB / 0.7467 GB, free: 9.449 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002292/1.021, allocations: 247.7 kB / 0.7469 GB, free: 9.207 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02574/1.046, allocations: 6.232 MB / 0.753 GB, free: 2.961 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001094/1.048, allocations: 49.44 kB / 0.753 GB, free: 2.914 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.375/1.423, allocations: 25.5 MB / 0.7779 GB, free: 163.1 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.048e-06/1.423, allocations: 1.125 kB / 0.7779 GB, free: 163.1 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04933/1.472, allocations: 17.29 MB / 0.7948 GB, free: 162.6 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00158/1.474, allocations: 417.3 kB / 0.7952 GB, free: 162.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001068/1.475, allocations: 50.34 kB / 0.7953 GB, free: 162.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003158/1.478, allocations: 405.5 kB / 0.7957 GB, free: 162.4 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002779/1.481, allocations: 0.5752 MB / 0.7962 GB, free: 162.4 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002888/1.481, allocations: 71.33 kB / 0.7963 GB, free: 162.4 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003169/1.484, allocations: 1.481 MB / 0.7977 GB, free: 162.2 MB / 0.5606 GB Notification: Performance of sort global known variables: time 4.81e-07/1.484, allocations: 0.8438 kB / 0.7977 GB, free: 162.2 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.00522/1.489, allocations: 1.179 MB / 0.7989 GB, free: 162.2 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 17 (order3_2.delta,order3_2.w,order3_2.e1q,order2.delta,order2.w,order4_1.delta,order4_1.w,order4_1.e1q,order4_1.e1d,Exc1.ExcitationSystem.x_scaled[1],Exc1.derivativeBlock.x,Exc1.firstOrder2.y,Exc1.simpleLagLim.state,Exc2.ExcitationSystem.x_scaled[1],Exc2.derivativeBlock.x,Exc2.firstOrder2.y,Exc2.simpleLagLim.state) * Number of discrete variables: 4 ($whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (157): * Single equations (assignments): 152 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(65,7.8%) 23} * Non-linear torn systems: 2 {1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006054/1.49, allocations: 174.7 kB / 0.7991 GB, free: 162.1 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.02028/1.51, allocations: 7.503 MB / 0.8064 GB, free: 160.9 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 7.965e-06/1.51, allocations: 128 / 0.8064 GB, free: 160.9 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.01548/1.526, allocations: 5.08 MB / 0.8113 GB, free: 159.1 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004252/1.53, allocations: 262 kB / 0.8116 GB, free: 158.9 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01165/1.542, allocations: 6.277 MB / 0.8177 GB, free: 155.4 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001736/1.544, allocations: 1.806 MB / 0.8195 GB, free: 154.6 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001495/1.545, allocations: 260.9 kB / 0.8197 GB, free: 154.5 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005733/1.546, allocations: 162.3 kB / 0.8199 GB, free: 154.5 MB / 0.5606 GB Notification: Performance of SimCode: time 1.883e-06/1.546, allocations: 0 / 0.8199 GB, free: 154.5 MB / 0.5606 GB Notification: Performance of Templates: time 0.09228/1.638, allocations: 56.54 MB / 0.8751 GB, free: 105.8 MB / 0.5606 GB make -j1 -f OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.makefile Environment - environmentSimulation: (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.sim & ./OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe 2>&1) Environment - environmentSimulation: