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.001052/0.001052, allocations: 106.8 kB / 15.99 MB, free: 5.891 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.294/1.294, allocations: 222.9 MB / 239.6 MB, free: 4.789 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.001433/0.001433, allocations: 200.4 kB / 289.9 MB, free: 2.508 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4529/0.4529, allocations: 78.51 MB / 418.6 MB, free: 3.309 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001518/0.001518, allocations: 79.86 kB / 497.6 MB, free: 6.754 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1391/0.1406, allocations: 68.18 MB / 0.5525 GB, free: 2.535 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII): time 0.2645/0.4052, allocations: 14.37 MB / 0.5665 GB, free: 31.62 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.008551/0.4138, allocations: 3.584 MB / 0.57 GB, free: 30.57 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003548/0.4174, allocations: 32.47 kB / 0.5701 GB, free: 30.57 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001821/0.4193, allocations: 437.8 kB / 0.5705 GB, free: 30.42 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005352/0.4246, allocations: 1.211 MB / 0.5717 GB, free: 29.84 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003373/0.428, allocations: 1.405 MB / 0.573 GB, free: 29.66 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.005196/0.4332, allocations: 3.695 MB / 0.5766 GB, free: 28.82 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001249/0.4345, allocations: 0.8936 MB / 0.5775 GB, free: 28.61 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002305/0.4368, allocations: 1.545 MB / 0.579 GB, free: 28.16 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001756/0.4386, allocations: 1.957 MB / 0.5809 GB, free: 27.33 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004013/0.439, allocations: 284.9 kB / 0.5812 GB, free: 27.33 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008537/0.4398, allocations: 430.8 kB / 0.5816 GB, free: 27.29 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005023/0.4404, allocations: 0.7577 MB / 0.5824 GB, free: 26.79 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001208/0.4416, allocations: 1.65 MB / 0.584 GB, free: 25.66 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002783/0.4444, allocations: 3.067 MB / 0.587 GB, free: 24.44 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.531e-06/0.4444, allocations: 0 / 0.587 GB, free: 24.44 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.4444, allocations: 0 / 0.587 GB, free: 24.44 MB / 430.1 MB Notification: Performance of Transformations before backend: time 5.479e-05/0.4445, allocations: 4 kB / 0.587 GB, free: 24.44 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.02274/0.4672, allocations: 6.582 MB / 0.5934 GB, free: 21.81 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.514e-05/0.4673, allocations: 9.719 kB / 0.5934 GB, free: 21.81 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01451/0.4818, allocations: 2.273 MB / 0.5956 GB, free: 21.37 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004026/0.4858, allocations: 1.869 MB / 0.5975 GB, free: 20.22 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006415/0.4865, allocations: 0.7287 MB / 0.5982 GB, free: 19.56 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000427/0.4869, allocations: 215.5 kB / 0.5984 GB, free: 19.49 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006601/0.4935, allocations: 3.028 MB / 0.6013 GB, free: 18.34 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.707e-05/0.4936, allocations: 0 / 0.6013 GB, free: 18.34 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002361/0.4938, allocations: 94 kB / 0.6014 GB, free: 18.27 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.895e-05/0.4939, allocations: 50.97 kB / 0.6015 GB, free: 18.27 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006084/0.5, allocations: 2.778 MB / 0.6042 GB, free: 17.33 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.01945/0.5195, allocations: 9.872 MB / 0.6138 GB, free: 11.83 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01067/0.5302, allocations: 4.191 MB / 0.6179 GB, free: 10.1 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003637/0.5338, allocations: 1.964 MB / 0.6198 GB, free: 9.094 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002675/0.5341, allocations: 43.14 kB / 0.6199 GB, free: 9.078 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004253/0.5383, allocations: 2.225 MB / 0.622 GB, free: 7.797 MB / 430.1 MB Notification: Performance of pre-optimization done (n=247): time 4.588e-06/0.5384, allocations: 0 / 0.622 GB, free: 7.797 MB / 430.1 MB Notification: Performance of matching and sorting (n=247): time 0.1211/0.6594, allocations: 29.47 MB / 0.6508 GB, free: 10.36 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.885e-05/0.6596, allocations: 180.2 kB / 0.651 GB, free: 10.15 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003527/0.6631, allocations: 2.277 MB / 0.6532 GB, free: 7.852 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008409/0.664, allocations: 73.7 kB / 0.6533 GB, free: 7.773 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009025/0.6649, allocations: 1.176 MB / 0.6544 GB, free: 6.586 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001011/0.6659, allocations: 0.8665 MB / 0.6553 GB, free: 5.707 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001039/0.6669, allocations: 0.5616 MB / 0.6558 GB, free: 5.137 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.634e-05/0.667, allocations: 314.7 kB / 0.6561 GB, free: 4.828 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003894/0.6709, allocations: 1.951 MB / 0.658 GB, free: 2.875 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004184/0.6751, allocations: 2.309 MB / 0.6603 GB, free: 488 kB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.05445/0.7296, allocations: 14.04 MB / 0.674 GB, free: 2.223 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-05/0.7297, allocations: 4.688 kB / 0.674 GB, free: 2.219 MB / 478.1 MB Notification: Performance of matching and sorting (n=413) (initialization): time 0.04461/0.7743, allocations: 12.29 MB / 0.686 GB, free: 5.859 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001053/0.7745, allocations: 114.8 kB / 0.6861 GB, free: 5.723 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.541e-05/0.7745, allocations: 11.94 kB / 0.6861 GB, free: 5.711 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01754/0.7921, allocations: 5.324 MB / 0.6913 GB, free: 392 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003011/0.7952, allocations: 0.5617 MB / 0.6919 GB, free: 15.82 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0615/0.8567, allocations: 23.51 MB / 0.7148 GB, free: 8.16 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005172/0.8619, allocations: 489.1 kB / 0.7153 GB, free: 7.68 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008947/0.8628, allocations: 116.6 kB / 0.7154 GB, free: 7.566 MB / 0.5137 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.002435/0.8653, allocations: 0.539 MB / 0.7159 GB, free: 7.012 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001457/0.8667, allocations: 292.3 kB / 0.7162 GB, free: 6.723 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03929/0.9061, allocations: 11.9 MB / 0.7278 GB, free: 10.78 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.509e-05/0.9061, allocations: 24 kB / 0.7279 GB, free: 10.75 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.079e-05/0.9062, allocations: 19.98 kB / 0.7279 GB, free: 10.73 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.915e-05/0.9063, allocations: 15.95 kB / 0.7279 GB, free: 10.72 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.04852/0.9549, allocations: 15.49 MB / 0.743 GB, free: 11.07 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.093e-05/0.955, allocations: 0.8125 kB / 0.743 GB, free: 11.07 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001941/0.9569, allocations: 247.6 kB / 0.7433 GB, free: 10.82 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01789/0.9748, allocations: 5.291 MB / 0.7484 GB, free: 5.516 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000765/0.9756, allocations: 55.98 kB / 0.7485 GB, free: 5.461 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3387/1.314, allocations: 24.96 MB / 0.7729 GB, free: 164.4 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/1.314, allocations: 1.188 kB / 0.7729 GB, free: 164.4 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04136/1.356, allocations: 14.26 MB / 0.7868 GB, free: 164 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001496/1.357, allocations: 410 kB / 0.7872 GB, free: 163.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007446/1.358, allocations: 46.06 kB / 0.7872 GB, free: 163.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002924/1.361, allocations: 298.7 kB / 0.7875 GB, free: 163.8 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002128/1.363, allocations: 0.5797 MB / 0.7881 GB, free: 163.8 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002306/1.363, allocations: 67.61 kB / 0.7881 GB, free: 163.8 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002312/1.366, allocations: 1.511 MB / 0.7896 GB, free: 163.7 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.41e-07/1.366, allocations: 1 kB / 0.7896 GB, free: 163.7 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003807/1.369, allocations: 1.164 MB / 0.7907 GB, free: 163.7 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.0004628/1.37, allocations: 179.8 kB / 0.7909 GB, free: 163.6 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.02005/1.39, allocations: 6.802 MB / 0.7976 GB, free: 162.9 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 7.224e-06/1.39, allocations: 1.031 kB / 0.7976 GB, free: 162.9 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.01382/1.404, allocations: 4.389 MB / 0.8018 GB, free: 161.6 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002626/1.407, allocations: 263.3 kB / 0.8021 GB, free: 161.4 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01093/1.418, allocations: 6.471 MB / 0.8084 GB, free: 157.7 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001715/1.419, allocations: 1.805 MB / 0.8102 GB, free: 156.9 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001086/1.42, allocations: 186.7 kB / 0.8104 GB, free: 156.8 MB / 0.5606 GB Notification: Performance of SimCode: time 7.51e-07/1.42, allocations: 0 / 0.8104 GB, free: 156.8 MB / 0.5606 GB Notification: Performance of Templates: time 0.0728/1.493, allocations: 63.8 MB / 0.8727 GB, free: 107 MB / 0.5606 GB make -j1 -f OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.makefile (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)