Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.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.TwoAreaOld.ThirdOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII") translateModel(OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001271/0.001272, allocations: 107.3 kB / 16.41 MB, free: 6.406 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.335/1.335, allocations: 222.9 MB / 240.1 MB, free: 4.355 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.001294/0.001295, allocations: 188.5 kB / 290.4 MB, free: 2.082 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4643/0.4643, allocations: 78.53 MB / 419.1 MB, free: 3.152 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001612/0.001612, allocations: 79.88 kB / 0.5543 GB, free: 0.957 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4184/0.42, allocations: 68.16 MB / 0.6209 GB, free: 9.906 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII): time 0.005505/0.4256, allocations: 6.516 MB / 0.6272 GB, free: 3.859 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003685/0.4293, allocations: 1.951 MB / 0.6291 GB, free: 1.902 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005497/0.4299, allocations: 8 kB / 0.6291 GB, free: 1.895 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006733/0.4306, allocations: 241.9 kB / 0.6294 GB, free: 1.656 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001635/0.4322, allocations: 0.8104 MB / 0.6302 GB, free: 0.8477 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001082/0.4333, allocations: 0.6186 MB / 0.6308 GB, free: 240 kB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001484/0.4348, allocations: 1.577 MB / 0.6323 GB, free: 14.65 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004554/0.4353, allocations: 334.4 kB / 0.6326 GB, free: 14.31 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007308/0.436, allocations: 0.6535 MB / 0.6333 GB, free: 13.66 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008473/0.4369, allocations: 0.8284 MB / 0.6341 GB, free: 12.82 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001629/0.437, allocations: 124 kB / 0.6342 GB, free: 12.7 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004745/0.4375, allocations: 251.9 kB / 0.6344 GB, free: 12.46 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002684/0.4378, allocations: 330.6 kB / 0.6347 GB, free: 12.13 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004925/0.4383, allocations: 0.668 MB / 0.6354 GB, free: 11.46 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001511/0.4398, allocations: 1.672 MB / 0.637 GB, free: 9.785 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.4398, allocations: 0 / 0.637 GB, free: 9.785 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.4398, allocations: 0 / 0.637 GB, free: 9.785 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.398e-05/0.4399, allocations: 0 / 0.637 GB, free: 9.785 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 189 * Number of variables: 189 Notification: Performance of Generate backend data structure: time 0.008534/0.4484, allocations: 2.692 MB / 0.6397 GB, free: 7.023 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.953e-05/0.4485, allocations: 8.031 kB / 0.6397 GB, free: 7.016 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004982/0.4534, allocations: 0.7748 MB / 0.6404 GB, free: 6.238 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001612/0.4551, allocations: 0.8903 MB / 0.6413 GB, free: 5.293 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002875/0.4554, allocations: 256.1 kB / 0.6415 GB, free: 5.004 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001789/0.4556, allocations: 80 kB / 0.6416 GB, free: 4.926 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002233/0.4578, allocations: 1.086 MB / 0.6427 GB, free: 3.828 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2e-05/0.4578, allocations: 4 kB / 0.6427 GB, free: 3.824 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.91e-05/0.458, allocations: 28 kB / 0.6427 GB, free: 3.797 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.683e-05/0.458, allocations: 23.94 kB / 0.6427 GB, free: 3.773 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00215/0.4601, allocations: 0.9916 MB / 0.6437 GB, free: 2.781 MB / 446.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.006919/0.4671, allocations: 3.785 MB / 0.6474 GB, free: 14.82 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007575/0.4747, allocations: 2.368 MB / 0.6497 GB, free: 12.36 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001485/0.4762, allocations: 0.6761 MB / 0.6504 GB, free: 11.68 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001199/0.4763, allocations: 20.97 kB / 0.6504 GB, free: 11.66 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001793/0.4781, allocations: 0.8176 MB / 0.6512 GB, free: 10.82 MB / 462.1 MB Notification: Performance of pre-optimization done (n=95): time 4.95e-06/0.4781, allocations: 4 kB / 0.6512 GB, free: 10.82 MB / 462.1 MB Notification: Performance of matching and sorting (n=95): time 0.02988/0.508, allocations: 7.186 MB / 0.6582 GB, free: 3.566 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.407e-05/0.5082, allocations: 115.8 kB / 0.6583 GB, free: 3.43 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002038/0.5102, allocations: 1.091 MB / 0.6594 GB, free: 2.324 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002202/0.5104, allocations: 45.7 kB / 0.6594 GB, free: 2.273 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004561/0.5109, allocations: 492.8 kB / 0.6599 GB, free: 1.785 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005062/0.5114, allocations: 351.1 kB / 0.6602 GB, free: 1.438 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006635/0.5121, allocations: 287.4 kB / 0.6605 GB, free: 1.152 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001004/0.5122, allocations: 301.1 kB / 0.6608 GB, free: 0.8555 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001635/0.5139, allocations: 0.7574 MB / 0.6615 GB, free: 100 kB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001789/0.5157, allocations: 0.9265 MB / 0.6624 GB, free: 15.12 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02361/0.5393, allocations: 5.556 MB / 0.6679 GB, free: 9.488 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.049e-05/0.5393, allocations: 8 kB / 0.6679 GB, free: 9.48 MB / 478.1 MB Notification: Performance of matching and sorting (n=192) (initialization): time 0.01442/0.5538, allocations: 4.356 MB / 0.6721 GB, free: 5.094 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.965e-05/0.5539, allocations: 65.05 kB / 0.6722 GB, free: 5.02 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.592e-05/0.5539, allocations: 7.938 kB / 0.6722 GB, free: 5.012 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005866/0.5598, allocations: 1.588 MB / 0.6737 GB, free: 3.422 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001439/0.5612, allocations: 279.6 kB / 0.674 GB, free: 3.148 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0205/0.5818, allocations: 8.494 MB / 0.6823 GB, free: 10.5 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002047/0.5838, allocations: 190.8 kB / 0.6825 GB, free: 10.31 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002993/0.5842, allocations: 59.91 kB / 0.6825 GB, free: 10.25 MB / 494.1 MB Warning: Assuming fixed start value for the following 4 variables: order3.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 order2.delta:VARIABLE(flow=false start = order2.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order3.delta:VARIABLE(flow=false start = order3.delta0 unit = "rad" fixed = true ) "Rotor angle" 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 (160): * Single equations (assignments): 157 * 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 {(19,14,24.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001192/0.5854, allocations: 304.2 kB / 0.6828 GB, free: 9.938 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005617/0.5859, allocations: 126.5 kB / 0.683 GB, free: 9.812 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01353/0.5995, allocations: 3.881 MB / 0.6867 GB, free: 5.895 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.278e-05/0.5996, allocations: 11.98 kB / 0.6868 GB, free: 5.883 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.694e-05/0.5996, allocations: 8 kB / 0.6868 GB, free: 5.875 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.167e-05/0.5996, allocations: 7.984 kB / 0.6868 GB, free: 5.867 MB / 494.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.01594/0.6156, allocations: 5.444 MB / 0.6921 GB, free: 324 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.016e-05/0.6156, allocations: 0 / 0.6921 GB, free: 324 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005824/0.6162, allocations: 99.83 kB / 0.6922 GB, free: 224 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005666/0.6219, allocations: 1.603 MB / 0.6937 GB, free: 14.61 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001284/0.622, allocations: 27.94 kB / 0.6938 GB, free: 14.58 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02161/0.6436, allocations: 9.638 MB / 0.7032 GB, free: 4.652 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.098e-06/0.6437, allocations: 240 / 0.7032 GB, free: 4.652 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01529/0.659, allocations: 4.731 MB / 0.7078 GB, free: 15.89 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005488/0.6596, allocations: 215.3 kB / 0.708 GB, free: 15.66 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004616/0.6601, allocations: 27.92 kB / 0.708 GB, free: 15.63 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001478/0.6616, allocations: 111.9 kB / 0.7081 GB, free: 15.52 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006927/0.6623, allocations: 188.7 kB / 0.7083 GB, free: 15.34 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001312/0.6624, allocations: 28 kB / 0.7083 GB, free: 15.31 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001375/0.6638, allocations: 0.7315 MB / 0.7091 GB, free: 14.57 MB / 0.5137 GB Notification: Performance of sort global known variables: time 3.01e-07/0.6638, allocations: 0 / 0.7091 GB, free: 14.57 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001897/0.6657, allocations: 475.5 kB / 0.7095 GB, free: 14.11 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 9 (order2.delta,order2.w,order3.delta,order3.w,order3.e1q,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 (63): * Single equations (assignments): 60 * 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 {(20,12,23.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000402/0.6661, allocations: 138.4 kB / 0.7096 GB, free: 13.96 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.006768/0.6729, allocations: 2.513 MB / 0.7121 GB, free: 11.41 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 5.841e-06/0.673, allocations: 4 kB / 0.7121 GB, free: 11.4 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.004484/0.6774, allocations: 1.592 MB / 0.7137 GB, free: 9.77 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001318/0.6788, allocations: 119.8 kB / 0.7138 GB, free: 9.656 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004636/0.6834, allocations: 2.262 MB / 0.716 GB, free: 7.363 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008021/0.6843, allocations: 1.112 MB / 0.7171 GB, free: 6.219 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003969/0.6847, allocations: 91.41 kB / 0.7172 GB, free: 6.129 MB / 0.5137 GB Notification: Performance of SimCode: time 8.92e-07/0.6847, allocations: 0 / 0.7172 GB, free: 6.129 MB / 0.5137 GB Notification: Performance of Templates: time 0.03651/0.7212, allocations: 23.49 MB / 0.7401 GB, free: 14.62 MB / 0.545 GB make -j1 -f OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.makefile (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.sim & ./OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe 2>&1)