Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.TwoAreas.Two_Areas_PSAT.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.1.0-master/package.mo", uses=false) Using package OpenIPSL with version 3.1.0-dev (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/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.TwoAreas.Two_Areas_PSAT,tolerance=1e-06,outputFormat="empty",numberOfIntervals=200000,variableFilter="",fileNamePrefix="OpenIPSL_dev_OpenIPSL.Examples.TwoAreas.Two_Areas_PSAT") translateModel(OpenIPSL.Examples.TwoAreas.Two_Areas_PSAT,tolerance=1e-06,outputFormat="empty",numberOfIntervals=200000,variableFilter="",fileNamePrefix="OpenIPSL_dev_OpenIPSL.Examples.TwoAreas.Two_Areas_PSAT") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006724/0.006724, allocations: 99.92 kB / 15.73 MB, free: 6.043 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.342/1.342, allocations: 222.9 MB / 239.4 MB, free: 4.551 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.001563/0.001563, allocations: 188.5 kB / 289.7 MB, free: 2.277 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5181/0.5181, allocations: 91.9 MB / 431.8 MB, free: 9.164 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001459/0.001459, allocations: 80.66 kB / 0.5727 GB, free: 33.59 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1263/0.1277, allocations: 71.27 MB / 0.6423 GB, free: 3.59 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.TwoAreas.Two_Areas_PSAT): time 0.0136/0.1414, allocations: 14.07 MB / 0.6561 GB, free: 5.465 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.007947/0.1494, allocations: 4.12 MB / 0.6601 GB, free: 1.332 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002228/0.1516, allocations: 20 kB / 0.6601 GB, free: 1.312 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002223/0.1539, allocations: 0.6703 MB / 0.6608 GB, free: 0.6367 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005434/0.1593, allocations: 1.731 MB / 0.6624 GB, free: 14.9 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00309/0.1624, allocations: 1.276 MB / 0.6637 GB, free: 13.64 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.005616/0.1681, allocations: 4.07 MB / 0.6677 GB, free: 9.562 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001523/0.1696, allocations: 0.775 MB / 0.6684 GB, free: 8.746 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002465/0.1721, allocations: 1.63 MB / 0.67 GB, free: 7.109 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002914/0.175, allocations: 2.128 MB / 0.6721 GB, free: 4.973 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00102/0.1761, allocations: 368 kB / 0.6724 GB, free: 4.613 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001517/0.1776, allocations: 0.5194 MB / 0.6729 GB, free: 4.094 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001122/0.1787, allocations: 0.8365 MB / 0.6738 GB, free: 3.254 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002557/0.1813, allocations: 1.771 MB / 0.6755 GB, free: 1.473 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005062/0.1864, allocations: 4.566 MB / 0.68 GB, free: 12.89 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.1864, allocations: 0 / 0.68 GB, free: 12.89 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1864, allocations: 0 / 0.68 GB, free: 12.89 MB / 494.1 MB Notification: Performance of Transformations before backend: time 9.551e-05/0.1865, allocations: 0 / 0.68 GB, free: 12.89 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 451 * Number of variables: 451 Notification: Performance of Generate backend data structure: time 0.02127/0.2078, allocations: 5.787 MB / 0.6856 GB, free: 7.027 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.334e-05/0.2078, allocations: 8.031 kB / 0.6856 GB, free: 7.02 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01418/0.222, allocations: 2.041 MB / 0.6876 GB, free: 4.973 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004945/0.227, allocations: 2.026 MB / 0.6896 GB, free: 2.883 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005484/0.2276, allocations: 447.1 kB / 0.69 GB, free: 2.391 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008918/0.2285, allocations: 195.8 kB / 0.6902 GB, free: 2.199 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006524/0.235, allocations: 2.315 MB / 0.6925 GB, free: 15.87 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.998e-05/0.2351, allocations: 0 / 0.6925 GB, free: 15.87 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004192/0.2356, allocations: 68 kB / 0.6925 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.063e-05/0.2356, allocations: 47.94 kB / 0.6926 GB, free: 15.75 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005273/0.2409, allocations: 2.321 MB / 0.6948 GB, free: 13.43 MB / 0.4981 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 preOpt removeSimpleEquations (simulation): time 0.02049/0.2614, allocations: 9.651 MB / 0.7043 GB, free: 3.336 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01058/0.272, allocations: 4.176 MB / 0.7083 GB, free: 14.94 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003533/0.2756, allocations: 1.611 MB / 0.7099 GB, free: 13.32 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003272/0.2759, allocations: 37.97 kB / 0.7099 GB, free: 13.29 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.399e-05/0.276, allocations: 60.5 kB / 0.71 GB, free: 13.22 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=223): time 5.12e-06/0.276, allocations: 0 / 0.71 GB, free: 13.22 MB / 0.5137 GB Notification: Performance of matching and sorting (n=223): time 0.09405/0.3701, allocations: 20.09 MB / 0.7296 GB, free: 9.074 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.953e-05/0.3702, allocations: 77.41 kB / 0.7297 GB, free: 8.988 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004789/0.375, allocations: 2.691 MB / 0.7323 GB, free: 6.285 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0006205/0.3756, allocations: 65.7 kB / 0.7324 GB, free: 6.215 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.00106/0.3767, allocations: 1.165 MB / 0.7335 GB, free: 5.039 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.00129/0.378, allocations: 0.8127 MB / 0.7343 GB, free: 4.215 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002052/0.38, allocations: 0.5816 MB / 0.7349 GB, free: 3.625 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 8.807e-05/0.3801, allocations: 309.1 kB / 0.7352 GB, free: 3.32 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003966/0.3841, allocations: 1.791 MB / 0.7369 GB, free: 1.527 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004263/0.3884, allocations: 2.155 MB / 0.739 GB, free: 15.29 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.06139/0.4498, allocations: 13.08 MB / 0.7518 GB, free: 2.086 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.567e-05/0.4498, allocations: 3.938 kB / 0.7518 GB, free: 2.082 MB / 0.545 GB Notification: Performance of matching and sorting (n=429) (initialization): time 0.02368/0.4735, allocations: 7.452 MB / 0.7591 GB, free: 10.55 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 3.793e-05/0.4736, allocations: 8 kB / 0.7591 GB, free: 10.55 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.183e-05/0.4736, allocations: 4 kB / 0.7591 GB, free: 10.54 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01442/0.4881, allocations: 3.221 MB / 0.7622 GB, free: 7.277 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00888/0.497, allocations: 1.424 MB / 0.7636 GB, free: 5.852 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3535/0.8505, allocations: 16.85 MB / 0.7801 GB, free: 104.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004662/0.8552, allocations: 391.9 kB / 0.7805 GB, free: 104.8 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004716/0.8557, allocations: 117 kB / 0.7806 GB, free: 104.8 MB / 0.5606 GB Warning: Assuming fixed start value for the following 8 variables: g4.order6_1.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real g3.order6_1.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real g2.order6_1.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real g1.order6_1.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real g1.order6_1.delta:VARIABLE(flow=false start = g1.order6_1.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real g1.order6_1.e1d:VARIABLE(start = g1.order6_1.e1d0 unit = "1" fixed = true ) "d-axis transient voltage" type: Real g2.order6_1.delta:VARIABLE(flow=false start = g2.order6_1.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real g2.order6_1.e1d:VARIABLE(start = g2.order6_1.e1d0 unit = "1" fixed = true ) "d-axis transient voltage" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (361): * Single equations (assignments): 347 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 9 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 9 systems {(2,100.0%), (2,100.0%), (2,100.0%), (2,100.0%), (2,100.0%), (2,100.0%), (2,100.0%), (2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(4,2,75.0%), (4,2,75.0%), (1,1,100.0%), (3,17,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(8,22)} Notification: Performance of prepare postOptimizeDAE: time 0.001256/0.8569, allocations: 0.5034 MB / 0.7811 GB, free: 104.6 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00068/0.8576, allocations: 302.8 kB / 0.7814 GB, free: 104.6 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02735/0.885, allocations: 8.127 MB / 0.7893 GB, free: 102.7 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.832e-05/0.885, allocations: 23.34 kB / 0.7893 GB, free: 102.7 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.885, allocations: 0 / 0.7893 GB, free: 102.7 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.086e-05/0.8851, allocations: 11.25 kB / 0.7893 GB, free: 102.7 MB / 0.5606 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.02943/0.9145, allocations: 12.11 MB / 0.8012 GB, free: 98.26 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.049e-05/0.9146, allocations: 3.578 kB / 0.8012 GB, free: 98.26 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001653/0.9162, allocations: 232 kB / 0.8014 GB, free: 98.2 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01335/0.9296, allocations: 4.164 MB / 0.8054 GB, free: 96.57 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005233/0.9302, allocations: 47.17 kB / 0.8055 GB, free: 96.54 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03858/0.9687, allocations: 16.57 MB / 0.8217 GB, free: 80.02 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.925e-06/0.9688, allocations: 0 / 0.8217 GB, free: 80.02 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02846/0.9973, allocations: 10.15 MB / 0.8316 GB, free: 69.84 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001368/0.9987, allocations: 459.1 kB / 0.832 GB, free: 69.39 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00165/1, allocations: 43.98 kB / 0.8321 GB, free: 69.35 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004005/1.004, allocations: 170.1 kB / 0.8322 GB, free: 69.18 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002029/1.006, allocations: 378.5 kB / 0.8326 GB, free: 68.82 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004943/1.007, allocations: 59.98 kB / 0.8327 GB, free: 68.76 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003413/1.01, allocations: 1.782 MB / 0.8344 GB, free: 66.98 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.6e-07/1.01, allocations: 4 kB / 0.8344 GB, free: 66.98 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004373/1.015, allocations: 1.085 MB / 0.8355 GB, free: 65.89 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 24 (g1.order6_1.delta,g1.order6_1.w,g1.order6_1.e1q,g1.order6_1.e1d,g1.order6_1.e2q,g1.order6_1.e2d,g2.order6_1.delta,g2.order6_1.w,g2.order6_1.e1q,g2.order6_1.e1d,g2.order6_1.e2q,g2.order6_1.e2d,g3.order6_1.delta,g3.order6_1.w,g3.order6_1.e1q,g3.order6_1.e1d,g3.order6_1.e2q,g3.order6_1.e2d,g4.order6_1.delta,g4.order6_1.w,g4.order6_1.e1q,g4.order6_1.e1d,g4.order6_1.e2q,g4.order6_1.e2d) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (136): * Single equations (assignments): 135 * Array equations: 0 * Algorithm blocks: 0 * 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 {(54,42)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005501/1.015, allocations: 172 kB / 0.8356 GB, free: 65.72 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01376/1.029, allocations: 6.358 MB / 0.8418 GB, free: 59.11 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 4.979e-06/1.029, allocations: 0 / 0.8418 GB, free: 59.11 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.01034/1.039, allocations: 3.391 MB / 0.8451 GB, free: 55.71 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002991/1.043, allocations: 235.3 kB / 0.8454 GB, free: 55.48 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00971/1.052, allocations: 5.676 MB / 0.8509 GB, free: 49.83 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001265/1.054, allocations: 1.76 MB / 0.8526 GB, free: 48.04 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001377/1.055, allocations: 258.5 kB / 0.8529 GB, free: 47.79 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00097/1.056, allocations: 167.4 kB / 0.853 GB, free: 47.62 MB / 0.5606 GB Notification: Performance of SimCode: time 1.353e-06/1.056, allocations: 0 / 0.853 GB, free: 47.62 MB / 0.5606 GB Notification: Performance of Templates: time 0.07654/1.132, allocations: 56.7 MB / 0.9084 GB, free: 6.969 MB / 0.5762 GB make -j1 -f OpenIPSL_dev_OpenIPSL.Examples.TwoAreas.Two_Areas_PSAT.makefile (rm -f OpenIPSL_dev_OpenIPSL.Examples.TwoAreas.Two_Areas_PSAT.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.TwoAreas.Two_Areas_PSAT.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.TwoAreas.Two_Areas_PSAT.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.TwoAreas.Two_Areas_PSAT.sim & ./OpenIPSL_dev_OpenIPSL.Examples.TwoAreas.Two_Areas_PSAT -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_dev_OpenIPSL.Examples.TwoAreas.Two_Areas_PSAT.pipe 2>&1)