Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_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.ThirdOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII") translateModel(OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009587/0.0009588, allocations: 91.84 kB / 15.36 MB, free: 0.7344 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.473/1.473, allocations: 223.3 MB / 239.4 MB, free: 5.402 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.001322/0.001322, allocations: 168.5 kB / 290.6 MB, free: 2.078 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.5741/0.5741, allocations: 78.55 MB / 420.3 MB, free: 4.16 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005477/0.0005478, allocations: 12 kB / 0.4887 GB, free: 5.969 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1728/0.1734, allocations: 69.36 MB / 0.5564 GB, free: 0.5664 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII): time 0.3358/0.5092, allocations: 13.71 MB / 0.5698 GB, free: 30.78 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.009632/0.5189, allocations: 3.565 MB / 0.5733 GB, free: 29.49 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00418/0.5231, allocations: 31.03 kB / 0.5733 GB, free: 29.49 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002243/0.5254, allocations: 436 kB / 0.5737 GB, free: 29.34 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006371/0.5318, allocations: 1.217 MB / 0.5749 GB, free: 28.77 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004052/0.5359, allocations: 1.411 MB / 0.5763 GB, free: 28.59 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.007202/0.5431, allocations: 3.511 MB / 0.5797 GB, free: 27.75 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00213/0.5453, allocations: 0.7952 MB / 0.5805 GB, free: 27.52 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003946/0.5492, allocations: 1.32 MB / 0.5818 GB, free: 27.1 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003703/0.553, allocations: 1.775 MB / 0.5835 GB, free: 26.48 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001438/0.5544, allocations: 143.4 kB / 0.5836 GB, free: 26.48 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002005/0.5564, allocations: 286.5 kB / 0.5839 GB, free: 26.43 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009087/0.5574, allocations: 0.6047 MB / 0.5845 GB, free: 26.07 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002055/0.5594, allocations: 1.484 MB / 0.586 GB, free: 25.08 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004326/0.5638, allocations: 3.709 MB / 0.5896 GB, free: 23.66 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.193e-06/0.5638, allocations: 0 / 0.5896 GB, free: 23.66 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.915e-06/0.5638, allocations: 0 / 0.5896 GB, free: 23.66 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001662/0.564, allocations: 0 / 0.5896 GB, free: 23.66 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: 522 * Number of variables: 522 Notification: Performance of Generate backend data structure: time 0.02357/0.5876, allocations: 6.127 MB / 0.5956 GB, free: 21.39 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.341e-05/0.5876, allocations: 8.812 kB / 0.5956 GB, free: 21.39 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01604/0.6037, allocations: 2.289 MB / 0.5978 GB, free: 20.98 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005097/0.6088, allocations: 1.88 MB / 0.5996 GB, free: 19.82 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008405/0.6097, allocations: 0.7458 MB / 0.6004 GB, free: 19.16 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008832/0.6106, allocations: 219.5 kB / 0.6006 GB, free: 19.09 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00873/0.6193, allocations: 3.236 MB / 0.6037 GB, free: 17.91 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.136e-05/0.6194, allocations: 0 / 0.6037 GB, free: 17.91 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002762/0.6197, allocations: 86.83 kB / 0.6038 GB, free: 17.84 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.143e-05/0.6198, allocations: 53.34 kB / 0.6039 GB, free: 17.84 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007856/0.6276, allocations: 2.982 MB / 0.6068 GB, free: 16.88 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.02622/0.6539, allocations: 10.12 MB / 0.6167 GB, free: 11.36 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01373/0.6677, allocations: 4.863 MB / 0.6214 GB, free: 9.234 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005576/0.6733, allocations: 2.164 MB / 0.6235 GB, free: 8.203 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000569/0.6739, allocations: 43.89 kB / 0.6236 GB, free: 8.188 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005991/0.6799, allocations: 2.432 MB / 0.6259 GB, free: 6.004 MB / 430.1 MB Notification: Performance of pre-optimization done (n=247): time 7.635e-06/0.68, allocations: 4.406 kB / 0.6259 GB, free: 6.004 MB / 430.1 MB Notification: Performance of matching and sorting (n=247): time 0.1467/0.8266, allocations: 36.49 MB / 0.6616 GB, free: 1.383 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001273/0.8268, allocations: 188.2 kB / 0.6618 GB, free: 1.16 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00553/0.8323, allocations: 2.285 MB / 0.664 GB, free: 14.86 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001213/0.8336, allocations: 69.7 kB / 0.6641 GB, free: 14.78 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001258/0.8348, allocations: 1.168 MB / 0.6652 GB, free: 13.6 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002068/0.8369, allocations: 0.8703 MB / 0.6661 GB, free: 12.72 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001298/0.8382, allocations: 288.5 kB / 0.6663 GB, free: 12.43 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001078/0.8384, allocations: 301.1 kB / 0.6666 GB, free: 12.13 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005601/0.844, allocations: 2.15 MB / 0.6687 GB, free: 9.98 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005749/0.8497, allocations: 2.52 MB / 0.6712 GB, free: 7.371 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.06215/0.9119, allocations: 15.42 MB / 0.6862 GB, free: 7.734 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.313e-05/0.912, allocations: 8 kB / 0.6862 GB, free: 7.727 MB / 494.1 MB Notification: Performance of matching and sorting (n=413) (initialization): time 0.05333/0.9653, allocations: 15.1 MB / 0.701 GB, free: 8.555 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.000154/0.9655, allocations: 112.2 kB / 0.7011 GB, free: 8.422 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.683e-05/0.9656, allocations: 11.94 kB / 0.7011 GB, free: 8.41 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0216/0.9872, allocations: 6.305 MB / 0.7073 GB, free: 2.102 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003418/0.9907, allocations: 0.5589 MB / 0.7078 GB, free: 1.543 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07073/1.061, allocations: 24.77 MB / 0.732 GB, free: 8.625 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006106/1.068, allocations: 0.587 MB / 0.7326 GB, free: 8.035 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009732/1.069, allocations: 112 kB / 0.7327 GB, free: 7.926 MB / 0.5294 GB Warning: Assuming fixed start value for the following 6 variables: order3_2.delta:VARIABLE(flow=false start = order3_2.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order3_2.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order3_2.e1q:VARIABLE(start = order3_2.e1q0 unit = "1" fixed = true ) "q-axis transient voltage" type: Real order2.delta:VARIABLE(flow=false start = order2.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order2.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order3_1.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 ($whenCondition2,$whenCondition1,$whenCondition4,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (325): * Single equations (assignments): 320 * Array equations: 0 * Algorithm blocks: 4 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(63,26)} Notification: Performance of prepare postOptimizeDAE: time 0.00263/1.071, allocations: 0.5515 MB / 0.7332 GB, free: 7.359 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001442/1.073, allocations: 292.3 kB / 0.7335 GB, free: 7.07 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04876/1.121, allocations: 14.74 MB / 0.7479 GB, free: 8.285 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.585e-05/1.122, allocations: 28 kB / 0.7479 GB, free: 8.258 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.584e-05/1.122, allocations: 20 kB / 0.7479 GB, free: 8.238 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001028/1.122, allocations: 15.95 kB / 0.748 GB, free: 8.223 MB / 0.545 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.05602/1.178, allocations: 18.34 MB / 0.7659 GB, free: 5.719 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.222e-05/1.178, allocations: 4.688 kB / 0.7659 GB, free: 5.715 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002095/1.18, allocations: 243.7 kB / 0.7661 GB, free: 5.477 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.3664/1.546, allocations: 6.258 MB / 0.7722 GB, free: 161.3 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001118/1.548, allocations: 55.81 kB / 0.7723 GB, free: 161.3 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06488/1.613, allocations: 25.54 MB / 0.7972 GB, free: 157 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.609e-06/1.613, allocations: 1.031 kB / 0.7972 GB, free: 157 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06333/1.676, allocations: 17.3 MB / 0.8141 GB, free: 153.4 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001945/1.678, allocations: 416.2 kB / 0.8145 GB, free: 153.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001919/1.68, allocations: 48.17 kB / 0.8145 GB, free: 153.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005179/1.685, allocations: 411.6 kB / 0.8149 GB, free: 153 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003494/1.689, allocations: 0.57 MB / 0.8155 GB, free: 152.9 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008413/1.69, allocations: 64.12 kB / 0.8155 GB, free: 152.9 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004409/1.694, allocations: 1.515 MB / 0.817 GB, free: 152.4 MB / 0.5606 GB Notification: Performance of sort global known variables: time 4.21e-07/1.694, allocations: 0 / 0.817 GB, free: 152.4 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.006848/1.701, allocations: 1.175 MB / 0.8182 GB, free: 152.2 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 16 (order3_2.delta,order3_2.w,order3_2.e1q,order2.delta,order2.w,order3_1.delta,order3_1.w,order3_1.e1q,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 (156): * Single equations (assignments): 151 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(66,22,7.7%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,6), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001133/1.702, allocations: 171.8 kB / 0.8183 GB, free: 152.1 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.02326/1.725, allocations: 7.481 MB / 0.8256 GB, free: 149.6 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 9.117e-06/1.725, allocations: 0 / 0.8256 GB, free: 149.6 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.01582/1.741, allocations: 5.092 MB / 0.8306 GB, free: 147.2 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005223/1.746, allocations: 262.8 kB / 0.8309 GB, free: 147 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01351/1.76, allocations: 6.517 MB / 0.8372 GB, free: 141 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001845/1.762, allocations: 1.811 MB / 0.839 GB, free: 139.5 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001804/1.764, allocations: 263.8 kB / 0.8392 GB, free: 139.4 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00096/1.765, allocations: 158.9 kB / 0.8394 GB, free: 139.2 MB / 0.5606 GB Notification: Performance of SimCode: time 1.854e-06/1.765, allocations: 4 kB / 0.8394 GB, free: 139.2 MB / 0.5606 GB Notification: Performance of Templates: time 0.09041/1.855, allocations: 57.77 MB / 0.8958 GB, free: 85.89 MB / 0.5606 GB make -j1 -f OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.makefile Environment - environmentSimulation: (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.sim & ./OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.pipe 2>&1) Environment - environmentSimulation: